From: Grygorii Strashko Date: Fri, 3 Jan 2014 03:09:53 +0000 (+1100) Subject: mm/memblock: fix buld of "cris" arch X-Git-Tag: next-20140106~2^2~194 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=419d56c572a1a25f100969b477a468551f534a91;p=karo-tx-linux.git mm/memblock: fix buld of "cris" arch The build of "criss" arch is broken after applying new memblock API series. In file included from arch/cris/mm/init.c:13:0: include/linux/bootmem.h: In function 'memblock_virt_alloc': include/linux/bootmem.h:229:55: error: 'KSEG_C' undeclared (first use in this function) include/linux/bootmem.h:229:55: note: each undeclared identifier is reported only once for each function it appears in include/linux/bootmem.h: In function 'memblock_virt_alloc_nopanic': include/linux/bootmem.h:237:63: error: 'KSEG_C' undeclared (first use in this function) include/linux/bootmem.h: In function 'memblock_virt_alloc_node': include/linux/bootmem.h:250:27: error: 'KSEG_C' undeclared (first use in this function) include/linux/bootmem.h: In function 'memblock_virt_alloc_node_nopanic': include/linux/bootmem.h:258:28: error: 'KSEG_C' undeclared (first use in this function) In file included from mm/bootmem.c:14:0: include/linux/bootmem.h: In function 'memblock_virt_alloc': include/linux/bootmem.h:229:55: error: 'KSEG_C' undeclared (first use in this function) include/linux/bootmem.h:229:55: note: each undeclared identifier is reported only once for each function it appears in include/linux/bootmem.h: In function 'memblock_virt_alloc_nopanic': include/linux/bootmem.h:237:63: error: 'KSEG_C' undeclared (first use in this function) include/linux/bootmem.h: In function 'memblock_virt_alloc_node': include/linux/bootmem.h:250:27: error: 'KSEG_C' undeclared (first use in this function) The "cris" arch defines memory parameters in a different manner than other arch's and they are splitted between 2 headers: and As result, now build is failed if "bootmem.h" included before and . Hence, fix it by including additional header in bootmem.h. Signed-off-by: Grygorii Strashko Signed-off-by: Santosh Shilimkar Cc: Yinghai Lu Cc: Tejun Heo Signed-off-by: Andrew Morton --- diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h index 1c9aa0e686df..2fae55def608 100644 --- a/include/linux/bootmem.h +++ b/include/linux/bootmem.h @@ -5,6 +5,7 @@ #define _LINUX_BOOTMEM_H #include +#include #include /*