summaryrefslogtreecommitdiff
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2017-08-18 23:46:22 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-19 08:37:27 +0300
commit737aec57c672c1308d602afecd841455c39561e5 (patch)
tree5fe772e7da776ad870a248f82044ae70f6255dd6 /net/core/net-sysfs.c
parente6d473e63536ea1989dc63c066f0c0464a969324 (diff)
downloadlinux-737aec57c672c1308d602afecd841455c39561e5.tar.xz
net: constify net_ns_type_operations
This can be const. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 99061b0a1ebd..2de441692f28 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -1461,7 +1461,7 @@ static const void *net_netlink_ns(struct sock *sk)
return sock_net(sk);
}
-struct kobj_ns_type_operations net_ns_type_operations = {
+const struct kobj_ns_type_operations net_ns_type_operations = {
.type = KOBJ_NS_TYPE_NET,
.current_may_mount = net_current_may_mount,
.grab_current_ns = net_grab_current_ns,