diff --git a/tools/build/Build.include b/tools/build/Build.include index 1dcb95e76f70f7ec30b964d44c1c28586fa739a2..9d6f97a7c1aaae39f7344ca610746e55a8b8b4b2 100644 --- a/tools/build/Build.include +++ b/tools/build/Build.include @@ -95,4 +95,4 @@ cxx_flags = -Wp,-MD,$(depfile),-MT,$@ $(CXXFLAGS) -D"BUILD_STR(s)=\#s" $(CXXFLAG ### ## HOSTCC C flags -host_c_flags = -Wp,-MD,$(depfile),-MT,$@ $(CHOSTFLAGS) -D"BUILD_STR(s)=\#s" $(CHOSTFLAGS_$(basetarget).o) $(CHOSTFLAGS_$(obj)) +host_c_flags = -MD -MF $(depfile) -MT $@ $(CHOSTFLAGS) -D"BUILD_STR(s)=\#s" $(CHOSTFLAGS_$(basetarget).o) $(CHOSTFLAGS_$(obj)) diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c index 41611d7f9873c4d4168a33bc878df69b7ca073b9..51333bee190cd0586d0b1b67a050fb8476aafcf1 100644 --- a/tools/perf/pmu-events/jevents.c +++ b/tools/perf/pmu-events/jevents.c @@ -35,6 +35,7 @@ #include <stdlib.h> #include <errno.h> #include <string.h> +#include <strings.h> #include <ctype.h> #include <unistd.h> #include <stdarg.h> diff --git a/tools/perf/pmu-events/json.c b/tools/perf/pmu-events/json.c index f67bbb0aa36e572c46b5847736cc3d3efa188f8f..a72c70a97fabb4be0ba47779a622611571f9e091 100644 --- a/tools/perf/pmu-events/json.c +++ b/tools/perf/pmu-events/json.c @@ -38,7 +38,6 @@ #include <unistd.h> #include "jsmn.h" #include "json.h" -#include <linux/kernel.h> static char *mapfile(const char *fn, size_t *size)