diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-11-05 09:22:38 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-11-15 14:38:28 +0100 |
commit | 1bf883c1a9cf88a60234039356aac8f23479dce9 (patch) | |
tree | e31f003fff9bffee756093a9a19616073c3dfa40 /arch/powerpc | |
parent | y2038: ipc: remove __kernel_time_t reference from headers (diff) | |
download | linux-1bf883c1a9cf88a60234039356aac8f23479dce9.tar.xz linux-1bf883c1a9cf88a60234039356aac8f23479dce9.zip |
y2038: stat: avoid 'time_t' in 'struct stat'
The time_t definition may differ between user space and kernel space,
so replace time_t with an unambiguous 'long' for the mips and sparc.
The same structures also contain 'off_t', which has the same problem,
so replace that as well on those two architectures and powerpc.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/uapi/asm/stat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/uapi/asm/stat.h b/arch/powerpc/include/uapi/asm/stat.h index afd25f2ff4e8..7871055e5e32 100644 --- a/arch/powerpc/include/uapi/asm/stat.h +++ b/arch/powerpc/include/uapi/asm/stat.h @@ -40,7 +40,7 @@ struct stat { uid_t st_uid; gid_t st_gid; unsigned long st_rdev; - off_t st_size; + long st_size; unsigned long st_blksize; unsigned long st_blocks; unsigned long st_atime; |