Home Home > GIT Browse > stable
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-07-21 10:23:21 +0200
committerJiri Slaby <jslaby@suse.cz>2019-07-21 10:23:27 +0200
commitaa5301f86a389e1657ee91fdb587575c867bd000 (patch)
treea04b238d1fe104c46399724729c417547cc7e494
parent6655654dcf979e159d538c0f322988f498d8d821 (diff)
ARC: hide unused function unw_hdr_alloc (bnc#1012628).
-rw-r--r--patches.kernel.org/5.2.2-013-ARC-hide-unused-function-unw_hdr_alloc.patch55
-rw-r--r--series.conf1
2 files changed, 56 insertions, 0 deletions
diff --git a/patches.kernel.org/5.2.2-013-ARC-hide-unused-function-unw_hdr_alloc.patch b/patches.kernel.org/5.2.2-013-ARC-hide-unused-function-unw_hdr_alloc.patch
new file mode 100644
index 0000000000..125fbbb483
--- /dev/null
+++ b/patches.kernel.org/5.2.2-013-ARC-hide-unused-function-unw_hdr_alloc.patch
@@ -0,0 +1,55 @@
+From: Arnd Bergmann <arnd@arndb.de>
+Date: Wed, 3 Jul 2019 15:39:25 +0200
+Subject: [PATCH] ARC: hide unused function unw_hdr_alloc
+References: bnc#1012628
+Patch-mainline: 5.2.2
+Git-commit: fd5de2721ea7d16e2b16c4049ac49f229551b290
+
+commit fd5de2721ea7d16e2b16c4049ac49f229551b290 upstream.
+
+As kernelci.org reports, this function is not used in
+vdk_hs38_defconfig:
+
+arch/arc/kernel/unwind.c:188:14: warning: 'unw_hdr_alloc' defined but not used [-Wunused-function]
+
+Fixes: bc79c9a72165 ("ARC: dw2 unwind: Reinstante unwinding out of modules")
+Link: https://kernelci.org/build/id/5d1cae3f59b514300340c132/logs/
+Cc: stable@vger.kernel.org
+Signed-off-by: Arnd Bergmann <arnd@arndb.de>
+Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Signed-off-by: Jiri Slaby <jslaby@suse.cz>
+---
+ arch/arc/kernel/unwind.c | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/arch/arc/kernel/unwind.c b/arch/arc/kernel/unwind.c
+index 182ce67dfe10..c2663fce7f6c 100644
+--- a/arch/arc/kernel/unwind.c
++++ b/arch/arc/kernel/unwind.c
+@@ -181,11 +181,6 @@ static void *__init unw_hdr_alloc_early(unsigned long sz)
+ return memblock_alloc_from(sz, sizeof(unsigned int), MAX_DMA_ADDRESS);
+ }
+
+-static void *unw_hdr_alloc(unsigned long sz)
+-{
+- return kmalloc(sz, GFP_KERNEL);
+-}
+-
+ static void init_unwind_table(struct unwind_table *table, const char *name,
+ const void *core_start, unsigned long core_size,
+ const void *init_start, unsigned long init_size,
+@@ -366,6 +361,10 @@ static void init_unwind_hdr(struct unwind_table *table,
+ }
+
+ #ifdef CONFIG_MODULES
++static void *unw_hdr_alloc(unsigned long sz)
++{
++ return kmalloc(sz, GFP_KERNEL);
++}
+
+ static struct unwind_table *last_table;
+
+--
+2.22.0
+
diff --git a/series.conf b/series.conf
index b7408ef5ca..b4290f730a 100644
--- a/series.conf
+++ b/series.conf
@@ -100,6 +100,7 @@
patches.kernel.org/5.2.2-010-x86-ioapic-Implement-irq_get_irqchip_state-call.patch
patches.kernel.org/5.2.2-011-x86-irq-Handle-spurious-interrupt-after-shutdow.patch
patches.kernel.org/5.2.2-012-x86-irq-Seperate-unused-system-vectors-from-spu.patch
+ patches.kernel.org/5.2.2-013-ARC-hide-unused-function-unw_hdr_alloc.patch
########################################################
# Build fixes that apply to the vanilla kernel too.