Commit 82d821ddca8f5c990067cc37543010aa9346a172

Authored by Kyle McMartin
Committed by Linus Torvalds
1 parent 2ea1c5392c

[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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -114,6 +114,7 @@
114 114 return error;
115 115 }
116 116  
  117 +#ifndef __ARCH_WANT_STAT64
117 118 asmlinkage long compat_sys_newfstatat(unsigned int dfd, char __user *filename,
118 119 struct compat_stat __user *statbuf, int flag)
119 120 {
... ... @@ -134,6 +135,7 @@
134 135 out:
135 136 return error;
136 137 }
  138 +#endif
137 139  
138 140 asmlinkage long compat_sys_newfstat(unsigned int fd,
139 141 struct compat_stat __user * statbuf)