Skip to contentSkip to conversation

static const struct proto_ops in af_rose.c

PATCH New Bernard Pidoux 1 participant 1 message Dec 14, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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,