diff options
Diffstat (limited to 'net/switchdev/switchdev.c')
-rw-r--r-- | net/switchdev/switchdev.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index 5e64b591aff7..23b4e5b347dc 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c | |||
@@ -215,7 +215,7 @@ int switchdev_port_attr_get(struct net_device *dev, struct switchdev_attr *attr) | |||
215 | EXPORT_SYMBOL_GPL(switchdev_port_attr_get); | 215 | EXPORT_SYMBOL_GPL(switchdev_port_attr_get); |
216 | 216 | ||
217 | static int __switchdev_port_attr_set(struct net_device *dev, | 217 | static int __switchdev_port_attr_set(struct net_device *dev, |
218 | struct switchdev_attr *attr, | 218 | const struct switchdev_attr *attr, |
219 | struct switchdev_trans *trans) | 219 | struct switchdev_trans *trans) |
220 | { | 220 | { |
221 | const struct switchdev_ops *ops = dev->switchdev_ops; | 221 | const struct switchdev_ops *ops = dev->switchdev_ops; |
@@ -274,7 +274,7 @@ static void switchdev_port_attr_set_work(struct work_struct *work) | |||
274 | } | 274 | } |
275 | 275 | ||
276 | static int switchdev_port_attr_set_defer(struct net_device *dev, | 276 | static int switchdev_port_attr_set_defer(struct net_device *dev, |
277 | struct switchdev_attr *attr) | 277 | const struct switchdev_attr *attr) |
278 | { | 278 | { |
279 | struct switchdev_attr_set_work *asw; | 279 | struct switchdev_attr_set_work *asw; |
280 | 280 | ||
@@ -303,7 +303,8 @@ static int switchdev_port_attr_set_defer(struct net_device *dev, | |||
303 | * system is not left in a partially updated state due to | 303 | * system is not left in a partially updated state due to |
304 | * failure from driver/device. | 304 | * failure from driver/device. |
305 | */ | 305 | */ |
306 | int switchdev_port_attr_set(struct net_device *dev, struct switchdev_attr *attr) | 306 | int switchdev_port_attr_set(struct net_device *dev, |
307 | const struct switchdev_attr *attr) | ||
307 | { | 308 | { |
308 | struct switchdev_trans trans; | 309 | struct switchdev_trans trans; |
309 | int err; | 310 | int err; |