Skip to content

Commit 6519dba

Browse files
committed
sysctl: Remove superfluous includes from kernel/sysctl.c
Remove the following headers from the include list in sysctl.c. * These are removed as the related variables are no longer there. =================== ==================== Include Related Var =================== ==================== linux/kmod.h usermodehelper asm/nmi.h nmi_watchdoc_enabled asm/io.h io_delay_type linux/pid.h pid_max_{,min,max} linux/sched/sysctl.h sysctl_{sched_*,numa_*,timer_*} linux/mount.h sysctl_mount_max linux/reboot.h poweroff_cmd linux/ratelimit.h {,printk_}ratelimit_state linux/printk.h kptr_restrict linux/security.h CONFIG_SECURITY_CAPABILITIES linux/net.h net_table linux/key.h key_sysctls linux/nvs_fs.h acpi_video_flags linux/acpi.h acpi_video_flags linux/fs.h proc_nr_files * These are no longer needed as intermediate includes ============== Include ============== linux/filter.h linux/binfmts.h Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Luis Chamberlain <[email protected]> Signed-off-by: Joel Granados <[email protected]>
1 parent ad0800b commit 6519dba

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

kernel/sysctl.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,24 @@
55

66
#include <linux/sysctl.h>
77
#include <linux/bitmap.h>
8-
#include <linux/printk.h>
98
#include <linux/proc_fs.h>
10-
#include <linux/security.h>
119
#include <linux/ctype.h>
12-
#include <linux/filter.h>
13-
#include <linux/fs.h>
1410
#include <linux/init.h>
1511
#include <linux/kernel.h>
1612
#include <linux/kobject.h>
17-
#include <linux/net.h>
1813
#include <linux/highuid.h>
1914
#include <linux/writeback.h>
20-
#include <linux/ratelimit.h>
2115
#include <linux/initrd.h>
22-
#include <linux/key.h>
2316
#include <linux/times.h>
2417
#include <linux/limits.h>
2518
#include <linux/syscalls.h>
26-
#include <linux/nfs_fs.h>
27-
#include <linux/acpi.h>
28-
#include <linux/reboot.h>
29-
#include <linux/kmod.h>
3019
#include <linux/capability.h>
31-
#include <linux/binfmts.h>
32-
#include <linux/sched/sysctl.h>
33-
#include <linux/mount.h>
34-
#include <linux/pid.h>
3520

3621
#include "../lib/kstrtox.h"
3722

3823
#include <linux/uaccess.h>
3924
#include <asm/processor.h>
4025

41-
#ifdef CONFIG_X86
42-
#include <asm/nmi.h>
43-
#include <asm/io.h>
44-
#endif
45-
4626
/* shared constants to be used in various sysctls */
4727
const int sysctl_vals[] = { 0, 1, 2, 3, 4, 100, 200, 1000, 3000, INT_MAX, 65535, -1 };
4828
EXPORT_SYMBOL(sysctl_vals);

0 commit comments

Comments
 (0)