summaryrefslogtreecommitdiffstats
path: root/tools/lguest
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-11-21 15:34:16 +0530
committerVineet Gupta <vgupta@synopsys.com>2013-11-25 10:35:23 +0530
commit97bc386fc12deeb41d5bff33548e3002b258d4e0 (patch)
tree56b32a7f4d85debc65acc7daf7a0be08b4214204 /tools/lguest
parentf06d19e460cdd326eff955ca614cb8064bd0a5f2 (diff)
downloadop-kernel-dev-97bc386fc12deeb41d5bff33548e3002b258d4e0.zip
op-kernel-dev-97bc386fc12deeb41d5bff33548e3002b258d4e0.tar.gz
ARC: Add guard macro to uapi/asm/unistd.h
Chen originally proposed this as "right thing to do" however I actually ran into this when building perf tools. Some of the utils include unistd.h as well as linux/unistd.h. Since -I includes kernel headers too, we end up including the ARC unistd.h twice, leading to redefinition nwarnings. ------------------>8------------------- CC bench/sched-pipe.o In file included from ~/kernel/arch/arc/include/uapi/asm/unistd.h:21:0, from ~/kernel/include/uapi/linux/unistd.h:7, from bench/sched-pipe.c:24: ~/kernel/include/uapi/asm-generic/unistd.h:889:0: error: "__NR_fcntl64" redefined [-Werror] #define __NR_fcntl64 __NR3264_fcntl ^ In file included from ~/gnu/arc-linux-uclibc/sys-include/sys/syscall.h:24:0, from bench/../perf.h:112, from bench/sched-pipe.c:13: ~/gnu/arc-linux-uclibc/include/bits/sysnum.h:761:0: note: this is the location of the previous definition ------------------>8------------------- Verified that make headers_install works fine with this. Suggested-by: Chen Gang <gang.chen.5i5j@gmail.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Cc: David Howells <dhowells@redhat.com>
Diffstat (limited to 'tools/lguest')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud