diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-08-18 23:46:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-19 08:37:12 +0300 |
commit | b793dc5c6edfb106fd57d12ad6aca64bf160b403 (patch) | |
tree | 0bf920a37fb93596630bd15241ae0711fc549b1c /net/core/net-sysfs.c | |
parent | d0d6683716791b2a2761a1bb025c613eb73da6c3 (diff) | |
download | linux-b793dc5c6edfb106fd57d12ad6aca64bf160b403.tar.xz |
net: constify netdev_class_file
These functions are wrapper arount class_create_file which can take a
const attribute.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r-- | net/core/net-sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 46ff41bf0210..40937ee63f14 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -1618,14 +1618,14 @@ int netdev_register_kobject(struct net_device *ndev) return error; } -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) { return class_create_file_ns(&net_class, class_attr, ns); } EXPORT_SYMBOL(netdev_class_create_file_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) { class_remove_file_ns(&net_class, class_attr, ns); |