From nobody Tue Feb 07 20:11:46 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PBDmg5RgXz3nfQJ; Tue, 7 Feb 2023 20:11:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PBDmg11FZz3Cp4; Tue, 7 Feb 2023 20:11:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675800707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oKFUluUkSYlsML9llB2OB8gn/grKvI+FHNrBliocCA4=; b=nXURlanheTZFLJewMoCk32R+UO0YVmpf0XkBk3dTd3f/L7HEsqwfoBWfRJ5P+q/9jPc26r NpIfRuZE58JAEBmyPOCpmNxv0CkgPL3vX6iYuoDrHcvlqrySiVwEIlsuLLTCdKtlNzG6jz pCQ+HvODrhs3qAE6pkC0QqGcl/IM9B9Tj+BSjPwCYXE6BOinZOm1Q6UMq3DAzYg0FCgBTr c74rYy59tQg/ofBjfKUiU0pKGGGC0N2Q47nUFCC58qok69ItQe205CkI509Lseoyehdv1i UYifaFOOwcTlrYaFHNH8BxKVytGoZ3MbbnuF0TwJaC+4e1+6qRAZb9+cMStnJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675800707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oKFUluUkSYlsML9llB2OB8gn/grKvI+FHNrBliocCA4=; b=reNqqKXEzOMCfZDTTxHq+kIwC8eSD3kFwJzdzuMYbIPFiz3wtA6L/Y5ro+PynWuCFU8BDA JVeqTWPUqj7ZuVtABQucGpT/YaOMbuTi/TlNDwqO7iuHDJQqu+ScYjsT2r26MkwT8pvBID AbJmRvbUgt+8Pr4BPnME62/LVT40UqkSXpSWnlunyXckK5MC/E3BpbJlZvLRdifbnid8qo wiJ2eVWjbB+hvY4/oyi5SZoSOwwIcvdeYilIcBblch6sLpuKy4dTtdQCGK7Oy0vE8CERBd 45ZhvfOtYyER7sj9OFVnAXX/iY58AnqTdzXyA+0jYRJ6X/5ILeRYbYeh6vQOwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675800707; a=rsa-sha256; cv=none; b=dnhRWqZPblYDVBqO2L12xDJoFKCOYNR8KJQ/3l0VbVJVw1+KL6yUfqp/jKxNMLgbtkdJIT dRJQ2fpfHvMc4f3RvxvHGdHM3Q/NiI5H+7NkzEqGAL/gG6Wcb2nIYmBcu3TmDDo5ELASqW tYXmQXA+udsZg/BSgy9F6zXaXkdBT/9omr3uROBX7V1TVO+aSsqpU44W3n5SSTOe1F4MFX x1FRlgtZiaoi/2ogrSgaHHONWzFzu2foJnqadtvMSn+aK+AZqs0OxJMlVrjupZGWg2QsRY vOGUVEmFcFzVxpbZuDFhcJXzMAN/PS9ILYlxuAktbGdjiChwu/KUQnX9BKNZPQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PBDmg0606zVTk; Tue, 7 Feb 2023 20:11:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 317KBk2O036211; Tue, 7 Feb 2023 20:11:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 317KBkfF036210; Tue, 7 Feb 2023 20:11:46 GMT (envelope-from git) Date: Tue, 7 Feb 2023 20:11:46 GMT Message-Id: <202302072011.317KBkfF036210@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 3bc099eb7120 - main - bridge: Make the ioctl table local to if_bridge.c List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3bc099eb71200b843de94b8e84b30b152a38f2f4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=3bc099eb71200b843de94b8e84b30b152a38f2f4 commit 3bc099eb71200b843de94b8e84b30b152a38f2f4 Author: Mark Johnston AuthorDate: 2023-02-07 19:34:37 +0000 Commit: Mark Johnston CommitDate: 2023-02-07 20:10:24 +0000 bridge: Make the ioctl table local to if_bridge.c No functional change intended. MFC after: 1 week Sponsored by: Klara, Inc. --- 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 67d031a65052..5a4954e84869 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -478,7 +478,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), @@ -563,7 +563,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)