Skip to content

Commit 4c1342d

Browse files
neuschaeferdavem330
authored andcommitted
net: core: dst_cache_set_ip6: Rename 'addr' parameter to 'saddr' for consistency
The other dst_cache_{get,set}_ip{4,6} functions, and the doc comment for dst_cache_set_ip6 use 'saddr' for their source address parameter. Rename the parameter to increase consistency. This fixes the following kernel-doc warnings: ./include/net/dst_cache.h:58: warning: Function parameter or member 'addr' not described in 'dst_cache_set_ip6' ./include/net/dst_cache.h:58: warning: Excess function parameter 'saddr' description in 'dst_cache_set_ip6' Fixes: 911362c ("net: add dst_cache support") Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 76b1297 commit 4c1342d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/net/dst_cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void dst_cache_set_ip4(struct dst_cache *dst_cache, struct dst_entry *dst,
5454
* local BH must be disabled.
5555
*/
5656
void dst_cache_set_ip6(struct dst_cache *dst_cache, struct dst_entry *dst,
57-
const struct in6_addr *addr);
57+
const struct in6_addr *saddr);
5858

5959
/**
6060
* dst_cache_get_ip6 - perform cache lookup and fetch ipv6 source address

net/core/dst_cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ EXPORT_SYMBOL_GPL(dst_cache_set_ip4);
107107

108108
#if IS_ENABLED(CONFIG_IPV6)
109109
void dst_cache_set_ip6(struct dst_cache *dst_cache, struct dst_entry *dst,
110-
const struct in6_addr *addr)
110+
const struct in6_addr *saddr)
111111
{
112112
struct dst_cache_pcpu *idst;
113113

@@ -117,7 +117,7 @@ void dst_cache_set_ip6(struct dst_cache *dst_cache, struct dst_entry *dst,
117117
idst = this_cpu_ptr(dst_cache->cache);
118118
dst_cache_per_cpu_dst_set(this_cpu_ptr(dst_cache->cache), dst,
119119
rt6_get_cookie((struct rt6_info *)dst));
120-
idst->in6_saddr = *addr;
120+
idst->in6_saddr = *saddr;
121121
}
122122
EXPORT_SYMBOL_GPL(dst_cache_set_ip6);
123123

0 commit comments

Comments
 (0)