summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ndisc.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-10-12 08:58:38 -0700
committerJakub Kicinski <kuba@kernel.org>2021-10-13 09:40:46 -0700
commit1a8a23d2da4fec6f090ec26bbe76eab2b77410e9 (patch)
treea524ddf5c6fd2774906ba73dba670a761e380e16 /net/ipv6/ndisc.c
parent2ef6db76bac0f3006daceb9eeeaf5f09820b1caf (diff)
downloadlinux-1a8a23d2da4fec6f090ec26bbe76eab2b77410e9.tar.gz
linux-1a8a23d2da4fec6f090ec26bbe76eab2b77410e9.tar.bz2
linux-1a8a23d2da4fec6f090ec26bbe76eab2b77410e9.zip
ipv6: constify dev_addr passing
In preparation for netdev->dev_addr being constant make all relevant arguments in ndisc constant. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r--net/ipv6/ndisc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 4b098521a44c..184190b9ea25 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -142,7 +142,7 @@ struct neigh_table nd_tbl = {
};
EXPORT_SYMBOL_GPL(nd_tbl);
-void __ndisc_fill_addr_option(struct sk_buff *skb, int type, void *data,
+void __ndisc_fill_addr_option(struct sk_buff *skb, int type, const void *data,
int data_len, int pad)
{
int space = __ndisc_opt_addr_space(data_len, pad);
@@ -165,7 +165,7 @@ void __ndisc_fill_addr_option(struct sk_buff *skb, int type, void *data,
EXPORT_SYMBOL_GPL(__ndisc_fill_addr_option);
static inline void ndisc_fill_addr_option(struct sk_buff *skb, int type,
- void *data, u8 icmp6_type)
+ const void *data, u8 icmp6_type)
{
__ndisc_fill_addr_option(skb, type, data, skb->dev->addr_len,
ndisc_addr_option_pad(skb->dev->type));