i386: Fix leak of ../kernel from top level
authorAndi Kleen <ak@suse.de>
Tue, 11 Sep 2007 12:02:12 +0000 (14:02 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 12 Sep 2007 16:28:06 +0000 (09:28 -0700)
Fix a compile error when the directory above the kernel source contains
a file named "kernel".  Originally from Ben LaHaise, modified based on
feedback from Sam Ravnborg

Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Ben LaHaise <bcrl@kvack.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/mach-generic/Makefile
arch/i386/mach-voyager/Makefile

index 77fbc9f64fbc58dea3c44318b8e61c1153f55dec..6914485c0d85d49429b5eda01f52de5670f1bd9e 100644 (file)
@@ -2,6 +2,6 @@
 # Makefile for the generic architecture
 #
 
-EXTRA_CFLAGS   += -I../kernel
+EXTRA_CFLAGS   := -Iarch/i386/kernel
 
 obj-y                          := probe.o summit.o bigsmp.o es7000.o default.o ../mach-es7000/
index f24d2965131803c1a388506c23f06d2e9650d9da..33b74cf0dd220da24d09d3559fc2b4047d9abf9c 100644 (file)
@@ -2,7 +2,7 @@
 # Makefile for the linux kernel.
 #
 
-EXTRA_CFLAGS   += -I../kernel
+EXTRA_CFLAGS   := -Iarch/i386/kernel
 obj-y                  := setup.o voyager_basic.o voyager_thread.o
 
 obj-$(CONFIG_SMP)      += voyager_smp.o voyager_cat.o