KVM: x86: fix TRACE_INCLUDE_PATH and remove -I. header search paths

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.

The reason of having -I. here is to make the incorrectly set
TRACE_INCLUDE_PATH working.

As the comment block in include/trace/define_trace.h says,
TRACE_INCLUDE_PATH should be a relative path to the define_trace.h

Fix the TRACE_INCLUDE_PATH, and remove the iffy include paths.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Masahiro Yamada and committed by
Paolo Bonzini
5cd5548f 35b531a1

+1 -5
-4
arch/x86/kvm/Makefile
··· 2 2 3 3 ccflags-y += -Iarch/x86/kvm 4 4 5 - CFLAGS_x86.o := -I. 6 - CFLAGS_svm.o := -I. 7 - CFLAGS_vmx.o := -I. 8 - 9 5 KVM := ../../../virt/kvm 10 6 11 7 kvm-y += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o \
+1 -1
arch/x86/kvm/trace.h
··· 1465 1465 #endif /* _TRACE_KVM_H */ 1466 1466 1467 1467 #undef TRACE_INCLUDE_PATH 1468 - #define TRACE_INCLUDE_PATH arch/x86/kvm 1468 + #define TRACE_INCLUDE_PATH ../../arch/x86/kvm 1469 1469 #undef TRACE_INCLUDE_FILE 1470 1470 #define TRACE_INCLUDE_FILE trace 1471 1471