dsa_switch_ops are not supposed to change at runtime. All functions
working with dsa_switch_ops provided by <net/dsa.h> work with
const dsa_switch_ops. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <redacted>
---
drivers/net/dsa/dsa_loop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
dsa_switch_ops are not supposed to change at runtime. All functions
working with dsa_switch_ops provided by <net/dsa.h> work with
const dsa_switch_ops. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <redacted>
---
drivers/net/dsa/mt7530.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
dsa_switch_ops are not supposed to change at runtime. All functions
working with dsa_switch_ops provided by <net/dsa.h> work with
const dsa_switch_ops. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <redacted>
---
drivers/net/dsa/lan9303-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Andrew Lunn <andrew@lunn.ch> Date: 2017-08-23 12:46:01
On Wed, Aug 23, 2017 at 03:46:56PM +0530, Arvind Yadav wrote:
dsa_switch_ops are not supposed to change at runtime. All functions
working with dsa_switch_ops provided by <net/dsa.h> work with
const dsa_switch_ops. So mark the non-const structs as const.
Arvind Yadav (3):
[PATCH 1/3] net: dsa: loop: constify dsa_switch_ops
[PATCH 2/3] net: dsa: lan9303: constify dsa_switch_ops
[PATCH 3/3] net: dsa: mt7530: constify dsa_switch_ops
For the whole series:
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
From: David Miller <davem@davemloft.net> Date: 2017-08-24 05:30:46
From: Andrew Lunn <andrew@lunn.ch>
Date: Wed, 23 Aug 2017 14:45:56 +0200
On Wed, Aug 23, 2017 at 03:46:56PM +0530, Arvind Yadav wrote:
quoted
dsa_switch_ops are not supposed to change at runtime. All functions
working with dsa_switch_ops provided by <net/dsa.h> work with
const dsa_switch_ops. So mark the non-const structs as const.
Arvind Yadav (3):
[PATCH 1/3] net: dsa: loop: constify dsa_switch_ops
[PATCH 2/3] net: dsa: lan9303: constify dsa_switch_ops
[PATCH 3/3] net: dsa: mt7530: constify dsa_switch_ops
For the whole series:
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
None of these patches apply to net-next, things are const there
already.