Skip to content

Commit 4154342

Browse files
t-8chJoelgranados
authored andcommitted
utsname: constify ctl_table arguments of utility function
The sysctl core is preparing to only expose instances of struct ctl_table as "const". This will also affect the ctl_table argument of sysctl handlers. As the function prototype of all sysctl handlers throughout the tree needs to stay consistent that change will be done in one commit. To reduce the size of that final commit, switch utility functions which are not bound by "typedef proc_handler" to "const struct ctl_table". No functional change. Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Joel Granados <[email protected]> Signed-off-by: Joel Granados <[email protected]>
1 parent b5ffbd1 commit 4154342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/utsname_sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#ifdef CONFIG_PROC_SYSCTL
1717

18-
static void *get_uts(struct ctl_table *table)
18+
static void *get_uts(const struct ctl_table *table)
1919
{
2020
char *which = table->data;
2121
struct uts_namespace *uts_ns;

0 commit comments

Comments
 (0)