Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: dec: fix section mismatch

Drop inline for memory setup functions and mark them __init to
fix section mismatch of pmax_setup_memory_region.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Acked-by: Maciej W. Rozycki <macro@linux-mips.org>

+2 -2
+2 -2
arch/mips/dec/prom/memory.c
··· 27 27 28 28 #define CHUNK_SIZE 0x400000 29 29 30 - static inline void pmax_setup_memory_region(void) 30 + static __init void pmax_setup_memory_region(void) 31 31 { 32 32 volatile unsigned char *memory_page, dummy; 33 33 char old_handler[0x80]; ··· 56 56 * Use the REX prom calls to get hold of the memory bitmap, and thence 57 57 * determine memory size. 58 58 */ 59 - static inline void rex_setup_memory_region(void) 59 + static __init void rex_setup_memory_region(void) 60 60 { 61 61 int i, bitmap_size; 62 62 unsigned long mem_start = 0, mem_size = 0;