Skip to contentSkip to conversation

perf tools: Don't add kernel directories to the header search path

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jul 13, 2016 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  3c7752f7ab6d591d07f0851321d6ab1ace46e6fb
Gitweb:     http://git.kernel.org/tip/3c7752f7ab6d591d07f0851321d6ab1ace46e6fb
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 11 Jul 2016 23:39:58 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 12 Jul 2016 15:20:40 -0300

perf tools: Don't add kernel directories to the header search path

We've decided not to access kernel source files because changes there could break the tooling side, this is one more step in that direction.

---
 tools/perf/config/Makefile | 4 ----
 1 file changed, 4 deletions(-)
tools/perf/config/Makefile +0 -4
index 49a2130..97d4714 100644
@@ -210,11 +210,7 @@ CFLAGS += -I$(srctree)/tools/include/uapi
 CFLAGS += -I$(srctree)/tools/include/
 CFLAGS += -I$(srctree)/tools/arch/$(ARCH)/include/uapi
 CFLAGS += -I$(srctree)/tools/arch/$(ARCH)/include/
-CFLAGS += -I$(srctree)/arch/$(ARCH)/include/uapi
-CFLAGS += -I$(srctree)/arch/$(ARCH)/include
 CFLAGS += -I$(srctree)/tools/arch/$(ARCH)/
-CFLAGS += -I$(srctree)/include/uapi
-CFLAGS += -I$(srctree)/include
 
 # $(obj-perf)      for generated common-cmds.h
 # $(obj-perf)/util for generated bison/flex headers