Skip to content

Commit 7e579f3

Browse files
committed
tools arch x86 uapi: Synch asm/unistd.h with the kernel sources
To pick up the change in: 700d3a5 ("x86/syscalls: Revert "x86/syscalls: Make __X32_SYSCALL_BIT be unsigned long"") That doesn't trigger any changes in tooling and silences this perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/unistd.h' differs from latest version at 'arch/x86/include/uapi/asm/unistd.h' diff -u tools/arch/x86/include/uapi/asm/unistd.h arch/x86/include/uapi/asm/unistd.h Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@suse.de> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 6c3c184 commit 7e579f3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎tools/arch/x86/include/uapi/asm/unistd.h‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
#ifndef _UAPI_ASM_X86_UNISTD_H
33
#define _UAPI_ASM_X86_UNISTD_H
44

5-
/* x32 syscall flag bit */
5+
/*
6+
* x32 syscall flag bit. Some user programs expect syscall NR macros
7+
* and __X32_SYSCALL_BIT to have type int, even though syscall numbers
8+
* are, for practical purposes, unsigned long.
9+
*
10+
* Fortunately, expressions like (nr & ~__X32_SYSCALL_BIT) do the right
11+
* thing regardless.
12+
*/
613
#define __X32_SYSCALL_BIT 0x40000000
714

815
#ifndef __KERNEL__

0 commit comments

Comments
 (0)