All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sunrpc: Remove unused function ip_map_lookup
@ 2021-04-06  3:46 Jiapeng Chong
  2021-04-06 15:57 ` Chuck Lever III
  0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2021-04-06  3:46 UTC (permalink / raw)
  To: bfields
  Cc: chuck.lever, trond.myklebust, anna.schumaker, davem, kuba,
	linux-nfs, netdev, linux-kernel, Jiapeng Chong

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@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-06 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06  3:46 [PATCH] sunrpc: Remove unused function ip_map_lookup Jiapeng Chong
2021-04-06 15:57 ` Chuck Lever III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.