From nobody Tue Apr 19 17:45:45 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 A989C11D4815; Tue, 19 Apr 2022 17:45:46 +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 4KjWRt2zW4z3t8s; Tue, 19 Apr 2022 17:45:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650390346; 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=sIJTQVlkJcc3FCK6PoOa14D6zqOIEC7MZ12xMZ9yg/E=; b=v5ov3ml5qPhwiFgFLyaTAu8z6uRqlOB918IIhEU9ookyrNAddO8iy/czT8J7N+G6gp20+l oCMxRdVQ9ks1bPpoDqlADeoAh4cziAvCpMmHER7YOpes3URWdoKf+43rUpgtRY3gB4G1K6 qL2BinRTlAaiouYMDyz1eNl3JbyqYHFpmVrsXa8pNApl+ZPqVgYG2gs2rQmg3dJ/j4vg3A PVvUlwKohGeeBxSGsHLi8g+tyECtAybX4WX3zHf716yZLenSsxoHFt8G7skJ7SJc33nj2X /lJ/P/Osj4q1E5Vbyqao8Ml66hEvPtqJKhjOTS4vRnn1zMzNFTHSP+QWcWuevQ== 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 2F3992BB32; Tue, 19 Apr 2022 17:45:46 +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 23JHjjSV037932; Tue, 19 Apr 2022 17:45:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23JHjj0Q037931; Tue, 19 Apr 2022 17:45:45 GMT (envelope-from git) Date: Tue, 19 Apr 2022 17:45:45 GMT Message-Id: <202204191745.23JHjj0Q037931@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: e8d1145d10dc - main - cxgbe: 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: e8d1145d10dc7d79cda34dcafff3ed3b25654dbd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650390346; 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=sIJTQVlkJcc3FCK6PoOa14D6zqOIEC7MZ12xMZ9yg/E=; b=EunE4cPbNSbH849gksiKpLL3R4Rvt00Q5yy+4vTsVXMKXYdcOi/fQiUiZXNvdahGmJQ4/e 3iWcTRaBAg0cYLQsXUXSlG9YB+3epywSSbYxDhm49NgfcDqwax71Qw6gkXHTcvRWFxec0p 1pg4KvyTzpZs8gnyHoMoI3jT5w26/L13m7VmGYL7aqbsKnXEYNgRR88Zd/74I9oRAGY9J7 kS46UxBQS3q0gy9m4adRF5+ph/HzFHMaZROZstTSobNPvTzkvXovk10wncn2t+fOKYo5Sm kKO97Fc9nyso0bzHLGqw7RnMuqzuhi0ZsdK9ymp93t+uO1yMkINY4BzLAvK1Yg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650390346; a=rsa-sha256; cv=none; b=wV0gQbr6ax2I9bGvOXeyA6mI/c3IdYpYb7w9Idi3DBVzziRBqFicMQv9GszubEmukJOnJJ vGj+tqDiPCnvCXkzx6PNzIVnlcUWNzD6IDMJRmE33P/RiljDXemxlc7oOnkna3AQs4W26F 0ACK9lVoiuIdQypKVvgI6kk3QqKwoR2aNbxrXA4yz4qYaR+HghdlGZuiTykEW1AqOSfCTe pRQ5RKyVM222fK5z+rIgjQs/m6Q21phIJW42KPUYjLAuqgaBPuemPY/0ue9ogPeei7BnD8 ttiKDK54+PFiUfYoCRJDkfZdUYVNB2Wt8PG+qf27zZWbqfsjpPdtXuGiUhwzAA== 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=e8d1145d10dc7d79cda34dcafff3ed3b25654dbd commit e8d1145d10dc7d79cda34dcafff3ed3b25654dbd Author: John Baldwin AuthorDate: 2022-04-19 17:44:08 +0000 Commit: John Baldwin CommitDate: 2022-04-19 17:44:08 +0000 cxgbe: Remove unused devclass arguments to *DRIVER_MODULE(). Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34964 --- sys/dev/cxgbe/t4_iov.c | 8 +++----- sys/dev/cxgbe/t4_main.c | 22 +++++++++------------- sys/dev/cxgbe/t4_vf.c | 15 ++++++--------- 3 files changed, 18 insertions(+), 27 deletions(-) diff --git a/sys/dev/cxgbe/t4_iov.c b/sys/dev/cxgbe/t4_iov.c index f943c41ecfb4..d3796d300947 100644 --- a/sys/dev/cxgbe/t4_iov.c +++ b/sys/dev/cxgbe/t4_iov.c @@ -425,13 +425,11 @@ static driver_t t6iov_driver = { sizeof(struct t4iov_softc) }; -static devclass_t t4iov_devclass, t5iov_devclass, t6iov_devclass; - -DRIVER_MODULE(t4iov, pci, t4iov_driver, t4iov_devclass, 0, 0); +DRIVER_MODULE(t4iov, pci, t4iov_driver, 0, 0); MODULE_VERSION(t4iov, 1); -DRIVER_MODULE(t5iov, pci, t5iov_driver, t5iov_devclass, 0, 0); +DRIVER_MODULE(t5iov, pci, t5iov_driver, 0, 0); MODULE_VERSION(t5iov, 1); -DRIVER_MODULE(t6iov, pci, t6iov_driver, t6iov_devclass, 0, 0); +DRIVER_MODULE(t6iov, pci, t6iov_driver, 0, 0); MODULE_VERSION(t6iov, 1); diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index fa9576308ee5..94dd70f01132 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -13198,45 +13198,41 @@ done_unload: return (rc); } -static devclass_t t4_devclass, t5_devclass, t6_devclass; -static devclass_t cxgbe_devclass, cxl_devclass, cc_devclass; -static devclass_t vcxgbe_devclass, vcxl_devclass, vcc_devclass; - -DRIVER_MODULE(t4nex, pci, t4_driver, t4_devclass, mod_event, 0); +DRIVER_MODULE(t4nex, pci, t4_driver, mod_event, 0); MODULE_VERSION(t4nex, 1); MODULE_DEPEND(t4nex, firmware, 1, 1, 1); #ifdef DEV_NETMAP MODULE_DEPEND(t4nex, netmap, 1, 1, 1); #endif /* DEV_NETMAP */ -DRIVER_MODULE(t5nex, pci, t5_driver, t5_devclass, mod_event, 0); +DRIVER_MODULE(t5nex, pci, t5_driver, mod_event, 0); MODULE_VERSION(t5nex, 1); MODULE_DEPEND(t5nex, firmware, 1, 1, 1); #ifdef DEV_NETMAP MODULE_DEPEND(t5nex, netmap, 1, 1, 1); #endif /* DEV_NETMAP */ -DRIVER_MODULE(t6nex, pci, t6_driver, t6_devclass, mod_event, 0); +DRIVER_MODULE(t6nex, pci, t6_driver, mod_event, 0); MODULE_VERSION(t6nex, 1); MODULE_DEPEND(t6nex, firmware, 1, 1, 1); #ifdef DEV_NETMAP MODULE_DEPEND(t6nex, netmap, 1, 1, 1); #endif /* DEV_NETMAP */ -DRIVER_MODULE(cxgbe, t4nex, cxgbe_driver, cxgbe_devclass, 0, 0); +DRIVER_MODULE(cxgbe, t4nex, cxgbe_driver, 0, 0); MODULE_VERSION(cxgbe, 1); -DRIVER_MODULE(cxl, t5nex, cxl_driver, cxl_devclass, 0, 0); +DRIVER_MODULE(cxl, t5nex, cxl_driver, 0, 0); MODULE_VERSION(cxl, 1); -DRIVER_MODULE(cc, t6nex, cc_driver, cc_devclass, 0, 0); +DRIVER_MODULE(cc, t6nex, cc_driver, 0, 0); MODULE_VERSION(cc, 1); -DRIVER_MODULE(vcxgbe, cxgbe, vcxgbe_driver, vcxgbe_devclass, 0, 0); +DRIVER_MODULE(vcxgbe, cxgbe, vcxgbe_driver, 0, 0); MODULE_VERSION(vcxgbe, 1); -DRIVER_MODULE(vcxl, cxl, vcxl_driver, vcxl_devclass, 0, 0); +DRIVER_MODULE(vcxl, cxl, vcxl_driver, 0, 0); MODULE_VERSION(vcxl, 1); -DRIVER_MODULE(vcc, cc, vcc_driver, vcc_devclass, 0, 0); +DRIVER_MODULE(vcc, cc, vcc_driver, 0, 0); MODULE_VERSION(vcc, 1); diff --git a/sys/dev/cxgbe/t4_vf.c b/sys/dev/cxgbe/t4_vf.c index 95b984f3e3be..ffc1e7e45e32 100644 --- a/sys/dev/cxgbe/t4_vf.c +++ b/sys/dev/cxgbe/t4_vf.c @@ -975,26 +975,23 @@ static driver_t ccv_driver = { sizeof(struct port_info) }; -static devclass_t t4vf_devclass, t5vf_devclass, t6vf_devclass; -static devclass_t cxgbev_devclass, cxlv_devclass, ccv_devclass; - -DRIVER_MODULE(t4vf, pci, t4vf_driver, t4vf_devclass, 0, 0); +DRIVER_MODULE(t4vf, pci, t4vf_driver, 0, 0); MODULE_VERSION(t4vf, 1); MODULE_DEPEND(t4vf, t4nex, 1, 1, 1); -DRIVER_MODULE(t5vf, pci, t5vf_driver, t5vf_devclass, 0, 0); +DRIVER_MODULE(t5vf, pci, t5vf_driver, 0, 0); MODULE_VERSION(t5vf, 1); MODULE_DEPEND(t5vf, t5nex, 1, 1, 1); -DRIVER_MODULE(t6vf, pci, t6vf_driver, t6vf_devclass, 0, 0); +DRIVER_MODULE(t6vf, pci, t6vf_driver, 0, 0); MODULE_VERSION(t6vf, 1); MODULE_DEPEND(t6vf, t6nex, 1, 1, 1); -DRIVER_MODULE(cxgbev, t4vf, cxgbev_driver, cxgbev_devclass, 0, 0); +DRIVER_MODULE(cxgbev, t4vf, cxgbev_driver, 0, 0); MODULE_VERSION(cxgbev, 1); -DRIVER_MODULE(cxlv, t5vf, cxlv_driver, cxlv_devclass, 0, 0); +DRIVER_MODULE(cxlv, t5vf, cxlv_driver, 0, 0); MODULE_VERSION(cxlv, 1); -DRIVER_MODULE(ccv, t6vf, ccv_driver, ccv_devclass, 0, 0); +DRIVER_MODULE(ccv, t6vf, ccv_driver, 0, 0); MODULE_VERSION(ccv, 1);