sections, ipvs: Remove useless __read_mostly for ipvs genl_ops
authorAndi Kleen <ak@linux.intel.com>
Sat, 8 Feb 2014 07:57:01 +0000 (08:57 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 7 Mar 2014 03:36:21 +0000 (12:36 +0900)
const __read_mostly does not make any sense, because const
data is already read-only. Remove the __read_mostly
for the ipvs genl_ops. This avoids a LTO
section conflict compile problem.

Cc: Wensong Zhang <wensong@linux-vs.org>
Cc: Simon Horman <horms@verge.net.au>
Cc: Patrick McHardy <kaber@trash.net>
Cc: lvs-devel@vger.kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_ctl.c

index 35be035ee0cec79b5b797efb46c287661b8dbc93..2a68a38895530466cd0dcfbeb41b225e52850cd3 100644 (file)
@@ -3580,7 +3580,7 @@ out:
 }
 
 
-static const struct genl_ops ip_vs_genl_ops[] __read_mostly = {
+static const struct genl_ops ip_vs_genl_ops[] = {
        {
                .cmd    = IPVS_CMD_NEW_SERVICE,
                .flags  = GENL_ADMIN_PERM,