msm: memory: Fix section mismatch warning
WARNING: vmlinux.o(.text+0x16eb8): Section mismatch in reference
from the function alloc_bootmem_aligned() to the function
.init.text:__alloc_bootmem()
The function alloc_bootmem_aligned() references
the function __init __alloc_bootmem().
This is often because alloc_bootmem_aligned lacks a __init
annotation or the annotation of __alloc_bootmem is wrong.
Change-Id: Ib9786b5a9d405854c9f6df57b7711b5b03e6fcc9
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/memory.c b/arch/arm/mach-msm/memory.c
index d26d76b..8dbf304 100644
--- a/arch/arm/mach-msm/memory.c
+++ b/arch/arm/mach-msm/memory.c
@@ -146,7 +146,7 @@
flush_axi_bus_buffer();
}
-void *alloc_bootmem_aligned(unsigned long size, unsigned long alignment)
+void * __init alloc_bootmem_aligned(unsigned long size, unsigned long alignment)
{
void *unused_addr = NULL;
unsigned long addr, tmp_size, unused_size;