[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ec78e7dd-a0c4-45e3-afe6-604308f7240e@redhat.com>
Date: Tue, 22 Oct 2024 10:53:32 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: Kuniyuki Iwashima <kuniyu@...zon.com>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>
Cc: Kuniyuki Iwashima <kuni1840@...il.com>, netdev@...r.kernel.org,
Roopa Prabhu <roopa@...dia.com>, Nikolay Aleksandrov <razor@...ckwall.org>,
David Ahern <dsahern@...nel.org>, Jeremy Kerr <jk@...econstruct.com.au>,
Matt Johnston <matt@...econstruct.com.au>
Subject: Re: [PATCH v2 net-next 13/14] rtnetlink: Return int from
rtnl_af_register().
On 10/16/24 20:53, Kuniyuki Iwashima wrote:
> diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
> index 445e6ffed75e..70b663aca209 100644
> --- a/net/core/rtnetlink.c
> +++ b/net/core/rtnetlink.c
> @@ -686,11 +686,13 @@ static const struct rtnl_af_ops *rtnl_af_lookup(const int family)
> *
> * Returns 0 on success or a negative error code.
> */
> -void rtnl_af_register(struct rtnl_af_ops *ops)
> +int rtnl_af_register(struct rtnl_af_ops *ops)
> {
> rtnl_lock();
> list_add_tail_rcu(&ops->list, &rtnl_af_ops);
> rtnl_unlock();
> +
> + return 0;
> }
> EXPORT_SYMBOL_GPL(rtnl_af_register);
kdoc complains about the missing description for the return value. You
need to replace 'Returns' with '@...urn'.
Not blocking, but please follow-up.
Thanks!
Paolo
Powered by blists - more mailing lists