diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 3ef204137e7325e091c9520d30acb7b1169eabc6..054be44d1cdb44f1e683a5e1c42d3c5a2995ec24 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -324,7 +324,7 @@ static inline void poison_init_mem(void *s, size_t count)
 		*p++ = 0xe7fddef0;
 }
 
-static inline void
+static inline void __init
 free_memmap(unsigned long start_pfn, unsigned long end_pfn)
 {
 	struct page *start_pg, *end_pg;