1
0
Fork 0
alistair23-linux/arch
Arnd Bergmann 4faea239e5 y2038: utimes: Rework #ifdef guards for compat syscalls
After changing over to 64-bit time_t syscalls, many architectures will
want compat_sys_utimensat() but not respective handlers for utime(),
utimes() and futimesat(). This adds a new __ARCH_WANT_SYS_UTIME32 to
complement __ARCH_WANT_SYS_UTIME. For now, all 64-bit architectures that
support CONFIG_COMPAT set it, but future 64-bit architectures will not
(tile would not have needed it either, but got removed).

As older 32-bit architectures get converted to using CONFIG_64BIT_TIME,
they will have to use __ARCH_WANT_SYS_UTIME32 instead of
__ARCH_WANT_SYS_UTIME. Architectures using the generic syscall ABI don't
need either of them as they never had a utime syscall.

Since the compat_utimbuf structure is now required outside of
CONFIG_COMPAT, I'm moving it into compat_time.h.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
changed from last version:
- renamed __ARCH_WANT_COMPAT_SYS_UTIME to __ARCH_WANT_SYS_UTIME32
2018-08-29 15:42:23 +02:00
..
alpha y2038: Compile utimes()/futimesat() conditionally 2018-08-29 15:42:23 +02:00
arc y2038: Remove stat64 family from default syscall set 2018-08-29 15:42:20 +02:00
arm y2038: Compile utimes()/futimesat() conditionally 2018-08-29 15:42:23 +02:00
arm64 y2038: utimes: Rework #ifdef guards for compat syscalls 2018-08-29 15:42:23 +02:00
c6x y2038: Remove stat64 family from default syscall set 2018-08-29 15:42:20 +02:00
h8300 y2038: Remove stat64 family from default syscall set 2018-08-29 15:42:20 +02:00
hexagon y2038: Remove stat64 family from default syscall set 2018-08-29 15:42:20 +02:00
ia64 y2038: Compile utimes()/futimesat() conditionally 2018-08-29 15:42:23 +02:00
m68k asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro 2018-08-29 15:42:21 +02:00
microblaze asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro 2018-08-29 15:42:21 +02:00
mips y2038: utimes: Rework #ifdef guards for compat syscalls 2018-08-29 15:42:23 +02:00
nds32 y2038: Remove stat64 family from default syscall set 2018-08-29 15:42:20 +02:00
nios2 y2038: Remove stat64 family from default syscall set 2018-08-29 15:42:20 +02:00
openrisc y2038: Remove stat64 family from default syscall set 2018-08-29 15:42:20 +02:00
parisc y2038: utimes: Rework #ifdef guards for compat syscalls 2018-08-29 15:42:23 +02:00
powerpc y2038: utimes: Rework #ifdef guards for compat syscalls 2018-08-29 15:42:23 +02:00
riscv Kbuild updates for v4.19 (2nd) 2018-08-25 13:40:38 -07:00
s390 y2038: utimes: Rework #ifdef guards for compat syscalls 2018-08-29 15:42:23 +02:00
sh asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro 2018-08-29 15:42:21 +02:00
sparc y2038: utimes: Rework #ifdef guards for compat syscalls 2018-08-29 15:42:23 +02:00
um kbuild: rename LDFLAGS to KBUILD_LDFLAGS 2018-08-24 08:22:08 +09:00
unicore32 y2038: Remove stat64 family from default syscall set 2018-08-29 15:42:20 +02:00
x86 y2038: utimes: Rework #ifdef guards for compat syscalls 2018-08-29 15:42:23 +02:00
xtensa asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro 2018-08-29 15:42:21 +02:00
.gitignore
Kconfig Merge branch 'tlb-fixes' 2018-08-23 14:55:01 -07:00