aboutsummaryrefslogtreecommitdiff
path: root/linux-headers/asm-x86/unistd.h
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2020-06-09 16:26:53 +0200
committerCornelia Huck <cohuck@redhat.com>2020-06-18 12:13:36 +0200
commitf76b348ec78fb7316bbcc981127ae8894cfcc609 (patch)
treefbc7a9d300fa0367ae3d93580dfa2493d20649b8 /linux-headers/asm-x86/unistd.h
parent26bf4a29213b432eb390726c698a1915550a9cf9 (diff)
Linux headers: update
Update against Linux 5.8-rc1. Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'linux-headers/asm-x86/unistd.h')
-rw-r--r--linux-headers/asm-x86/unistd.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/linux-headers/asm-x86/unistd.h b/linux-headers/asm-x86/unistd.h
index 498d1515c6..d2af42d61d 100644
--- a/linux-headers/asm-x86/unistd.h
+++ b/linux-headers/asm-x86/unistd.h
@@ -2,8 +2,15 @@
#ifndef _ASM_X86_UNISTD_H
#define _ASM_X86_UNISTD_H
-/* x32 syscall flag bit */
-#define __X32_SYSCALL_BIT 0x40000000UL
+/*
+ * x32 syscall flag bit. Some user programs expect syscall NR macros
+ * and __X32_SYSCALL_BIT to have type int, even though syscall numbers
+ * are, for practical purposes, unsigned long.
+ *
+ * Fortunately, expressions like (nr & ~__X32_SYSCALL_BIT) do the right
+ * thing regardless.
+ */
+#define __X32_SYSCALL_BIT 0x40000000
# ifdef __i386__
# include <asm/unistd_32.h>