From: Kyle McMartin Date: Fri, 24 Mar 2006 11:18:20 +0000 (-0800) Subject: [PATCH] Conditionalize compat_sys_newfstatat X-Git-Tag: firefly_0821_release~37315 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=82d821ddca8f5c990067cc37543010aa9346a172;p=firefly-linux-kernel-4.4.55.git [PATCH] Conditionalize compat_sys_newfstatat If we don't want sys_newfstatat because __ARCH_WANT_STAT64 is defined, then we certainly don't want compat_sys_newfstatat either. Signed-off-by: Grant Grundler Signed-off-by: Kyle McMartin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/compat.c b/fs/compat.c index 5333c7d7427f..2a88477330fc 100644 --- a/fs/compat.c +++ b/fs/compat.c @@ -114,6 +114,7 @@ asmlinkage long compat_sys_newlstat(char __user * filename, return error; } +#ifndef __ARCH_WANT_STAT64 asmlinkage long compat_sys_newfstatat(unsigned int dfd, char __user *filename, struct compat_stat __user *statbuf, int flag) { @@ -134,6 +135,7 @@ asmlinkage long compat_sys_newfstatat(unsigned int dfd, char __user *filename, out: return error; } +#endif asmlinkage long compat_sys_newfstat(unsigned int fd, struct compat_stat __user * statbuf)