Commit 14904927 authored by Stephen Boyd's avatar Stephen Boyd Committed by Russell King

ARM: 7401/1: mm: Fix section mismatches

WARNING: vmlinux.o(.text+0x111b8): Section mismatch in reference
from the function arm_memory_present() to the function
.init.text:memory_present()
The function arm_memory_present() references
the function __init memory_present().
This is often because arm_memory_present lacks a __init
annotation or the annotation of memory_present is wrong.

WARNING: arch/arm/mm/built-in.o(.text+0x1edc): Section mismatch
in reference from the function alloc_init_pud() to the function
.init.text:alloc_init_section()
The function alloc_init_pud() references
the function __init alloc_init_section().
This is often because alloc_init_pud lacks a __init
annotation or the annotation of alloc_init_section is wrong.
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 35453584
...@@ -293,11 +293,11 @@ EXPORT_SYMBOL(pfn_valid); ...@@ -293,11 +293,11 @@ EXPORT_SYMBOL(pfn_valid);
#endif #endif
#ifndef CONFIG_SPARSEMEM #ifndef CONFIG_SPARSEMEM
static void arm_memory_present(void) static void __init arm_memory_present(void)
{ {
} }
#else #else
static void arm_memory_present(void) static void __init arm_memory_present(void)
{ {
struct memblock_region *reg; struct memblock_region *reg;
......
...@@ -618,8 +618,8 @@ static void __init alloc_init_section(pud_t *pud, unsigned long addr, ...@@ -618,8 +618,8 @@ static void __init alloc_init_section(pud_t *pud, unsigned long addr,
} }
} }
static void alloc_init_pud(pgd_t *pgd, unsigned long addr, unsigned long end, static void __init alloc_init_pud(pgd_t *pgd, unsigned long addr,
unsigned long phys, const struct mem_type *type) unsigned long end, unsigned long phys, const struct mem_type *type)
{ {
pud_t *pud = pud_offset(pgd, addr); pud_t *pud = pud_offset(pgd, addr);
unsigned long next; unsigned long next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment