diff options
author | Jiri Pirko <jiri@mellanox.com> | 2015-10-14 19:40:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-15 06:09:46 -0700 |
commit | f7fadf3047d005d17376da65aa9e5734f45a77d4 (patch) | |
tree | a5387868be0e0daf8c8f3d76b4fd764717cf4401 /net/dsa | |
parent | 793f40147e82cdedc80971fa7f5596d6ed1e555e (diff) | |
download | linux-stable-f7fadf3047d005d17376da65aa9e5734f45a77d4.tar.gz linux-stable-f7fadf3047d005d17376da65aa9e5734f45a77d4.tar.bz2 linux-stable-f7fadf3047d005d17376da65aa9e5734f45a77d4.zip |
switchdev: make struct switchdev_attr parameter const for attr_set calls
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/slave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 43d7342e7527..84cd8639e37b 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -453,7 +453,7 @@ static int dsa_slave_stp_update(struct net_device *dev, u8 state) } static int dsa_slave_port_attr_set(struct net_device *dev, - struct switchdev_attr *attr, + const struct switchdev_attr *attr, struct switchdev_trans *trans) { struct dsa_slave_priv *p = netdev_priv(dev); |