git: 2ca516d1a670 - stable/13 - bridge: Make the ioctl table local to if_bridge.c
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Feb 2023 22:39:31 UTC
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=2ca516d1a67025b1bda647d68cb863764f764305
commit 2ca516d1a67025b1bda647d68cb863764f764305
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-02-07 19:34:37 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-02-16 21:55:25 +0000
bridge: Make the ioctl table local to if_bridge.c
No functional change intended.
MFC after: 1 week
Sponsored by: Klara, Inc.
(cherry picked from commit 3bc099eb71200b843de94b8e84b30b152a38f2f4)
---
sys/net/if_bridge.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index e46c7fb92793..1d1e1cd20bc1 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -476,7 +476,7 @@ struct bridge_control {
#define BC_F_COPYOUT 0x02 /* copy arguments out */
#define BC_F_SUSER 0x04 /* do super-user check */
-const struct bridge_control bridge_control_table[] = {
+static const struct bridge_control bridge_control_table[] = {
{ bridge_ioctl_add, sizeof(struct ifbreq),
BC_F_COPYIN|BC_F_SUSER },
{ bridge_ioctl_del, sizeof(struct ifbreq),
@@ -561,7 +561,7 @@ const struct bridge_control bridge_control_table[] = {
BC_F_COPYIN|BC_F_SUSER },
};
-const int bridge_control_table_size = nitems(bridge_control_table);
+static const int bridge_control_table_size = nitems(bridge_control_table);
VNET_DEFINE_STATIC(LIST_HEAD(, bridge_softc), bridge_list);
#define V_bridge_list VNET(bridge_list)