summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-11-05 09:22:38 +0100
committerArnd Bergmann <arnd@arndb.de>2019-11-15 14:38:28 +0100
commit1bf883c1a9cf88a60234039356aac8f23479dce9 (patch)
treee31f003fff9bffee756093a9a19616073c3dfa40 /arch/powerpc
parenty2038: ipc: remove __kernel_time_t reference from headers (diff)
downloadlinux-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.h2
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;