diff options
author | Cong Wang <amwang@redhat.com> | 2013-02-13 19:57:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-14 13:27:45 -0500 |
commit | 15004cab947314ac0f2fd47169de95ce48bafb15 (patch) | |
tree | 26ede9174892a1a89468c1d7c839c6dd19c07a8e /net/bridge | |
parent | 4160815ffcaed68a976ba3cfe0131da3ae2b2615 (diff) | |
download | linux-next-15004cab947314ac0f2fd47169de95ce48bafb15.tar.gz |
bridge: make ifla_br_policy and br_af_ops static
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>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index d1dda476d743..27aa3ee517ce 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -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, }; |