lkml.org 
[lkml]   [2024]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH v3 04/11] utsname: constify ctl_table arguments of utility function
    In a future commit the proc_handlers themselves will change to
    "const struct ctl_table". As a preparation for that adapt the internal
    helper.

    Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
    ---
    kernel/utsname_sysctl.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c
    index 76a772072557..04e4513f2985 100644
    --- a/kernel/utsname_sysctl.c
    +++ b/kernel/utsname_sysctl.c
    @@ -15,7 +15,7 @@

    #ifdef CONFIG_PROC_SYSCTL

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


    \
     
     \ /
      Last update: 2024-05-27 17:57    [W:3.095 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site