From nobody Mon May 9 21:48:06 2022 X-Original-To: dev-commits-src-main@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 C94311ACA9D2; Mon, 9 May 2022 21:48:07 +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 4KxvtH3YzBz3Gvd; Mon, 9 May 2022 21:48:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652132887; 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=6YrW+zVPj+kkF8eP4lg1jPV4NGeu0zAo7Bh/CXo/Hnw=; b=ekqWjzkn7M405goBKxACtlMe/rimLnvkLbjeKl7MBcF+Tv3TLvPyVv5a90Bp8an/OSKMKQ 5iopKMReFKmQeWrm8dzFaZhBJYYQ3112wvep2X73DFb3OOh0FeETheTOXp2TWH44Eje2iV N/i/g7g3K1tSU+xHfPPbr2itGlF+qmcuUwEQE4fMGpt3zki+dkpHeBmj86m6wURyZ/Khyf 4+8EaB0+g4rF7ZUxmjyQ4+yoCjY4FcRaA0epGESk15zjbZ37CjCTeTeIAwhokD2Gf/q9JL soXeP5LV60XxsgIfrXHfQN4AQc52j6AGha6stgB3LO+Tr406kacxHsRCJ5OxIw== 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 111D018EA6; Mon, 9 May 2022 21:48:07 +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 249Lm6m8080578; Mon, 9 May 2022 21:48:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 249Lm628080577; Mon, 9 May 2022 21:48:06 GMT (envelope-from git) Date: Mon, 9 May 2022 21:48:06 GMT Message-Id: <202205092148.249Lm628080577@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 94412ad7d94f - main - vnic: Remove unused devclass arguments to DRIVER_MODULE. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 94412ad7d94f94c4850fa1370e456dc8c735e7c6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652132887; 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=6YrW+zVPj+kkF8eP4lg1jPV4NGeu0zAo7Bh/CXo/Hnw=; b=kPfK6C6PdJW2/8Fw3qjIn79tyaB15rJSLAfTKUtNrfl4SXvqK+4P/8jgHQnObKmsS9Bg4a /wDp55M0bPKsVLCUs9yu8S3j/GcylLo11A5DF5AzRRtWzbs0eSkwFobh+5j53884/e1/SC GseCwRTsxShN+3eXZ3OR8/2p5hu9xcFAZ+O7IoPeyj6kZqA67GNUrOGrodI5U//FgCKcHo TYauG9eKB9s8IeccG7mehxfsrFqw/yFtEZSClH52Bvt+vluP3RnuEVx/hXbXTIai5AZa5y pstjdnwSvsjKq/0eORzdSEZncaKDDv3IbPBtck7Pu4PUbVn5xC4QDTgkoahRkw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652132887; a=rsa-sha256; cv=none; b=EnQrarlisV+7U0sukVCbRnaaRnaFQDxpNUfAeGYjGWwa/htYE0RANIpAmGh5gW8ZDHpyuP bGUW5gLHkjWYSCw+DglHcQ0JA8Ubi7PHEeKuZhYeCIDJJ+kakM7Vhss5NqsnAGYoYYpw64 CulO2QG/cKgoAMmgbZCYwuB8QWvWrEf+Apg2Usl8KhD8NHLM1FrAoIPU/BRJkSR6yKyFbh D6yygQ9ODMWF0dHY2dcS6fz93FR8eEPg8AgJp9vjsq/Wdm+fxfoo3LXOoawfzJQ6iwpC8O cPDWnX8hk0jgHqhT2tYPjZ9mbqKZdNQEBbA0Lw6yHZ9eUoXMbvQsM7dc0XzI4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=94412ad7d94f94c4850fa1370e456dc8c735e7c6 commit 94412ad7d94f94c4850fa1370e456dc8c735e7c6 Author: John Baldwin AuthorDate: 2022-05-09 21:26:46 +0000 Commit: John Baldwin CommitDate: 2022-05-09 21:26:46 +0000 vnic: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/vnic/mrml_bridge.c | 4 +--- sys/dev/vnic/nic_main.c | 4 +--- sys/dev/vnic/nicvf_main.c | 4 +--- sys/dev/vnic/thunder_bgx.c | 4 +--- sys/dev/vnic/thunder_mdio_fdt.c | 16 ++++++---------- 5 files changed, 10 insertions(+), 22 deletions(-) diff --git a/sys/dev/vnic/mrml_bridge.c b/sys/dev/vnic/mrml_bridge.c index 7f4dc128ca11..d3b9851b5067 100644 --- a/sys/dev/vnic/mrml_bridge.c +++ b/sys/dev/vnic/mrml_bridge.c @@ -81,9 +81,7 @@ static device_method_t mrmlbus_fdt_methods[] = { DEFINE_CLASS_0(mrmlbus, mrmlbus_fdt_driver, mrmlbus_fdt_methods, sizeof(struct simplebus_softc)); -static devclass_t mrmlbus_fdt_devclass; - -EARLY_DRIVER_MODULE(mrmlbus, pcib, mrmlbus_fdt_driver, mrmlbus_fdt_devclass, 0, 0, +EARLY_DRIVER_MODULE(mrmlbus, pcib, mrmlbus_fdt_driver, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); MODULE_VERSION(mrmlbus, 1); diff --git a/sys/dev/vnic/nic_main.c b/sys/dev/vnic/nic_main.c index 08559442dbc7..575fa86ffac6 100644 --- a/sys/dev/vnic/nic_main.c +++ b/sys/dev/vnic/nic_main.c @@ -155,9 +155,7 @@ static driver_t vnicpf_driver = { sizeof(struct nicpf), }; -static devclass_t vnicpf_devclass; - -DRIVER_MODULE(vnicpf, pci, vnicpf_driver, vnicpf_devclass, 0, 0); +DRIVER_MODULE(vnicpf, pci, vnicpf_driver, 0, 0); MODULE_VERSION(vnicpf, 1); MODULE_DEPEND(vnicpf, pci, 1, 1, 1); MODULE_DEPEND(vnicpf, ether, 1, 1, 1); diff --git a/sys/dev/vnic/nicvf_main.c b/sys/dev/vnic/nicvf_main.c index 0794c7d53113..54efc58fee22 100644 --- a/sys/dev/vnic/nicvf_main.c +++ b/sys/dev/vnic/nicvf_main.c @@ -127,9 +127,7 @@ static driver_t nicvf_driver = { sizeof(struct nicvf), }; -static devclass_t nicvf_devclass; - -DRIVER_MODULE(vnicvf, pci, nicvf_driver, nicvf_devclass, 0, 0); +DRIVER_MODULE(vnicvf, pci, nicvf_driver, 0, 0); MODULE_VERSION(vnicvf, 1); MODULE_DEPEND(vnicvf, pci, 1, 1, 1); MODULE_DEPEND(vnicvf, ether, 1, 1, 1); diff --git a/sys/dev/vnic/thunder_bgx.c b/sys/dev/vnic/thunder_bgx.c index b2479d2dcd42..ba4cbc8c9a2b 100644 --- a/sys/dev/vnic/thunder_bgx.c +++ b/sys/dev/vnic/thunder_bgx.c @@ -106,9 +106,7 @@ static driver_t thunder_bgx_driver = { sizeof(struct lmac), }; -static devclass_t thunder_bgx_devclass; - -DRIVER_MODULE(thunder_bgx, pci, thunder_bgx_driver, thunder_bgx_devclass, 0, 0); +DRIVER_MODULE(thunder_bgx, pci, thunder_bgx_driver, 0, 0); MODULE_VERSION(thunder_bgx, 1); MODULE_DEPEND(thunder_bgx, pci, 1, 1, 1); MODULE_DEPEND(thunder_bgx, ether, 1, 1, 1); diff --git a/sys/dev/vnic/thunder_mdio_fdt.c b/sys/dev/vnic/thunder_mdio_fdt.c index 4012950255ee..fd3905453008 100644 --- a/sys/dev/vnic/thunder_mdio_fdt.c +++ b/sys/dev/vnic/thunder_mdio_fdt.c @@ -59,12 +59,10 @@ static device_method_t thunder_mdio_fdt_methods[] = { DEFINE_CLASS_1(thunder_mdio, thunder_mdio_fdt_driver, thunder_mdio_fdt_methods, sizeof(struct thunder_mdio_softc), thunder_mdio_driver); -static devclass_t thunder_mdio_fdt_devclass; - -EARLY_DRIVER_MODULE(thunder_mdio, ofwbus, thunder_mdio_fdt_driver, - thunder_mdio_fdt_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); -EARLY_DRIVER_MODULE(thunder_mdio, mdionexus, thunder_mdio_fdt_driver, - thunder_mdio_fdt_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); +EARLY_DRIVER_MODULE(thunder_mdio, ofwbus, thunder_mdio_fdt_driver, 0, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); +EARLY_DRIVER_MODULE(thunder_mdio, mdionexus, thunder_mdio_fdt_driver, 0, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); static struct ofw_compat_data mdio_compat_data[] = { {"cavium,octeon-3860-mdio", true}, @@ -140,10 +138,8 @@ static device_method_t mdionexus_fdt_methods[] = { DEFINE_CLASS_0(mdionexus, mdionexus_fdt_driver, mdionexus_fdt_methods, sizeof(struct mdionexus_softc)); -static devclass_t mdionexus_fdt_devclass; - -EARLY_DRIVER_MODULE(mdionexus, mrmlbus, mdionexus_fdt_driver, - mdionexus_fdt_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); +EARLY_DRIVER_MODULE(mdionexus, mrmlbus, mdionexus_fdt_driver, 0, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); static int mdionexus_ofw_fill_ranges(phandle_t, struct simplebus_softc *); static int mdionexus_ofw_bus_attach(device_t);