Message ID | 20231204-const-sysctl-v2-17-7a5060b11447@weissschuh.net (mailing list archive) |
---|---|
State | In Next |
Commit | 447055b40c138d59ebd6d3d014da255559206cf2 |
Headers | show |
Series | sysctl: constify sysctl ctl_tables | expand |
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index d09107a5b43f..f2b663e0be33 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -30,7 +30,7 @@ static const struct file_operations proc_sys_dir_file_operations; static const struct inode_operations proc_sys_dir_operations; /* Support for permanently empty directories */ -static struct ctl_table sysctl_mount_point[] = { +static const struct ctl_table sysctl_mount_point[] = { { } };
This is a first example on how to use const struct ctl_table. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- fs/proc/proc_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)