Skip to content

Commit 08ef0b7

Browse files
JoelgranadosNipaLocal
authored andcommitted
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. Signed-off-by: Joel Granados <joel.granados@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: NipaLocal <nipa@local>
1 parent 2cd5cf9 commit 08ef0b7

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

include/linux/fs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3483,7 +3483,6 @@ ssize_t simple_attr_write(struct file *file, const char __user *buf,
34833483
ssize_t simple_attr_write_signed(struct file *file, const char __user *buf,
34843484
size_t len, loff_t *ppos);
34853485

3486-
struct ctl_table;
34873486
int __init list_bdev_fs_names(char *buf, size_t size);
34883487

34893488
#define __FMODE_EXEC ((__force int) FMODE_EXEC)

include/linux/hugetlb.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#include <linux/userfaultfd_k.h>
1717
#include <linux/nodemask.h>
1818

19-
struct ctl_table;
20-
struct user_struct;
2119
struct mmu_gather;
2220
struct node;
2321

include/linux/printk.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ extern void console_verbose(void);
7878
/* strlen("ratelimit") + 1 */
7979
#define DEVKMSG_STR_MAX_SIZE 10
8080
extern char devkmsg_log_str[DEVKMSG_STR_MAX_SIZE];
81-
struct ctl_table;
8281

8382
extern int suppress_printk;
8483

include/net/ax25.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ typedef struct {
215215
unsigned short slave_timeout; /* when? */
216216
} ax25_dama_info;
217217

218-
struct ctl_table;
219-
220218
typedef struct ax25_dev {
221219
struct list_head list;
222220

0 commit comments

Comments
 (0)