powerpc: use generic compat_sys_old_readdir
Use the generic compat_sys_old_readdir instead of the powerpc one which is almost the same except for the almost complete lack of error handling.
Note that we can't just use SYSCALL() in systbl.h because the native syscalls is named old_readdir, not sys_old_readdir or just sys_readdir beeing the only one.
Signed-off-by Christoph Hellwig <[email protected]>
arch/powerpc/include/asm/systbl.h +1 -1
@@ -92,7 +92,7 @@ COMPAT_SYS_SPU(readlink) SYSCALL(uselib) SYSCALL(swapon) SYSCALL(reboot) -SYSX(sys_ni_syscall,old32_readdir,old_readdir) +SYSX(sys_ni_syscall,compat_sys_old_readdir,old_readdir) SYSCALL_SPU(mmap) SYSCALL_SPU(munmap) SYSCALL_SPU(truncate)
arch/powerpc/kernel/sys_ppc32.c +0 -57
63 lines not on this page · raw message