diff options
author | 2014-03-03 10:44:03 +0100 | |
---|---|---|
committer | 2014-03-04 09:05:33 +0100 | |
commit | 0473c9b5f05948df780bbc7b996dd7aefc4ec41d (patch) | |
tree | 3413bbef3bcaa444bb051f7a9c9de9579d0e0374 /arch/arm64/include | |
parent | Linux 3.14-rc5 (diff) | |
download | linux-0473c9b5f05948df780bbc7b996dd7aefc4ec41d.tar.gz linux-0473c9b5f05948df780bbc7b996dd7aefc4ec41d.tar.bz2 linux-0473c9b5f05948df780bbc7b996dd7aefc4ec41d.zip |
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 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/unistd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h index 82ce217e94cf..a4654c656a1e 100644 --- a/arch/arm64/include/asm/unistd.h +++ b/arch/arm64/include/asm/unistd.h @@ -14,6 +14,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef CONFIG_COMPAT +#define __ARCH_WANT_COMPAT_SYS_GETDENTS64 #define __ARCH_WANT_COMPAT_STAT64 #define __ARCH_WANT_SYS_GETHOSTNAME #define __ARCH_WANT_SYS_PAUSE |