Skip to content

Commit 5708e86

Browse files
Alexey Dobriyandavem330
authored andcommitted
net: constify remaining proto_ops
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 41135cc commit 5708e86

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎drivers/net/pppol2tp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ static void pppol2tp_tunnel_free(struct pppol2tp_tunnel *tunnel);
229229
static atomic_t pppol2tp_tunnel_count;
230230
static atomic_t pppol2tp_session_count;
231231
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;
233233

234234
/* per-net private data for this module */
235235
static int pppol2tp_net_id;
@@ -2574,7 +2574,7 @@ static const struct file_operations pppol2tp_proc_fops = {
25742574
* Init and cleanup
25752575
*****************************************************************************/
25762576

2577-
static struct proto_ops pppol2tp_ops = {
2577+
static const struct proto_ops pppol2tp_ops = {
25782578
.family = AF_PPPOX,
25792579
.owner = THIS_MODULE,
25802580
.release = pppol2tp_release,

‎net/dccp/ipv6.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ static const struct inet6_protocol dccp_v6_protocol = {
11581158
.flags = INET6_PROTO_NOPOLICY | INET6_PROTO_FINAL,
11591159
};
11601160

1161-
static struct proto_ops inet6_dccp_ops = {
1161+
static const struct proto_ops inet6_dccp_ops = {
11621162
.family = PF_INET6,
11631163
.owner = THIS_MODULE,
11641164
.release = inet6_release,

‎net/iucv/af_iucv.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
static char iucv_userid[80];
3636

37-
static struct proto_ops iucv_sock_ops;
37+
static const struct proto_ops iucv_sock_ops;
3838

3939
static struct proto iucv_proto = {
4040
.name = "AF_IUCV",
@@ -1682,7 +1682,7 @@ static void iucv_callback_shutdown(struct iucv_path *path, u8 ipuser[16])
16821682
bh_unlock_sock(sk);
16831683
}
16841684

1685-
static struct proto_ops iucv_sock_ops = {
1685+
static const struct proto_ops iucv_sock_ops = {
16861686
.family = PF_IUCV,
16871687
.owner = THIS_MODULE,
16881688
.release = iucv_sock_release,

‎net/rds/af_rds.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ static struct proto rds_proto = {
359359
.obj_size = sizeof(struct rds_sock),
360360
};
361361

362-
static struct proto_ops rds_proto_ops = {
362+
static const struct proto_ops rds_proto_ops = {
363363
.family = AF_RDS,
364364
.owner = THIS_MODULE,
365365
.release = rds_release,

‎net/rose/af_rose.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int sysctl_rose_window_size = ROSE_DEFAULT_WINDOW_SIZE;
6363
static HLIST_HEAD(rose_list);
6464
static DEFINE_SPINLOCK(rose_list_lock);
6565

66-
static struct proto_ops rose_proto_ops;
66+
static const struct proto_ops rose_proto_ops;
6767

6868
ax25_address rose_callsign;
6969

@@ -1515,7 +1515,7 @@ static struct net_proto_family rose_family_ops = {
15151515
.owner = THIS_MODULE,
15161516
};
15171517

1518-
static struct proto_ops rose_proto_ops = {
1518+
static const struct proto_ops rose_proto_ops = {
15191519
.family = PF_ROSE,
15201520
.owner = THIS_MODULE,
15211521
.release = rose_release,

0 commit comments

Comments
 (0)