Skip to contentSkip to conversation

sunrpc: Remove unused function ip_map_lookup

PATCH In review Jiapeng Chong 2 participants 2 messages Apr 6, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunrpc: Remove unused function ip_map_lookup

Fix the following clang warnings:

net/sunrpc/svcauth_unix.c:306:30: warning: unused function 'ip_map_lookup' [-Wunused-function].

---
 net/sunrpc/svcauth_unix.c | 9 ---------
 1 file changed, 9 deletions(-)
net/sunrpc/svcauth_unix.c +0 -9
index 97c0bdd..35b7966 100644
@@ -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)
 {
Signature · 1 line
1.8.3.1
#1 lore raw

Hello-

Quoted 9 lines · Jiapeng Chong

Fix the following clang warnings:

net/sunrpc/svcauth_unix.c:306:30: warning: unused function 'ip_map_lookup' [-Wunused-function].

This has been pushed to the for-next topic branch in:

git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git

Quoted 27 lines

---
net/sunrpc/svcauth_unix.c | 9 ---------

1 file changed, 9 deletions(-)
net/sunrpc/svcauth_unix.c +0 -9
index 97c0bdd..35b7966 100644
@@ -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)
 {
Signature · 1 line
1.8.3.1

--
Chuck Lever