]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bridge: make print_vlan_info static
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Jun 2023 17:10:31 +0000 (10:10 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Jun 2023 16:33:34 +0000 (09:33 -0700)
Function defined and used in only one file.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
bridge/br_common.h
bridge/vlan.c

index 1bdee65844c1a24361a3a3c63d2c745a65f55fe0..704e76b0acb2bb81b85e6333a5f8c5ab27abc809 100644 (file)
@@ -6,7 +6,6 @@
 #define MDB_RTR_RTA(r) \
                ((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(__u32))))
 
-void print_vlan_info(struct rtattr *tb, int ifindex);
 int print_linkinfo(struct nlmsghdr *n, void *arg);
 int print_mdb_mon(struct nlmsghdr *n, void *arg);
 int print_fdb(struct nlmsghdr *n, void *arg);
index 5b304ea94224f2d657b9cc0e55175b73d6a2e9f8..dfc62f83a5df255146a59e949297d09aa416a41e 100644 (file)
@@ -18,6 +18,7 @@
 
 static unsigned int filter_index, filter_vlan;
 static int vlan_rtm_cur_ifidx = -1;
+static void print_vlan_info(struct rtattr *tb, int ifindex);
 
 enum vlan_show_subject {
        VLAN_SHOW_VLAN,
@@ -1309,7 +1310,7 @@ static int vlan_global_show(int argc, char **argv)
        return 0;
 }
 
-void print_vlan_info(struct rtattr *tb, int ifindex)
+static void print_vlan_info(struct rtattr *tb, int ifindex)
 {
        struct rtattr *i, *list = tb;
        int rem = RTA_PAYLOAD(list);