bridge: make ifla_br_policy and br_af_ops static
authorCong Wang <amwang@redhat.com>
Wed, 13 Feb 2013 19:57:12 +0000 (19:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2013 18:27:45 +0000 (13:27 -0500)
They are only used within this file.

Cc: Vlad Yasevich <vyasevic@redhat.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c

index d1dda476d743e977f6a3af5de3e30178200a7a4c..27aa3ee517ce56101e28fd37602356f1f43843ff 100644 (file)
@@ -217,7 +217,7 @@ out:
        return err;
 }
 
-const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
+static const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
        [IFLA_BRIDGE_FLAGS]     = { .type = NLA_U16 },
        [IFLA_BRIDGE_MODE]      = { .type = NLA_U16 },
        [IFLA_BRIDGE_VLAN_INFO] = { .type = NLA_BINARY,
@@ -463,7 +463,7 @@ static size_t br_get_link_af_size(const struct net_device *dev)
        return pv->num_vlans * nla_total_size(sizeof(struct bridge_vlan_info));
 }
 
-struct rtnl_af_ops br_af_ops = {
+static struct rtnl_af_ops br_af_ops = {
        .family                 = AF_BRIDGE,
        .get_link_af_size       = br_get_link_af_size,
 };