projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f239aa5
)
ARC: hide unused function unw_hdr_alloc
author
Arnd Bergmann
<arnd@arndb.de>
Wed, 3 Jul 2019 13:39:25 +0000
(15:39 +0200)
committer
Ben Hutchings
<ben@decadent.org.uk>
Thu, 31 Oct 2019 22:15:02 +0000
(22:15 +0000)
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/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/arc/kernel/unwind.c
patch
|
blob
|
history
diff --git
a/arch/arc/kernel/unwind.c
b/arch/arc/kernel/unwind.c
index 9bfbd0a01b9549cbf233c13c6c7a49ab950a397d..48ab76b1055a3378a1d998898026f3034e5bbb9f 100644
(file)
--- a/
arch/arc/kernel/unwind.c
+++ b/
arch/arc/kernel/unwind.c
@@
-183,11
+183,6
@@
static void *__init unw_hdr_alloc_early(unsigned long sz)
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,
@@
-368,6
+363,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;