net: dsa: Constify two tagger ops
Subsystems (4)
cover net: dsa: Constify two tagger ops
This patch series constifies the dsa_device_ops for ocelot and sja1105
Florian Fainelli (2):
net: dsa: ocelot: Constify dsa_device_ops
net: dsa: tag_sja1105: Constify dsa_device_ops
net/dsa/tag_ocelot.c | 2 +- net/dsa/tag_sja1105.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
PATCH 1/2 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 <[email protected]>
--- net/dsa/tag_ocelot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/dsa/tag_ocelot.c +1 -1
@@ -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,
Signature · 1 line
2.17.1
PATCH 2/2 net: dsa: tag_sja1105: Constify dsa_device_ops
In reply to Florian Fainellisja1105_netdev_ops should be const since that is what the DSA layer expects.
Signed-off-by Florian Fainelli <[email protected]>
--- net/dsa/tag_sja1105.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/dsa/tag_sja1105.c +1 -1
@@ -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,
Signature · 1 line
2.17.1
David Miller
maintainerFrom: Florian Fainelli <[email protected]>
Date: Mon, 11 May 2020 16:47:13 -0700
Quoted 1 line
This patch series constifies the
dsa_device_opsfor ocelot and sja1105
Series applied, thanks Florian.