The compat syscalls are added to sys_ni.c since they are not defined if the above CONFIG options are off. Also, nfs would not build with CONFIG_SYSCTL off. Noticed by Arthur Othieno.
Unified · Split
| @@ -398,7 +398,7 @@ extern struct inode_operations nfs_symlink_inode_operations; · 397 unmodified lines | |||
| 398 | extern int nfs_register_sysctl(void); | 398 | extern int nfs_register_sysctl(void); |
| 399 | extern void nfs_unregister_sysctl(void); | 399 | extern void nfs_unregister_sysctl(void); |
| 400 | #else | 400 | #else |
| 401 | #define nfs_register_sysctl() do { } while(0) | 401 | #define nfs_register_sysctl() 0 |
| 402 | #define nfs_unregister_sysctl() do { } while(0) | 402 | #define nfs_unregister_sysctl() do { } while(0) |
| 403 | #endif | 403 | #endif |
| 404 | 404 | ||
| @@ -104,6 +104,8 @@ cond_syscall(sys_setreuid16); · 103 unmodified lines | |||
| 104 | cond_syscall(sys_setuid16); | 104 | cond_syscall(sys_setuid16); |
| 105 | cond_syscall(sys_vm86old); | 105 | cond_syscall(sys_vm86old); |
| 106 | cond_syscall(sys_vm86); | 106 | cond_syscall(sys_vm86); |
| 107 | cond_syscall(compat_sys_ipc); | ||
| 108 | cond_syscall(compat_sys_sysctl); | ||
| 107 | 109 | ||
| 108 | /* arch-specific weak syscall entries */ | 110 | /* arch-specific weak syscall entries */ |
| 109 | cond_syscall(sys_pciconfig_read); | 111 | cond_syscall(sys_pciconfig_read); |