linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: dsa: Constify two tagger ops
@ 2020-05-11 23:47 Florian Fainelli
  2020-05-11 23:47 ` [PATCH net-next 1/2] net: dsa: ocelot: Constify dsa_device_ops Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Florian Fainelli @ 2020-05-11 23:47 UTC (permalink / raw)
  To: netdev
  Cc: Florian Fainelli, Vladimir Oltean, Claudiu Manoil, Andrew Lunn,
	Vivien Didelot, David S. Miller, Jakub Kicinski, open list

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(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH net-next 1/2] net: dsa: ocelot: Constify dsa_device_ops
  2020-05-11 23:47 [PATCH net-next 0/2] net: dsa: Constify two tagger ops Florian Fainelli
@ 2020-05-11 23:47 ` Florian Fainelli
  2020-05-11 23:47 ` [PATCH net-next 2/2] net: dsa: tag_sja1105: " Florian Fainelli
  2020-05-11 23:51 ` [PATCH net-next 0/2] net: dsa: Constify two tagger ops David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2020-05-11 23:47 UTC (permalink / raw)
  To: netdev
  Cc: Florian Fainelli, Vladimir Oltean, Claudiu Manoil, Andrew Lunn,
	Vivien Didelot, David S. Miller, Jakub Kicinski, open list

ocelot_netdev_ops should be const since that is what the DSA layer
expects.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 net/dsa/tag_ocelot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/dsa/tag_ocelot.c b/net/dsa/tag_ocelot.c
index 59de1315100f..b0c98ee4e13b 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,
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH net-next 2/2] net: dsa: tag_sja1105: Constify dsa_device_ops
  2020-05-11 23:47 [PATCH net-next 0/2] net: dsa: Constify two tagger ops Florian Fainelli
  2020-05-11 23:47 ` [PATCH net-next 1/2] net: dsa: ocelot: Constify dsa_device_ops Florian Fainelli
@ 2020-05-11 23:47 ` Florian Fainelli
  2020-05-11 23:51 ` [PATCH net-next 0/2] net: dsa: Constify two tagger ops David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2020-05-11 23:47 UTC (permalink / raw)
  To: netdev
  Cc: Florian Fainelli, Vladimir Oltean, Claudiu Manoil, Andrew Lunn,
	Vivien Didelot, David S. Miller, Jakub Kicinski, open list

sja1105_netdev_ops should be const since that is what the DSA layer
expects.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 net/dsa/tag_sja1105.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/dsa/tag_sja1105.c b/net/dsa/tag_sja1105.c
index d553bf36bd41..5ecac5921a7d 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,
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next 0/2] net: dsa: Constify two tagger ops
  2020-05-11 23:47 [PATCH net-next 0/2] net: dsa: Constify two tagger ops Florian Fainelli
  2020-05-11 23:47 ` [PATCH net-next 1/2] net: dsa: ocelot: Constify dsa_device_ops Florian Fainelli
  2020-05-11 23:47 ` [PATCH net-next 2/2] net: dsa: tag_sja1105: " Florian Fainelli
@ 2020-05-11 23:51 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2020-05-11 23:51 UTC (permalink / raw)
  To: f.fainelli
  Cc: netdev, vladimir.oltean, claudiu.manoil, andrew, vivien.didelot,
	kuba, linux-kernel

From: Florian Fainelli <f.fainelli@gmail.com>
Date: Mon, 11 May 2020 16:47:13 -0700

> This patch series constifies the dsa_device_ops for ocelot and sja1105

Series applied, thanks Florian.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-11 23:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 23:47 [PATCH net-next 0/2] net: dsa: Constify two tagger ops Florian Fainelli
2020-05-11 23:47 ` [PATCH net-next 1/2] net: dsa: ocelot: Constify dsa_device_ops Florian Fainelli
2020-05-11 23:47 ` [PATCH net-next 2/2] net: dsa: tag_sja1105: " Florian Fainelli
2020-05-11 23:51 ` [PATCH net-next 0/2] net: dsa: Constify two tagger ops David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).