Skip to content

Commit dee9f6a

Browse files
wb-zjp846396chucklever
authored andcommitted
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]. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent e739b12 commit dee9f6a

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

net/sunrpc/svcauth_unix.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,6 @@ static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class,
303303
return NULL;
304304
}
305305

306-
static inline struct ip_map *ip_map_lookup(struct net *net, char *class,
307-
struct in6_addr *addr)
308-
{
309-
struct sunrpc_net *sn;
310-
311-
sn = net_generic(net, sunrpc_net_id);
312-
return __ip_map_lookup(sn->ip_map_cache, class, addr);
313-
}
314-
315306
static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm,
316307
struct unix_domain *udom, time64_t expiry)
317308
{

0 commit comments

Comments
 (0)