mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
[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>
This commit is contained in:
parent
2ea1c5392c
commit
82d821ddca
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user