KVM: arm/arm64: Remove -I. header search paths
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 25 Jan 2019 07:57:29 +0000 (16:57 +0900)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 19 Feb 2019 21:05:52 +0000 (21:05 +0000)
The header search path -I. in kernel Makefiles is very suspicious;
it allows the compiler to search for headers in the top of $(srctree),
where obviously no header file exists.

I was able to build without these extra header search paths.

Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/Makefile
arch/arm64/kvm/Makefile

index 48de846f22464637be95c64e0a1ff9357b6e5a65..bca775e222c3984874bc16c1f50b4e969086b638 100644 (file)
@@ -9,8 +9,7 @@ ifeq ($(plus_virt),+virt)
 endif
 
 ccflags-y += -Iarch/arm/kvm -Ivirt/kvm/arm/vgic
-CFLAGS_arm.o := -I. $(plus_virt_def)
-CFLAGS_mmu.o := -I.
+CFLAGS_arm.o := $(plus_virt_def)
 
 AFLAGS_init.o := -Wa,-march=armv7-a$(plus_virt)
 AFLAGS_interrupts.o := -Wa,-march=armv7-a$(plus_virt)
index 0f2a135ba15bbe5bd66d148325d3ed227b1fe072..3089b3159135cf4d4a3852d589fdd4d919b2a9c5 100644 (file)
@@ -4,8 +4,6 @@
 #
 
 ccflags-y += -Iarch/arm64/kvm -Ivirt/kvm/arm/vgic
-CFLAGS_arm.o := -I.
-CFLAGS_mmu.o := -I.
 
 KVM=../../../virt/kvm