Thread (2 messages) 2 messages, 2 authors, 2009-10-03

Re: [PATCH 1/1] net: mark net_proto_ops as const

From: Alexey Dobriyan <hidden>
Date: 2009-10-03 00:00:06
Also in: linux-hams, netdev

On Fri, Oct 02, 2009 at 04:25:21PM -0700, Stephen Hemminger wrote:
quoted hunk ↗ jump to hunk
--- a/net/can/af_can.c
+++ b/net/can/af_can.c
@@ -842,7 +842,7 @@ static struct packet_type can_packet __r
 	.func = can_rcv,
 };
 
-static struct net_proto_family can_family_ops __read_mostly = {
+static const struct net_proto_family can_family_ops __read_mostly = {
						       ^^^^^^^^^^^^^
 	.family = PF_CAN,
 	.create = can_create,
 	.owner  = THIS_MODULE,
ACK, except this chunk: const already means read-only.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help