Commit 5708e868dc512f055f0ea4a14d01f8252c3ca8a1

Authored by Alexey Dobriyan
Committed by David S. Miller
1 parent 41135cc836

net: constify remaining proto_ops

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 5 changed files with 8 additions and 8 deletions Side-by-side Diff

drivers/net/pppol2tp.c
... ... @@ -229,7 +229,7 @@
229 229 static atomic_t pppol2tp_tunnel_count;
230 230 static atomic_t pppol2tp_session_count;
231 231 static struct ppp_channel_ops pppol2tp_chan_ops = { pppol2tp_xmit , NULL };
232   -static struct proto_ops pppol2tp_ops;
  232 +static const struct proto_ops pppol2tp_ops;
233 233  
234 234 /* per-net private data for this module */
235 235 static int pppol2tp_net_id;
... ... @@ -2574,7 +2574,7 @@
2574 2574 * Init and cleanup
2575 2575 *****************************************************************************/
2576 2576  
2577   -static struct proto_ops pppol2tp_ops = {
  2577 +static const struct proto_ops pppol2tp_ops = {
2578 2578 .family = AF_PPPOX,
2579 2579 .owner = THIS_MODULE,
2580 2580 .release = pppol2tp_release,
... ... @@ -1158,7 +1158,7 @@
1158 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 1162 .family = PF_INET6,
1163 1163 .owner = THIS_MODULE,
1164 1164 .release = inet6_release,
... ... @@ -34,7 +34,7 @@
34 34  
35 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 39 static struct proto iucv_proto = {
40 40 .name = "AF_IUCV",
... ... @@ -1682,7 +1682,7 @@
1682 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 1686 .family = PF_IUCV,
1687 1687 .owner = THIS_MODULE,
1688 1688 .release = iucv_sock_release,
... ... @@ -359,7 +359,7 @@
359 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 363 .family = AF_RDS,
364 364 .owner = THIS_MODULE,
365 365 .release = rds_release,
... ... @@ -63,7 +63,7 @@
63 63 static HLIST_HEAD(rose_list);
64 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 68 ax25_address rose_callsign;
69 69  
... ... @@ -1515,7 +1515,7 @@
1515 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 1519 .family = PF_ROSE,
1520 1520 .owner = THIS_MODULE,
1521 1521 .release = rose_release,