From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: [PATCH] sections, ipvs: Remove useless __read_mostly for ipvs genl_ops Date: Sat, 8 Feb 2014 08:57:01 +0100 Message-ID: <1391846221-30240-1-git-send-email-ak@linux.intel.com> Cc: linux-kernel@vger.kernel.org, Andi Kleen , Wensong Zhang , Simon Horman , Patrick McHardy , lvs-devel@vger.kernel.org To: netdev@vger.kernel.org Return-path: Sender: lvs-devel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org 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 Cc: Simon Horman Cc: Patrick McHardy Cc: lvs-devel@vger.kernel.org Signed-off-by: Andi Kleen --- net/netfilter/ipvs/ip_vs_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 35be035..2a68a38 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c @@ -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, -- 1.8.5.2