linux/tools/include
Arnaldo Carvalho de Melo 259d40775e tools include linux: Guard against redefinition of some macros
When cross building to android r15c (and older versions) on Fedora 26
we notice these:

/opt/android-ndk-r15c/platforms/android-24/arch-arm/usr/include/sys/cdefs.h:332:0: note: this is the location of the previous definition

For __aligned, __packed and __noreturn, so guard those with ifdefs to
avoid drowning useful warnings in these.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-d7w3fa9c22dtmrwbedos6ie1@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-09-12 12:33:39 -03:00
..
asm tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
asm-generic tools include: Provide gcc based cmpxchg fallback for !x86 2017-03-03 19:07:14 -03:00
linux tools include linux: Guard against redefinition of some macros 2017-09-12 12:33:39 -03:00
tools tools: add more endian.h macros 2014-09-26 11:03:01 +02:00
trace/events tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
uapi perf tools: Support new sample type for physical address 2017-09-01 14:46:00 -03:00