diff options
| author | David S. Miller <davem@davemloft.net> | 2017-08-18 22:38:55 -0700 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-08-18 22:38:55 -0700 |
| commit | ef319d4f2561c94bc2d7b8cb86dbbf4359074d8f (patch) | |
| tree | f4423395dcffa85449e328be72586aaff3d3d10b /include/linux | |
| parent | 01d300c577c72229b0a3b09e194cae52b219d5b3 (diff) | |
| parent | 6648c65e7ea72c3b19ea908d046e4a47e90fd907 (diff) | |
| download | cachepc-linux-ef319d4f2561c94bc2d7b8cb86dbbf4359074d8f.tar.gz cachepc-linux-ef319d4f2561c94bc2d7b8cb86dbbf4359074d8f.zip | |
Merge branch 'net-sysfs-related-cleanups'
Stephen Hemminger says:
====================
net: sysfs related cleanups
Network sysfs infrastructure changes. Mostly related to using ro_after_init
to make function tables immutable.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netdevice.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 0f1c4cb2441e..c5475b37a631 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -694,10 +694,9 @@ struct netdev_rx_queue { */ struct rx_queue_attribute { struct attribute attr; - ssize_t (*show)(struct netdev_rx_queue *queue, - struct rx_queue_attribute *attr, char *buf); + ssize_t (*show)(struct netdev_rx_queue *queue, char *buf); ssize_t (*store)(struct netdev_rx_queue *queue, - struct rx_queue_attribute *attr, const char *buf, size_t len); + const char *buf, size_t len); }; #ifdef CONFIG_XPS @@ -4013,22 +4012,22 @@ static inline netdev_tx_t netdev_start_xmit(struct sk_buff *skb, struct net_devi return rc; } -int netdev_class_create_file_ns(struct class_attribute *class_attr, +int netdev_class_create_file_ns(const struct class_attribute *class_attr, const void *ns); -void netdev_class_remove_file_ns(struct class_attribute *class_attr, +void netdev_class_remove_file_ns(const struct class_attribute *class_attr, const void *ns); -static inline int netdev_class_create_file(struct class_attribute *class_attr) +static inline int netdev_class_create_file(const struct class_attribute *class_attr) { return netdev_class_create_file_ns(class_attr, NULL); } -static inline void netdev_class_remove_file(struct class_attribute *class_attr) +static inline void netdev_class_remove_file(const struct class_attribute *class_attr) { netdev_class_remove_file_ns(class_attr, NULL); } -extern struct kobj_ns_type_operations net_ns_type_operations; +extern const struct kobj_ns_type_operations net_ns_type_operations; const char *netdev_drivername(const struct net_device *dev); |
