diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2009-09-14 08:23:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-14 20:03:09 -0400 |
commit | 5708e868dc512f055f0ea4a14d01f8252c3ca8a1 (patch) | |
tree | 723b49669dd9f96c6cec9ce16458774ed8906286 /net | |
parent | 41135cc836a1abeb12ca1416bdb29e87ad021153 (diff) |
net: constify remaining proto_ops
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/dccp/ipv6.c | 2 | ||||
-rw-r--r-- | net/iucv/af_iucv.c | 4 | ||||
-rw-r--r-- | net/rds/af_rds.c | 2 | ||||
-rw-r--r-- | net/rose/af_rose.c | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index 364bfc76c29e..e48ca5d45658 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c | |||
@@ -1158,7 +1158,7 @@ static const struct inet6_protocol dccp_v6_protocol = { | |||
1158 | .flags = INET6_PROTO_NOPOLICY | INET6_PROTO_FINAL, | 1158 | .flags = INET6_PROTO_NOPOLICY | INET6_PROTO_FINAL, |
1159 | }; | 1159 | }; |
1160 | 1160 | ||
1161 | static struct proto_ops inet6_dccp_ops = { | 1161 | static const struct proto_ops inet6_dccp_ops = { |
1162 | .family = PF_INET6, | 1162 | .family = PF_INET6, |
1163 | .owner = THIS_MODULE, | 1163 | .owner = THIS_MODULE, |
1164 | .release = inet6_release, | 1164 | .release = inet6_release, |
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index 49c15b48408e..3c915fb42917 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | static char iucv_userid[80]; | 35 | static char iucv_userid[80]; |
36 | 36 | ||
37 | static struct proto_ops iucv_sock_ops; | 37 | static const struct proto_ops iucv_sock_ops; |
38 | 38 | ||
39 | static struct proto iucv_proto = { | 39 | static struct proto iucv_proto = { |
40 | .name = "AF_IUCV", | 40 | .name = "AF_IUCV", |
@@ -1682,7 +1682,7 @@ static void iucv_callback_shutdown(struct iucv_path *path, u8 ipuser[16]) | |||
1682 | bh_unlock_sock(sk); | 1682 | bh_unlock_sock(sk); |
1683 | } | 1683 | } |
1684 | 1684 | ||
1685 | static struct proto_ops iucv_sock_ops = { | 1685 | static const struct proto_ops iucv_sock_ops = { |
1686 | .family = PF_IUCV, | 1686 | .family = PF_IUCV, |
1687 | .owner = THIS_MODULE, | 1687 | .owner = THIS_MODULE, |
1688 | .release = iucv_sock_release, | 1688 | .release = iucv_sock_release, |
diff --git a/net/rds/af_rds.c b/net/rds/af_rds.c index 108ed2e671c5..6b58aeff4c7a 100644 --- a/net/rds/af_rds.c +++ b/net/rds/af_rds.c | |||
@@ -359,7 +359,7 @@ static struct proto rds_proto = { | |||
359 | .obj_size = sizeof(struct rds_sock), | 359 | .obj_size = sizeof(struct rds_sock), |
360 | }; | 360 | }; |
361 | 361 | ||
362 | static struct proto_ops rds_proto_ops = { | 362 | static const struct proto_ops rds_proto_ops = { |
363 | .family = AF_RDS, | 363 | .family = AF_RDS, |
364 | .owner = THIS_MODULE, | 364 | .owner = THIS_MODULE, |
365 | .release = rds_release, | 365 | .release = rds_release, |
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index e5f478ca3d61..1e166c9685aa 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
@@ -63,7 +63,7 @@ int sysctl_rose_window_size = ROSE_DEFAULT_WINDOW_SIZE; | |||
63 | static HLIST_HEAD(rose_list); | 63 | static HLIST_HEAD(rose_list); |
64 | static DEFINE_SPINLOCK(rose_list_lock); | 64 | static DEFINE_SPINLOCK(rose_list_lock); |
65 | 65 | ||
66 | static struct proto_ops rose_proto_ops; | 66 | static const struct proto_ops rose_proto_ops; |
67 | 67 | ||
68 | ax25_address rose_callsign; | 68 | ax25_address rose_callsign; |
69 | 69 | ||
@@ -1515,7 +1515,7 @@ static struct net_proto_family rose_family_ops = { | |||
1515 | .owner = THIS_MODULE, | 1515 | .owner = THIS_MODULE, |
1516 | }; | 1516 | }; |
1517 | 1517 | ||
1518 | static struct proto_ops rose_proto_ops = { | 1518 | static const struct proto_ops rose_proto_ops = { |
1519 | .family = PF_ROSE, | 1519 | .family = PF_ROSE, |
1520 | .owner = THIS_MODULE, | 1520 | .owner = THIS_MODULE, |
1521 | .release = rose_release, | 1521 | .release = rose_release, |