Skip to content

Commit

Permalink
[PATCH] Conditionalize compat_sys_newfstatat
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kyle McMartin authored and Linus Torvalds committed Mar 24, 2006
1 parent 2ea1c53 commit 82d821d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
Expand Down

0 comments on commit 82d821d

Please sign in to comment.