viro@parcelfarce.linux.theplanet.co.uk wrote: > On Wed, Feb 25, 2004 at 07:11:40PM -0800, Andrew Morton wrote: > >>viro@parcelfarce.linux.theplanet.co.uk wrote: >> >>>On Wed, Feb 25, 2004 at 09:51:30PM -0500, Brian Gerst wrote: >>> >>>>Remove stubs for sys_ioperm for non-x86 arches, using sys_ni_syscall >>>>instead where applicable. >>> >>>I have better suggestion: make sys_ioperm() a cond_syscall(). Then kill >>>its implementation on all platforms where it just returns -ENOSYS. >> >>Why is that better? Sticking a pointer to the not-implemented-syscall into >>the syscall table is pretty darn explicit. > > > No chance of reuse. BTW, > #define __NR_ioperm /* 101 */ > is asking for trouble. You get the symbol defined (so that will fool any > ifdef) and it expands to something completely bogus. > cond_syscall() should be used for cases where a config option controls the syscall. Support for sys_ioperm is unconditionally no for non-x86 arches. In practice, new syscalls are added to the end of the table, so reuse isn't a major issue. I backed out the uncommened text with __NR_ioperm, but there are other examples of this in those files that I just copied. An audit of unistd.h needs to be done. -- Brian Gerst