From: Florian Fainelli Date: Mon, 11 May 2020 23:47:15 +0000 (-0700) Subject: net: dsa: tag_sja1105: Constify dsa_device_ops X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=097f024454fca0e13bbba0ab54dfe63ac5610953;p=linux.git net: dsa: tag_sja1105: Constify dsa_device_ops sja1105_netdev_ops should be const since that is what the DSA layer expects. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/net/dsa/tag_sja1105.c b/net/dsa/tag_sja1105.c index d553bf36bd412..5ecac5921a7d7 100644 --- a/net/dsa/tag_sja1105.c +++ b/net/dsa/tag_sja1105.c @@ -304,7 +304,7 @@ static struct sk_buff *sja1105_rcv(struct sk_buff *skb, is_meta); } -static struct dsa_device_ops sja1105_netdev_ops = { +static const struct dsa_device_ops sja1105_netdev_ops = { .name = "sja1105", .proto = DSA_TAG_PROTO_SJA1105, .xmit = sja1105_xmit,