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 09/11] ipvs: constify ctl_table arguments of utility functions
    In a future commit the proc_handlers themselves will change to
    "const struct ctl_table". As a preparation for that adapt the internal
    helpers.

    Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
    ---
    net/netfilter/ipvs/ip_vs_ctl.c | 7 ++++---
    1 file changed, 4 insertions(+), 3 deletions(-)

    diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
    index 143a341bbc0a..689ac521ea2d 100644
    --- a/net/netfilter/ipvs/ip_vs_ctl.c
    +++ b/net/netfilter/ipvs/ip_vs_ctl.c
    @@ -1924,7 +1924,8 @@ proc_do_sync_ports(struct ctl_table *table, int write,
    return rc;
    }

    -static int ipvs_proc_est_cpumask_set(struct ctl_table *table, void *buffer)
    +static int ipvs_proc_est_cpumask_set(const struct ctl_table *table,
    + void *buffer)
    {
    struct netns_ipvs *ipvs = table->extra2;
    cpumask_var_t *valp = table->data;
    @@ -1962,8 +1963,8 @@ static int ipvs_proc_est_cpumask_set(struct ctl_table *table, void *buffer)
    return ret;
    }

    -static int ipvs_proc_est_cpumask_get(struct ctl_table *table, void *buffer,
    - size_t size)
    +static int ipvs_proc_est_cpumask_get(const struct ctl_table *table,
    + void *buffer, size_t size)
    {
    struct netns_ipvs *ipvs = table->extra2;
    cpumask_var_t *valp = table->data;
    --
    2.44.0


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