1 --- a/tools/perf/pmu-events/jevents.c
2 +++ b/tools/perf/pmu-events/jevents.c
11 --- a/tools/perf/pmu-events/json.c
12 +++ b/tools/perf/pmu-events/json.c
17 -#include <linux/kernel.h>
20 static char *mapfile(const char *fn, size_t *size)
21 --- a/tools/build/Build.include
22 +++ b/tools/build/Build.include
23 @@ -95,4 +95,4 @@ cxx_flags = -Wp,-MD,$(depfile),-MT,$@ $(
27 -host_c_flags = -Wp,-MD,$(depfile),-MT,$@ $(CHOSTFLAGS) -D"BUILD_STR(s)=\#s" $(CHOSTFLAGS_$(basetarget).o) $(CHOSTFLAGS_$(obj))
28 +host_c_flags = -MD -MF $(depfile) -MT $@ $(CHOSTFLAGS) -D"BUILD_STR(s)=\#s" $(CHOSTFLAGS_$(basetarget).o) $(CHOSTFLAGS_$(obj))