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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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  -->

Signed-off-by: Adrian Bunk <[email protected]>

--- linux-2.6.18-rc5-mm1/arch/h8300/kernel/setup.c.old	2006-09-04 00:07:33.000000000 +0200
+++ linux-2.6.18-rc5-mm1/arch/h8300/kernel/setup.c	2006-09-04 00:07:42.000000000 +0200
@@ -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"


-- 
VGER BF report: H 0.0185259
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux