1 From 7f698012384ccb1ed10cc758acfd085096fdb307 Mon Sep 17 00:00:00 2001
2 From: Felix Fietkau <nbd@nbd.name>
3 Date: Fri, 7 Jul 2017 17:02:03 +0200
4 Subject: kernel: fix linux 4.9 host tools portability issues
6 Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 tools/build/Build.include | 2 +-
9 tools/perf/pmu-events/jevents.c | 1 +
10 tools/perf/pmu-events/json.c | 1 -
11 3 files changed, 2 insertions(+), 2 deletions(-)
13 --- a/tools/build/Build.include
14 +++ b/tools/build/Build.include
15 @@ -98,4 +98,4 @@ cxx_flags = -Wp,-MD,$(depfile) -Wp,-MT,$
19 -host_c_flags = -Wp,-MD,$(depfile) -Wp,-MT,$@ $(CHOSTFLAGS) -D"BUILD_STR(s)=\#s" $(CHOSTFLAGS_$(basetarget).o) $(CHOSTFLAGS_$(obj))
20 +host_c_flags = -MD -MF $(depfile) -MT $@ $(CHOSTFLAGS) -D"BUILD_STR(s)=\#s" $(CHOSTFLAGS_$(basetarget).o) $(CHOSTFLAGS_$(obj))
21 --- a/tools/perf/pmu-events/jevents.c
22 +++ b/tools/perf/pmu-events/jevents.c
31 --- a/tools/perf/pmu-events/json.c
32 +++ b/tools/perf/pmu-events/json.c
37 -#include <linux/kernel.h>
40 static char *mapfile(const char *fn, size_t *size)