mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
a2564d0688
commit
f7386f545e
6 changed files with 1 additions and 8 deletions
|
|
@ -3487,7 +3487,6 @@ ssize_t simple_attr_write(struct file *file, const char __user *buf,
|
|||
ssize_t simple_attr_write_signed(struct file *file, const char __user *buf,
|
||||
size_t len, loff_t *ppos);
|
||||
|
||||
struct ctl_table;
|
||||
int __init list_bdev_fs_names(char *buf, size_t size);
|
||||
|
||||
#define __FMODE_EXEC ((__force int) FMODE_EXEC)
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@
|
|||
#include <linux/userfaultfd_k.h>
|
||||
#include <linux/nodemask.h>
|
||||
|
||||
struct ctl_table;
|
||||
struct user_struct;
|
||||
struct mmu_gather;
|
||||
struct node;
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@ extern void console_verbose(void);
|
|||
/* strlen("ratelimit") + 1 */
|
||||
#define DEVKMSG_STR_MAX_SIZE 10
|
||||
extern char devkmsg_log_str[DEVKMSG_STR_MAX_SIZE];
|
||||
struct ctl_table;
|
||||
|
||||
extern int suppress_printk;
|
||||
|
||||
|
|
|
|||
|
|
@ -215,8 +215,6 @@ typedef struct {
|
|||
unsigned short slave_timeout; /* when? */
|
||||
} ax25_dama_info;
|
||||
|
||||
struct ctl_table;
|
||||
|
||||
typedef struct ax25_dev {
|
||||
struct list_head list;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
*/
|
||||
#include <linux/console.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/sysctl.h>
|
||||
|
||||
#if defined(CONFIG_PRINTK) && defined(CONFIG_SYSCTL)
|
||||
struct ctl_table;
|
||||
void __init printk_sysctl_init(void);
|
||||
int devkmsg_sysctl_set_loglvl(const struct ctl_table *table, int write,
|
||||
void *buffer, size_t *lenp, loff_t *ppos);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
* sysctl.c: General linux system control interface
|
||||
*/
|
||||
|
||||
#include <linux/sysctl.h>
|
||||
#include <linux/printk.h>
|
||||
#include <linux/capability.h>
|
||||
#include <linux/ratelimit.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue