History

[PATCH] Fix compile for CONFIG_SYSVIPC=n or CONFIG_SYSCTL=n

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.

Stephen Rothwell committed 20 years ago

Commit 7fd105e1 parent 7a9166e2 files · +3 −1Browse files

Unified · Split

2 files
  1. include/linux/nfs_fs.h +1 −1
  2. kernel/sys_ni.c +2 −0
include/linux/nfs_fs.h+1−1
@@ -398,7 +398,7 @@ extern struct inode_operations nfs_symlink_inode_operations; · 397 unmodified lines
398extern int nfs_register_sysctl(void);398extern int nfs_register_sysctl(void);
399extern void nfs_unregister_sysctl(void);399extern void nfs_unregister_sysctl(void);
400#else400#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#endif403#endif
404 404
kernel/sys_ni.c+2−0
@@ -104,6 +104,8 @@ cond_syscall(sys_setreuid16); · 103 unmodified lines
104cond_syscall(sys_setuid16);104cond_syscall(sys_setuid16);
105cond_syscall(sys_vm86old);105cond_syscall(sys_vm86old);
106cond_syscall(sys_vm86);106cond_syscall(sys_vm86);
107cond_syscall(compat_sys_ipc);
108cond_syscall(compat_sys_sysctl);
107 109
108/* arch-specific weak syscall entries */110/* arch-specific weak syscall entries */
109cond_syscall(sys_pciconfig_read);111cond_syscall(sys_pciconfig_read);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t