[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3020346E-BD5C-45C6-8775-C791578FED0F@oracle.com>
Date: Tue, 6 Apr 2021 15:57:46 +0000
From: Chuck Lever III <chuck.lever@...cle.com>
To: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
CC: Bruce Fields <bfields@...ldses.org>,
Trond Myklebust <trond.myklebust@...merspace.com>,
Anna Schumaker <anna.schumaker@...app.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Linux NFS Mailing List <linux-nfs@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] sunrpc: Remove unused function ip_map_lookup
Hello-
> On Apr 5, 2021, at 11:46 PM, Jiapeng Chong <jiapeng.chong@...ux.alibaba.com> wrote:
>
> Fix the following clang warnings:
>
> net/sunrpc/svcauth_unix.c:306:30: warning: unused function
> 'ip_map_lookup' [-Wunused-function].
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
This has been pushed to the for-next topic branch in:
git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git
> ---
> net/sunrpc/svcauth_unix.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c
> index 97c0bdd..35b7966 100644
> --- a/net/sunrpc/svcauth_unix.c
> +++ b/net/sunrpc/svcauth_unix.c
> @@ -303,15 +303,6 @@ static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class,
> return NULL;
> }
>
> -static inline struct ip_map *ip_map_lookup(struct net *net, char *class,
> - struct in6_addr *addr)
> -{
> - struct sunrpc_net *sn;
> -
> - sn = net_generic(net, sunrpc_net_id);
> - return __ip_map_lookup(sn->ip_map_cache, class, addr);
> -}
> -
> static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm,
> struct unix_domain *udom, time64_t expiry)
> {
> --
> 1.8.3.1
>
--
Chuck Lever
Powered by blists - more mailing lists