Skip to content

Commit

Permalink
bridge: make ifla_br_policy and br_af_ops static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cong Wang authored and David S. Miller committed Feb 14, 2013
1 parent 4160815 commit 15004ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/bridge/br_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ int br_getlink(struct sk_buff *skb, u32 pid, u32 seq,
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,
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit 15004ca

Please sign in to comment.