fou: Don't use const __read_mostly
authorAndi Kleen <ak@linux.intel.com>
Wed, 8 Apr 2015 13:04:31 +0000 (06:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Apr 2015 19:29:08 +0000 (15:29 -0400)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fou.c

index ff069f6597ace6302b46add285c787942645aac2..335e75207284e13eab64b748188d82764818b46d 100644 (file)
@@ -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,
 };
This page took 0.025544 seconds and 5 git commands to generate.