ARM: fixup section mismatch warning for alloc_init_pud()
Subsystems (2)
PATCH 1/1 ARM: fixup section mismatch warning for alloc_init_pud()
This patch fixup below warning
WARNING: arch/arm/mm/built-in.o(.text+0x2320):
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.
--- arch/arm/mm/mmu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mm/mmu.c +1 -1
@@ -616,7 +616,7 @@ 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 end,unsigned long phys,const struct mem_type *type) {pud_t *pud =pud_offset (pgd, addr);
Signature · 1 line
1.7.5.4
PATCH 1/1 ARM: fixup section mismatch warning for alloc_init_pud()
Quoted 11 lines · Kuninori Morimoto
This patch fixup below warning
WARNING: arch/arm/mm/built-in.o(.text+0x2320):
Section mismatch in reference from the functionalloc_init_pud()to the function .init.text:alloc_init_section()
The functionalloc_init_pud()references
the function__initalloc_init_section().
This is often becausealloc_init_pudlacks a__initannotation or the annotation ofalloc_init_sectionis wrong.Signed-off-by Kuninori Morimoto <[email protected]>
Signature · 1 line
Catalin