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>
This commit is contained in:
Jakub Kicinski 2021-10-12 08:58:40 -07:00
parent 6cf8628072
commit 1bfcd1cc54
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}