mpls: rtm_mpls_policy[] can be static
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 4 Mar 2015 21:33:54 +0000 (05:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2015 21:39:45 +0000 (16:39 -0500)
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c

index 75a994a5038136b0afaeb008dab95aefa0bb320a..23e51d13b0ff34a25218ba2016667a86d59ed6ce 100644 (file)
@@ -216,7 +216,7 @@ static struct packet_type mpls_packet_type __read_mostly = {
        .func = mpls_forward,
 };
 
-const struct nla_policy rtm_mpls_policy[RTA_MAX+1] = {
+static const struct nla_policy rtm_mpls_policy[RTA_MAX+1] = {
        [RTA_DST]               = { .type = NLA_U32 },
        [RTA_OIF]               = { .type = NLA_U32 },
 };