author: Arnd Bergmann <arnd@arndb.de> 2018-04-13 11:50:12 +0200
committer: Arnd Bergmann <arnd@arndb.de> 2018-08-29 15:42:20 +0200
commit: 82b355d161c9525ab8838cc27d3200bc3bc9082d
parent: 743f5cdb6cec33d2300922f6b1b1670a572595ad
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 0 deletions
diff --git a/fs/stat.c b/fs/stat.c
index f8e6fb2c3657..adbfcd86c81b 100644
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -280,6 +280,8 @@ SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, stat
#endif /* __ARCH_WANT_OLD_STAT */
+#ifdef __ARCH_WANT_NEW_STAT
+
#if BITS_PER_LONG == 32
# define choose_32_64(a,b) a
#else
@@ -378,6 +380,7 @@ SYSCALL_DEFINE2(newfstat, unsigned int, fd, struct stat __user *, statbuf)
return error;
}
+#endif
static int do_readlinkat(int dfd, const char __user *pathname,
char __user *buf, int bufsiz)