Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sysctl: Remove unused ctl_table forward declarations

Remove superfluous forward declarations of ctl_table from header files
where they are no longer needed. These declarations were left behind
after sysctl code refactoring and cleanup.

Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Muchun Song <muchun.song@linux.dev>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Joel Granados <joel.granados@kernel.org>

+1 -8
-1
include/linux/fs.h
··· 3487 3487 ssize_t simple_attr_write_signed(struct file *file, const char __user *buf, 3488 3488 size_t len, loff_t *ppos); 3489 3489 3490 - struct ctl_table; 3491 3490 int __init list_bdev_fs_names(char *buf, size_t size); 3492 3491 3493 3492 #define __FMODE_EXEC ((__force int) FMODE_EXEC)
-2
include/linux/hugetlb.h
··· 16 16 #include <linux/userfaultfd_k.h> 17 17 #include <linux/nodemask.h> 18 18 19 - struct ctl_table; 20 - struct user_struct; 21 19 struct mmu_gather; 22 20 struct node; 23 21
-1
include/linux/printk.h
··· 78 78 /* strlen("ratelimit") + 1 */ 79 79 #define DEVKMSG_STR_MAX_SIZE 10 80 80 extern char devkmsg_log_str[DEVKMSG_STR_MAX_SIZE]; 81 - struct ctl_table; 82 81 83 82 extern int suppress_printk; 84 83
-2
include/net/ax25.h
··· 215 215 unsigned short slave_timeout; /* when? */ 216 216 } ax25_dama_info; 217 217 218 - struct ctl_table; 219 - 220 218 typedef struct ax25_dev { 221 219 struct list_head list; 222 220
+1 -1
kernel/printk/internal.h
··· 4 4 */ 5 5 #include <linux/console.h> 6 6 #include <linux/types.h> 7 + #include <linux/sysctl.h> 7 8 8 9 #if defined(CONFIG_PRINTK) && defined(CONFIG_SYSCTL) 9 - struct ctl_table; 10 10 void __init printk_sysctl_init(void); 11 11 int devkmsg_sysctl_set_loglvl(const struct ctl_table *table, int write, 12 12 void *buffer, size_t *lenp, loff_t *ppos);
-1
kernel/printk/sysctl.c
··· 3 3 * sysctl.c: General linux system control interface 4 4 */ 5 5 6 - #include <linux/sysctl.h> 7 6 #include <linux/printk.h> 8 7 #include <linux/capability.h> 9 8 #include <linux/ratelimit.h>