[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211012155840.4151590-7-kuba@kernel.org>
Date: Tue, 12 Oct 2021 08:58:40 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, ralf@...ux-mips.org, jreuter@...na.de,
yoshfuji@...ux-ipv6.org, dsahern@...nel.org, jmaloy@...hat.com,
ying.xue@...driver.com, linux-hams@...r.kernel.org,
tipc-discussion@...ts.sourceforge.net,
Jakub Kicinski <kuba@...nel.org>
Subject: [PATCH net-next 6/6] 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@...nel.org>
---
include/net/dn.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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));
}
--
2.31.1
Powered by blists - more mailing lists