mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
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>
This commit is contained in:
parent
793f40147e
commit
f7fadf3047
4 changed files with 9 additions and 8 deletions
|
@ -132,7 +132,7 @@ struct switchdev_ops {
|
|||
int (*switchdev_port_attr_get)(struct net_device *dev,
|
||||
struct switchdev_attr *attr);
|
||||
int (*switchdev_port_attr_set)(struct net_device *dev,
|
||||
struct switchdev_attr *attr,
|
||||
const struct switchdev_attr *attr,
|
||||
struct switchdev_trans *trans);
|
||||
int (*switchdev_port_obj_add)(struct net_device *dev,
|
||||
const struct switchdev_obj *obj,
|
||||
|
@ -171,7 +171,7 @@ void switchdev_deferred_process(void);
|
|||
int switchdev_port_attr_get(struct net_device *dev,
|
||||
struct switchdev_attr *attr);
|
||||
int switchdev_port_attr_set(struct net_device *dev,
|
||||
struct switchdev_attr *attr);
|
||||
const struct switchdev_attr *attr);
|
||||
int switchdev_port_obj_add(struct net_device *dev,
|
||||
const struct switchdev_obj *obj);
|
||||
int switchdev_port_obj_del(struct net_device *dev,
|
||||
|
@ -220,7 +220,7 @@ static inline int switchdev_port_attr_get(struct net_device *dev,
|
|||
}
|
||||
|
||||
static inline int switchdev_port_attr_set(struct net_device *dev,
|
||||
struct switchdev_attr *attr)
|
||||
const struct switchdev_attr *attr)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue