From: Florian Fainelli Date: Mon, 11 May 2020 23:47:14 +0000 (-0700) Subject: net: dsa: ocelot: Constify dsa_device_ops X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2fa3888bb7a9fb3966c77555c8cd6f4bd6a1439a;p=linux.git net: dsa: ocelot: Constify dsa_device_ops ocelot_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_ocelot.c b/net/dsa/tag_ocelot.c index 59de1315100f8..b0c98ee4e13b3 100644 --- a/net/dsa/tag_ocelot.c +++ b/net/dsa/tag_ocelot.c @@ -228,7 +228,7 @@ static struct sk_buff *ocelot_rcv(struct sk_buff *skb, return skb; } -static struct dsa_device_ops ocelot_netdev_ops = { +static const struct dsa_device_ops ocelot_netdev_ops = { .name = "ocelot", .proto = DSA_TAG_PROTO_OCELOT, .xmit = ocelot_xmit,