mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-13 08:56:36 +07:00
caf6f9c8a3
The sys_llseek sytem call is needed on all 32-bit architectures and none of the 64-bit ones, so we can remove the __ARCH_WANT_SYS_LLSEEK guard and simplify the include/asm-generic/unistd.h header further. Since 32-bit tasks can run either natively or in compat mode on 64-bit architectures, we have to check for both !CONFIG_64BIT and CONFIG_COMPAT. There are a few 64-bit architectures that also reference sys_llseek in their 64-bit ABI (e.g. sparc), but I verified that those all select CONFIG_COMPAT, so the #if check is still correct here. It's a bit odd to include it in the syscall table though, as it's the same as sys_lseek() on 64-bit, but with strange calling conventions. Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
26 lines
637 B
C
26 lines
637 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _XTENSA_UNISTD_H
|
|
#define _XTENSA_UNISTD_H
|
|
|
|
#define __ARCH_WANT_SYS_CLONE
|
|
#include <uapi/asm/unistd.h>
|
|
|
|
#define __ARCH_WANT_NEW_STAT
|
|
#define __ARCH_WANT_STAT64
|
|
#define __ARCH_WANT_SYS_UTIME
|
|
#define __ARCH_WANT_SYS_GETPGRP
|
|
|
|
/*
|
|
* Ignore legacy system calls in the checksyscalls.sh script
|
|
*/
|
|
|
|
#define __IGNORE_fork /* use clone */
|
|
#define __IGNORE_time
|
|
#define __IGNORE_alarm /* use setitimer */
|
|
#define __IGNORE_pause
|
|
#define __IGNORE_mmap /* use mmap2 */
|
|
#define __IGNORE_vfork /* use clone */
|
|
#define __IGNORE_fadvise64 /* use fadvise64_64 */
|
|
|
|
#endif /* _XTENSA_UNISTD_H */
|