Commit 15004cab947314ac0f2fd47169de95ce48bafb15

Authored by Cong Wang
Committed by David S. Miller
1 parent 4160815ffc

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

net/bridge/br_netlink.c
... ... @@ -217,7 +217,7 @@
217 217 return err;
218 218 }
219 219  
220   -const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
  220 +static const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
221 221 [IFLA_BRIDGE_FLAGS] = { .type = NLA_U16 },
222 222 [IFLA_BRIDGE_MODE] = { .type = NLA_U16 },
223 223 [IFLA_BRIDGE_VLAN_INFO] = { .type = NLA_BINARY,
... ... @@ -463,7 +463,7 @@
463 463 return pv->num_vlans * nla_total_size(sizeof(struct bridge_vlan_info));
464 464 }
465 465  
466   -struct rtnl_af_ops br_af_ops = {
  466 +static struct rtnl_af_ops br_af_ops = {
467 467 .family = AF_BRIDGE,
468 468 .get_link_af_size = br_get_link_af_size,
469 469 };