From nobody Tue Feb 21 16:42:19 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 4PLlSW565kz3ss4t; Tue, 21 Feb 2023 16:42:19 +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 4PLlSW4SC1z3Nlm; Tue, 21 Feb 2023 16:42:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676997739; 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=N2EEJrKedUcP+V8R3ol5hbNo1i9cfyfIjGK6Iur6b2o=; b=Uiog+67UAqzozgqvEesXiDjZ+RxOie85OMD3qEWAZ6M7oFZfX/X82V7ojeNt/lO8IN2GfZ lCTCg8i98Vw8YNUz+e2HzdPgswB9uf6b7tYOhNFv2Mrepr8mTQCnehX7k5Sxjdp/eP31uE Sw+CEgzMIPw7/ooPjxjTWRBS+Vytvhfg/G6v6rKgrkfkbK3kXHx5I3mRMkDDazkTXZMDuY WBLaktnClJ+Cgy5U9Rc9GLqm9BbGhfz+RAJPonJEQmjnheoIZPiqlmLESbOgIKltdt22r3 sAHA+WwjH9VvDW3Ko7mFAMbgk0CDoxVXULkZT0YskhtbMDCto6hMi0tLTXspyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676997739; 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=N2EEJrKedUcP+V8R3ol5hbNo1i9cfyfIjGK6Iur6b2o=; b=QaT8tYeOufPs4vpvEwYzFNTZJfS9hHPjsFw7xxrXZtsgcKMGlzVW0YH5g+UE8BZTvlwSMw g/lEvRT04sNYq0DBu37uP+Hwz74b4JySmHoSaGugJ+dKDn2ko+E8Bvc8Dc4E5JAyhlK9gy Z0E4aUqCCE8pduSi1cJNQ+8YlcaqypFl/88j26I1SsNN361Lwz8q1yUtZBwKwOD/2Lflcd coeNGGtt/8ECMHT2v0LmP2UZID66DFqUXTSRK3THH8p4I/cUIt/+QMkx1spIi+S578kVfH wGJGOHyzhkDDDwoLQJiKQNKMpFL5kAcNVOyU70sZS8VQhpg1lBjMrsQLZ1sYrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676997739; a=rsa-sha256; cv=none; b=wxy1VJigQqJR95OXu5doZs/ap7SV5FnAKALY1fvmqJJuP6YRx52Kdw6ScRzP9+rPCGZGuK 6jseClBS1keg3hzMPVDeOftVH/p3Kmt7EXfngJV2WBRLtH9mQHbJfU/ccOc+O4gaMzoCdL 8kLN7Tf2A8rrEyIo+omjvEMmljhhpAnLrgHwUemezU7CA0KZ6Zy0CDGF+g25sTc+enO08/ yrXko2HdQ32oZ/hpmI6uXDiWTnYT/9r8ydzZvpRu+/ZhIPrDKaNRlyiAAYjU2Y4EH40rlY LikPAm8BOmgqfVZmeUifMLZN44yBsucFb1HPzwuj1nPI0EIAKYPsOFD1bw+YAg== 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 4PLlSW3X73zSGN; Tue, 21 Feb 2023 16:42:19 +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 31LGgJP3050646; Tue, 21 Feb 2023 16:42:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31LGgJXJ050645; Tue, 21 Feb 2023 16:42:19 GMT (envelope-from git) Date: Tue, 21 Feb 2023 16:42:19 GMT Message-Id: <202302211642.31LGgJXJ050645@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: fb9b76e05247 - main - vnet: Make vnet_sys[un]init() static 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fb9b76e05247e014f5faa554161028f6aa409bfd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=fb9b76e05247e014f5faa554161028f6aa409bfd commit fb9b76e05247e014f5faa554161028f6aa409bfd Author: Zhenlei Huang AuthorDate: 2023-02-21 16:22:23 +0000 Commit: Zhenlei Huang CommitDate: 2023-02-21 16:22:23 +0000 vnet: Make vnet_sys[un]init() static These two functions are intended to be used only when allocating or destroying vnet instances. No functional change intended. Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37955 --- sys/net/vnet.c | 10 ++++++++-- sys/net/vnet.h | 6 ------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/net/vnet.c b/sys/net/vnet.c index 4f242b07f169..b064e8e864ff 100644 --- a/sys/net/vnet.c +++ b/sys/net/vnet.c @@ -220,6 +220,12 @@ SDT_PROBE_DEFINE2(vnet, functions, vnet_destroy, entry, SDT_PROBE_DEFINE1(vnet, functions, vnet_destroy, return, "int"); +/* + * Run per-vnet sysinits or sysuninits during vnet creation/destruction. + */ +static void vnet_sysinit(void); +static void vnet_sysuninit(void); + #ifdef DDB static void db_show_vnet_print_vs(struct vnet_sysinit *, int); #endif @@ -571,7 +577,7 @@ vnet_deregister_sysuninit(void *arg) * vnet construction. The caller is responsible for ensuring the new vnet is * the current vnet and that the vnet_sysinit_sxlock lock is locked. */ -void +static void vnet_sysinit(void) { struct vnet_sysinit *vs; @@ -589,7 +595,7 @@ vnet_sysinit(void) * vnet destruction. The caller is responsible for ensuring the dying vnet * the current vnet and that the vnet_sysinit_sxlock lock is locked. */ -void +static void vnet_sysuninit(void) { struct vnet_sysinit *vs; diff --git a/sys/net/vnet.h b/sys/net/vnet.h index d0ede39c0cb1..a02b86077043 100644 --- a/sys/net/vnet.h +++ b/sys/net/vnet.h @@ -360,12 +360,6 @@ struct vnet_sysinit { SYSUNINIT(vnet_uninit_ ## ident, subsystem, order, \ vnet_deregister_sysuninit, &ident ## _vnet_uninit) -/* - * Run per-vnet sysinits or sysuninits during vnet creation/destruction. - */ -void vnet_sysinit(void); -void vnet_sysuninit(void); - /* * Interfaces for managing per-vnet constructors and destructors. */