summaryrefslogtreecommitdiff
path: root/include/uapi/asm-generic/unistd.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2014-03-03 13:44:03 +0400
committerHeiko Carstens <heiko.carstens@de.ibm.com>2014-03-04 12:05:33 +0400
commit0473c9b5f05948df780bbc7b996dd7aefc4ec41d (patch)
tree3413bbef3bcaa444bb051f7a9c9de9579d0e0374 /include/uapi/asm-generic/unistd.h
parent0414855fdc4a40da05221fc6062cccbc0c30f169 (diff)
downloadlinux-0473c9b5f05948df780bbc7b996dd7aefc4ec41d.tar.xz
compat: let architectures define __ARCH_WANT_COMPAT_SYS_GETDENTS64
For architecture dependent compat syscalls in common code an architecture must define something like __ARCH_WANT_<WHATEVER> if it wants to use the code. This however is not true for compat_sys_getdents64 for which architectures must define __ARCH_OMIT_COMPAT_SYS_GETDENTS64 if they do not want the code. This leads to the situation where all architectures, except mips, get the compat code but only x86_64, arm64 and the generic syscall architectures actually use it. So invert the logic, so that architectures actively must do something to get the compat code. This way a couple of architectures get rid of otherwise dead code. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'include/uapi/asm-generic/unistd.h')
-rw-r--r--include/uapi/asm-generic/unistd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h
index dde8041f40d2..6db66783d268 100644
--- a/include/uapi/asm-generic/unistd.h
+++ b/include/uapi/asm-generic/unistd.h
@@ -191,6 +191,7 @@ __SYSCALL(__NR_quotactl, sys_quotactl)
/* fs/readdir.c */
#define __NR_getdents64 61
+#define __ARCH_WANT_COMPAT_SYS_GETDENTS64
__SC_COMP(__NR_getdents64, sys_getdents64, compat_sys_getdents64)
/* fs/read_write.c */