diff options
Diffstat (limited to 'arch/arc/kernel/unwind.c')
-rw-r--r-- | arch/arc/kernel/unwind.c | 9 |
1 files 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) | |||
181 | return memblock_alloc_from(sz, sizeof(unsigned int), MAX_DMA_ADDRESS); | 181 | return memblock_alloc_from(sz, sizeof(unsigned int), MAX_DMA_ADDRESS); |
182 | } | 182 | } |
183 | 183 | ||
184 | static void *unw_hdr_alloc(unsigned long sz) | ||
185 | { | ||
186 | return kmalloc(sz, GFP_KERNEL); | ||
187 | } | ||
188 | |||
189 | static void init_unwind_table(struct unwind_table *table, const char *name, | 184 | static void init_unwind_table(struct unwind_table *table, const char *name, |
190 | const void *core_start, unsigned long core_size, | 185 | const void *core_start, unsigned long core_size, |
191 | const void *init_start, unsigned long init_size, | 186 | const void *init_start, unsigned long init_size, |
@@ -366,6 +361,10 @@ ret_err: | |||
366 | } | 361 | } |
367 | 362 | ||
368 | #ifdef CONFIG_MODULES | 363 | #ifdef CONFIG_MODULES |
364 | static void *unw_hdr_alloc(unsigned long sz) | ||
365 | { | ||
366 | return kmalloc(sz, GFP_KERNEL); | ||
367 | } | ||
369 | 368 | ||
370 | static struct unwind_table *last_table; | 369 | static struct unwind_table *last_table; |
371 | 370 | ||