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
398398 extern int nfs_register_sysctl(void);
399399 extern void nfs_unregister_sysctl(void);
400400 #else
401−#define nfs_register_sysctl() do { } while(0)
401+#define nfs_register_sysctl() 0
402402 #define nfs_unregister_sysctl() do { } while(0)
403403 #endif
404404
kernel/sys_ni.c+2−0
@@ -104,6 +104,8 @@ cond_syscall(sys_setreuid16); · 103 unmodified lines
104104 cond_syscall(sys_setuid16);
105105 cond_syscall(sys_vm86old);
106106 cond_syscall(sys_vm86);
107+cond_syscall(compat_sys_ipc);
108+cond_syscall(compat_sys_sysctl);
107109
108110 /* arch-specific weak syscall entries */
109111 cond_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