static const struct proto_ops in af_rose.c
Subsystems (2)
PATCH 1/1 static const struct proto_ops in af_rose.c
This patch corrects the declaration of struct proto_ops as static const like in struct socket <linux/net.h>
signed off by Bernard Pidoux, [email protected]
net/rose/af_rose.c +2 -2
@@ -63,7 +63,7 @@static HLIST_HEAD (rose_list);static DEFINE_SPINLOCK (rose_list_lock); -static struct proto_ops rose_proto_ops; +static const struct proto_ops rose_proto_ops;ax25_address rose_callsign;
@@ -1483,7 +1483,7 @@ .owner = THIS_MODULE, }; -static struct proto_ops rose_proto_ops = { +static const struct proto_ops rose_proto_ops = { .family =PF_ROSE , .owner =THIS_MODULE , .release = rose_release,