Return-Path: Date: Sat, 3 Oct 2009 04:00:06 +0400 From: Alexey Dobriyan To: Stephen Hemminger Cc: "David S. Miller" , Karsten Keil , Andreas Eversberg , Matthias Urlichs , Hannes Eder , Michal Ostrowski , Cyrill Gorcunov , Rusty Russell , James Chapman , Johannes Berg , Marcel Holtmann , "Gustavo F. Padovan" , Andrew Morton , Harvey Harrison , Arnaldo Carvalho de Melo , Mark Smith , Eric Dumazet , Alan Cox , David Woodhouse , Chas Williams , Joerg Reuter , Ralf Baechle , Bernard Pidoux F6BVP , James Morris , Dave Young , Jan Engelhardt , Oliver Hartkopp , Ingo Molnar , Johan Hedberg , Urs Thuermann , Christine Caulfield , Dmitry Eremin-Solenikov , Sergey Lapin , Alexey Kuznetsov , "Pekka Savola (ipv6)" , Hideaki YOSHIFUJI , Patrick McHardy , Herbert Xu , "Denis V. Lunev" , Vlad Yasevich , Samuel Ortiz , Ursula Braun , linux390@de.ibm.com, Hendrik Brueckner , Qinghuang Feng , Jiri Pirko , Pablo Neira Ayuso , remi.denis-courmont@nokia.com, Andy Grover , Huang Weiyi , David Howells , Dan Carpenter , Al Viro , Henner Eisen , netdev@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-hams@vger.kernel.org, linux-decnet-user@lists.sourceforge.net, linux-zigbee-devel@lists.sourceforge.net, linux-s390@vger.kernel.org, rds-devel@oss.oracle.com, linux-afs@lists.infradead.org, linux-x25@vger.kernel.org Subject: Re: [PATCH 1/1] net: mark net_proto_ops as const Message-ID: <20091003000006.GA2020@x200> References: <20091002232520.925496630@vyatta.com> <20091002232721.385245919@vyatta.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20091002232721.385245919@vyatta.com> List-ID: On Fri, Oct 02, 2009 at 04:25:21PM -0700, Stephen Hemminger wrote: > --- 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.