public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] arch/m68knommu/kernel/setup.c should always #include <asm/pgtable.h>
@ 2006-09-04 22:11 Adrian Bunk
  2006-09-11  5:01 ` Greg Ungerer
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2006-09-04 22:11 UTC (permalink / raw)
  To: gerg; +Cc: linux-kernel

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

<--  snip  -->

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

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.18-rc5-mm1/arch/m68knommu/kernel/setup.c.old	2006-09-05 00:07:42.000000000 +0200
+++ linux-2.6.18-rc5-mm1/arch/m68knommu/kernel/setup.c	2006-09-05 00:08:20.000000000 +0200
@@ -36,10 +36,7 @@
 #include <asm/setup.h>
 #include <asm/irq.h>
 #include <asm/machdep.h>
-
-#ifdef CONFIG_BLK_DEV_INITRD
 #include <asm/pgtable.h>
-#endif
 
 unsigned long memory_start;
 unsigned long memory_end;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6 patch] arch/m68knommu/kernel/setup.c should always #include <asm/pgtable.h>
  2006-09-04 22:11 [2.6 patch] arch/m68knommu/kernel/setup.c should always #include <asm/pgtable.h> Adrian Bunk
@ 2006-09-11  5:01 ` Greg Ungerer
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Ungerer @ 2006-09-11  5:01 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: gerg, linux-kernel

Hi Adrian,

Adrian Bunk wrote:
> This patch fixes the following compile error with 
> CONFIG_BLK_DEV_INITRD=n and -Werror-implicit-function-declaration:
> 
> <--  snip  -->
> 
> ...
>   CC      arch/m68knommu/kernel/setup.o
> /home/bunk/linux/kernel-2.6/linux-2.6.18-rc5-mm1/arch/m68knommu/kernel/setup.c: In function 'setup_arch':
> /home/bunk/linux/kernel-2.6/linux-2.6.18-rc5-mm1/arch/m68knommu/kernel/setup.c:268: error: implicit declaration of function 'paging_init'
> make[2]: *** [arch/m68knommu/kernel/setup.o] Error 1
> 
> <--  snip  -->
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>

Thanks, I'll push that.

Regards
Greg



> --- linux-2.6.18-rc5-mm1/arch/m68knommu/kernel/setup.c.old	2006-09-05 00:07:42.000000000 +0200
> +++ linux-2.6.18-rc5-mm1/arch/m68knommu/kernel/setup.c	2006-09-05 00:08:20.000000000 +0200
> @@ -36,10 +36,7 @@
>  #include <asm/setup.h>
>  #include <asm/irq.h>
>  #include <asm/machdep.h>
> -
> -#ifdef CONFIG_BLK_DEV_INITRD
>  #include <asm/pgtable.h>
> -#endif
>  
>  unsigned long memory_start;
>  unsigned long memory_end;
> 
> 

-- 
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg@snapgear.com
SnapGear -- a Secure Computing Company      PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-11  5:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-04 22:11 [2.6 patch] arch/m68knommu/kernel/setup.c should always #include <asm/pgtable.h> Adrian Bunk
2006-09-11  5:01 ` Greg Ungerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox