summaryrefslogtreecommitdiff
path: root/include/net/dn.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-10-12 08:58:40 -0700
committerJakub Kicinski <kuba@kernel.org>2021-10-13 09:40:46 -0700
commit1bfcd1cc546eaa9ecafb9718bc877f24b8a349c2 (patch)
tree7b94b4e0893cc2b5cac3db4eb11e9dedfdcc6e46 /include/net/dn.h
parent6cf862807234fa8d7c91a3a2d327a87471b9adbd (diff)
decnet: constify dev_addr passing
In preparation for netdev->dev_addr being constant make all relevant arguments in decnet constant. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/dn.h')
-rw-r--r--include/net/dn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dn.h b/include/net/dn.h
index 56ab0726c641..ba9655b0098a 100644
--- a/include/net/dn.h
+++ b/include/net/dn.h
@@ -166,7 +166,7 @@ struct dn_skb_cb {
int iif;
};
-static inline __le16 dn_eth2dn(unsigned char *ethaddr)
+static inline __le16 dn_eth2dn(const unsigned char *ethaddr)
{
return get_unaligned((__le16 *)(ethaddr + 4));
}