]> git.baikalelectronics.ru Git - kernel.git/commit
tools: Move x86 syscall number fallbacks to .../uapi/
authorSean Christopherson <seanjc@google.com>
Wed, 1 Sep 2021 20:30:28 +0000 (13:30 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Sep 2021 14:24:01 +0000 (10:24 -0400)
commitc2d9e80ccde090b20c2190e848d26fd5eda7f3b0
treeb05b0be3c878fed4f43c8fe78534b5230499ef8b
parentf1827f5a2192716f59e833066c552685eb22a803
tools: Move x86 syscall number fallbacks to .../uapi/

Move unistd_{32,64}.h from x86/include/asm to x86/include/uapi/asm so
that tools/selftests that install kernel headers, e.g. KVM selftests, can
include non-uapi tools headers, e.g. to get 'struct list_head', without
effectively overriding the installed non-tool uapi headers.

Swapping KVM's search order, e.g. to search the kernel headers before
tool headers, is not a viable option as doing results in linux/type.h and
other core headers getting pulled from the kernel headers, which do not
have the kernel-internal typedefs that are used through tools, including
many files outside of selftests/kvm's control.

Prior to commit 6e0b7617551a ("perf tools: Move syscall number fallbacks
from perf-sys.h to tools/arch/x86/include/asm/"), the handcoded numbers
were actual fallbacks, i.e. overriding unistd_{32,64}.h from the kernel
headers was unintentional.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210901203030.1292304-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/arch/x86/include/asm/unistd_32.h [deleted file]
tools/arch/x86/include/asm/unistd_64.h [deleted file]
tools/arch/x86/include/uapi/asm/unistd_32.h [new file with mode: 0644]
tools/arch/x86/include/uapi/asm/unistd_64.h [new file with mode: 0644]