aboutsummaryrefslogtreecommitdiffstats
path: root/fs/compat.c
diff options
context:
space:
mode:
authorKyle McMartin <kyle@parisc-linux.org>2006-03-24 06:18:20 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-24 10:33:27 -0500
commit82d821ddca8f5c990067cc37543010aa9346a172 (patch)
tree32e544f964f202d1ee7a135370ea0f6661098bcd /fs/compat.c
parent2ea1c5392cc8ce249fb661db4f4cdfbbae373a89 (diff)
[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 <grundler@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/compat.c')
-rw-r--r--fs/compat.c2
1 files changed, 2 insertions, 0 deletions
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,
114 return error; 114 return error;
115} 115}
116 116
117#ifndef __ARCH_WANT_STAT64
117asmlinkage long compat_sys_newfstatat(unsigned int dfd, char __user *filename, 118asmlinkage long compat_sys_newfstatat(unsigned int dfd, char __user *filename,
118 struct compat_stat __user *statbuf, int flag) 119 struct compat_stat __user *statbuf, int flag)
119{ 120{
@@ -134,6 +135,7 @@ asmlinkage long compat_sys_newfstatat(unsigned int dfd, char __user *filename,
134out: 135out:
135 return error; 136 return error;
136} 137}
138#endif
137 139
138asmlinkage long compat_sys_newfstat(unsigned int fd, 140asmlinkage long compat_sys_newfstat(unsigned int fd,
139 struct compat_stat __user * statbuf) 141 struct compat_stat __user * statbuf)