Skip to contentSkip to conversation

powerpc: use generic compat_sys_old_readdir

PATHC Christoph Hellwig 1 participant 1 message Aug 16, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

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.

arch/powerpc/include/asm/systbl.h +1 -1
Index: linux-2.6/arch/powerpc/include/asm/systbl.h
===================================================================
@@ -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