tools include uapi x86: Grab a copy of unistd.h
Subsystems (2)
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 047726d1f9ae6b1f3a2144577ffc3a1a92ffedf4 Gitweb: http://git.kernel.org/tip/047726d1f9ae6b1f3a2144577ffc3a1a92ffedf4 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 18 Jul 2017 17:09:21 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 18 Jul 2017 23:14:07 -0300
tools include uapi x86: Grab a copy of unistd.h
In older distros we were not including our copies of unistd_{32,64}.h, as we were relying on the system's asm/unistd.h, and a log time ago the files to be included were asm-{x86_64,i386}/unistd.h.
Fix it by also carrying a copy of asm/unistd.h, that will be the same as in modern distros and will allow us to provide missing __NR_setns, for instance, in older distros.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
---
{arch => tools/arch}/x86/include/uapi/asm/unistd.h | 0
tools/perf/check-headers.sh | 1 +
2 files changed, 1 insertion(+)tools/arch/x86/include/uapi/asm/unistd.h renamed from arch/x86/include/uapi/asm/unistd.h +0 -0
tools/perf/check-headers.sh +1 -0
@@ -16,6 +16,7 @@ arch/x86/include/uapi/asm/perf_regs.h arch/x86/include/uapi/asm/kvm.h arch/x86/include/uapi/asm/kvm_perf.h arch/x86/include/uapi/asm/svm.h +arch/x86/include/uapi/asm/unistd.h arch/x86/include/uapi/asm/vmx.h arch/powerpc/include/uapi/asm/kvm.h arch/s390/include/uapi/asm/kvm.h