diff mbox

fou: Don't use const __read_mostly

Message ID 1428498271-6345-1-git-send-email-andi@firstfloor.org
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Andi Kleen April 8, 2015, 1:04 p.m. UTC
From: Andi Kleen <ak@linux.intel.com>

const __read_mostly is a senseless combination. If something
is already const it cannot be __read_mostly. Remove the bogus
__read_mostly in the fou driver.

This fixes section conflicts with LTO.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 net/ipv4/fou.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

David Miller April 8, 2015, 7:29 p.m. UTC | #1
From: Andi Kleen <andi@firstfloor.org>
Date: Wed,  8 Apr 2015 06:04:31 -0700

> From: Andi Kleen <ak@linux.intel.com>
> 
> const __read_mostly is a senseless combination. If something
> is already const it cannot be __read_mostly. Remove the bogus
> __read_mostly in the fou driver.
> 
> This fixes section conflicts with LTO.
> 
> Signed-off-by: Andi Kleen <ak@linux.intel.com>

Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/ipv4/fou.c b/net/ipv4/fou.c
index ff069f6..335e752 100644
--- a/net/ipv4/fou.c
+++ b/net/ipv4/fou.c
@@ -771,12 +771,12 @@  EXPORT_SYMBOL(gue_build_header);
 
 #ifdef CONFIG_NET_FOU_IP_TUNNELS
 
-static const struct ip_tunnel_encap_ops __read_mostly fou_iptun_ops = {
+static const struct ip_tunnel_encap_ops fou_iptun_ops = {
 	.encap_hlen = fou_encap_hlen,
 	.build_header = fou_build_header,
 };
 
-static const struct ip_tunnel_encap_ops __read_mostly gue_iptun_ops = {
+static const struct ip_tunnel_encap_ops gue_iptun_ops = {
 	.encap_hlen = gue_encap_hlen,
 	.build_header = gue_build_header,
 };