compat: move cp_compat_stat to common code
struct stat / compat_stat is the same on all architectures, so cp_compat_stat should be, too. Turns out it is, except that various architectures have slightly and some high2lowuid/high2lowgid or the direct assignment instead of the SET_UID/SET_GID that expands to the correct one anyway. This patch replaces the arch-specific cp_compat_stat implementations with a common one based on the x86-64 one. Signed-off-by:Christoph Hellwig <hch@lst.de> Acked-by: David S. Miller <davem@davemloft.net> [ sparc bits ] Acked-by: Kyle McMartin <kyle@mcmartin.ca> [ parisc bits ] Cc: <linux-arch@vger.kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/ia64/ia32/sys_ia32.c 0 additions, 35 deletionsarch/ia64/ia32/sys_ia32.c
- arch/mips/kernel/linux32.c 0 additions, 35 deletionsarch/mips/kernel/linux32.c
- arch/parisc/kernel/sys_parisc32.c 0 additions, 47 deletionsarch/parisc/kernel/sys_parisc32.c
- arch/powerpc/kernel/sys_ppc32.c 0 additions, 36 deletionsarch/powerpc/kernel/sys_ppc32.c
- arch/s390/kernel/compat_linux.c 0 additions, 35 deletionsarch/s390/kernel/compat_linux.c
- arch/sparc64/kernel/sys_sparc32.c 0 additions, 35 deletionsarch/sparc64/kernel/sys_sparc32.c
- arch/x86/ia32/sys_ia32.c 0 additions, 35 deletionsarch/x86/ia32/sys_ia32.c
- fs/compat.c 39 additions, 0 deletionsfs/compat.c
- include/linux/compat.h 0 additions, 1 deletioninclude/linux/compat.h
Loading
Please register or sign in to comment