netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [ROSE] static const struct proto_ops in af_rose.c
@ 2007-12-14 22:33 Bernard Pidoux
  0 siblings, 0 replies; only message in thread
From: Bernard Pidoux @ 2007-12-14 22:33 UTC (permalink / raw)
  To: David Miller; +Cc: Ralf Baechle DL5RB, Linux Netdev List

[-- Attachment #1: Type: text/plain, Size: 156 bytes --]

This patch corrects the declaration of struct proto_ops as static const 
like in struct socket <linux/net.h>

signed off by Bernard Pidoux, f6bvp@amsat.org

[-- Attachment #2: rose-2.6.24-rc5.patch4 --]
[-- Type: text/plain, Size: 571 bytes --]

--- linux-2.6.24-rc5/net/rose/af_rose.c	2007-12-11 04:48:43.000000000 +0100
+++ b/net/rose/af_rose.c	2007-12-14 14:32:06.000000000 +0100
@@ -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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-14 22:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-14 22:33 [PATCH] [ROSE] static const struct proto_ops in af_rose.c Bernard Pidoux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).