From: Arnaldo Carvalho de Melo Date: Thu, 2 May 2019 13:26:23 +0000 (-0400) Subject: perf tools: Remove needless asm/unistd.h include fixing build in some places X-Git-Tag: v5.4-rc1~1142^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e221b811f1472d0c58c7d4e0fe84fcacd22580a;p=platform%2Fkernel%2Flinux-rpi.git perf tools: Remove needless asm/unistd.h include fixing build in some places We were including sys/syscall.h and asm/unistd.h, since sys/syscall.h includes asm/unistd.h, sometimes this leads to the redefinition of defines, breaking the build. Noticed on ARC with uCLibc. Cc: Adrian Hunter Cc: Arnaldo Carvalho de Melo Cc: Arnd Bergmann Cc: Jiri Olsa Cc: Namhyung Kim Cc: Rich Felker Cc: Vineet Gupta Link: https://lkml.kernel.org/n/tip-xjpf80o64i2ko74aj2jih0qg@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/cloexec.c b/tools/perf/util/cloexec.c index ca0fff6..06f4831 100644 --- a/tools/perf/util/cloexec.c +++ b/tools/perf/util/cloexec.c @@ -7,7 +7,6 @@ #include "asm/bug.h" #include "debug.h" #include -#include #include static unsigned long flag = PERF_FLAG_FD_CLOEXEC;