Skip to contentSkip to conversation

arch/h8300/kernel/setup.c should always #include <asm/pgtable.h>

PATCH New Adrian Bunk 1 participant 1 message Sep 3, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch/h8300/kernel/setup.c should always #include <asm/pgtable.h>

This patch fixes the following compile error with CONFIG_BLK_DEV_INITRD=n and -Werror-implicit-function-declaration:

<-- snip -->

...
CC arch/h8300/kernel/setup.o
/home/bunk/linux/kernel-2.6/linux-2.6.18-rc5-mm1/arch/h8300/kernel/setup.c: In function 'setup_arch':
/home/bunk/linux/kernel-2.6/linux-2.6.18-rc5-mm1/arch/h8300/kernel/setup.c:183: error: implicit declaration of function 'paging_init' make[2]: *** [arch/h8300/kernel/setup.o] Error 1

<-- snip -->

arch/h8300/kernel/setup.c renamed from arch/h8300/kernel/setup.c.old +0 -3
@@ -33,10 +33,7 @@
 
 #include <asm/setup.h>
 #include <asm/irq.h>
-
-#ifdef CONFIG_BLK_DEV_INITRD
 #include <asm/pgtable.h>
-#endif
 
 #if defined(__H8300H__)
 #define CPU "H8/300H"
Signature · 1 line
VGER BF report: H 0.0185259