From nobody Fri May 06 23:25:18 2022 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 9D0711AD1344; Fri, 6 May 2022 23:25:18 +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 4Kw69p2Yc0z3FTS; Fri, 6 May 2022 23:25:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879518; 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=iPY3AUPwPoQMlq7xZw+r/UuHrxUVCdf6WFzK7Wwxx+s=; b=V6ExIV3m5R3ntiVTms4nyaVTSCnVHli32G0p+WLg+Y9XhWux1VatNQMnMVtlD6ud1YmH36 IXk8Dc4XZ7M9AKPR6zMxohXW99vVk4Iil6MsAmwZT7mVJOCLqC6MyuvRqZeaPeUuqyoF2D J39balNohMtsBhIik0yFSE9JpeHWvfiGUJKMuJ7mfsT8xRN0zB08SVYE+Zv5po2ow2Pgmo Y172+P6a3WgrQkfWVViNWKtqXZh6SpFUnGU3r7M4vwP9uJ6MW92OZ1AagUjJdjo+FJRtMB eBPPWm1KL/wg+ipjOwuLr8gtGpELA1qmY+RZNBYvq998UMqzS/DPBRVAFFkQlQ== 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 31A50253AA; Fri, 6 May 2022 23:25:18 +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 246NPI9b075695; Fri, 6 May 2022 23:25:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 246NPILt075694; Fri, 6 May 2022 23:25:18 GMT (envelope-from git) Date: Fri, 6 May 2022 23:25:18 GMT Message-Id: <202205062325.246NPILt075694@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: a65d07743772 - main - linuxkpi: Remove unused devclass arguments to DRIVER_MODULE. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a65d077437721068a99baccea82fb1e79c84f230 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879518; 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=iPY3AUPwPoQMlq7xZw+r/UuHrxUVCdf6WFzK7Wwxx+s=; b=rNrfo3/Fs5iNJsxMVcLaeETvxBmH/uaktIAr4EA4YaRLCCUbuzGGRdsBX5QNzTfwe26E6g zYBqc6/f4FpEZ677cuyTax0OHouNc4WwjdqGmBm7akG2PNPB7DUJdRSV3dPp6HJQ96DyPh ud3WWqHyHwZGACRlyJU7El8K30f0EjHvkrT7oQfHE+ZCDQTJysRCMOWu6rwttNC3oGOIrR 8uZPCdAYksSnkmH0f8CfWsHodgmjT/p03CNPVojlsvtNcIHbhpk0w2tnDoJdYa3IUdwy4n Z7MJsqu4QP1Ezjrc1ZbfmrzJx3ZwmhWLcXJHOMgc8kWcQ8+1bIj9vmVQfYaLuQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651879518; a=rsa-sha256; cv=none; b=DxgSPi7Ul1WqR60Y5E/VXhkG92RdApyY7IEhk4LnuH1vF6h8YkttAZymaIX+Qk/NiJaNJT mXJDQB7dRhk18Vc6wT88Y5sTW4WNu+2pAeCOMs5urivePudIBU21rn2XdlZ5i4Z+aWdNeD UhxhQP8aqWE0eC8B4j4q9Czt7iIb+hJ+XT7BR/KmZhbduko1K9hW1K/ICu3xCaBWSlisYH Ofw6uGjzVQo+P13Mv8ESKROv8zhNy4wFv5PQhyJPCBPoTNHeyVkuO8DV+vU32y1Brr9ZY8 WzOK34et4o1LydS7twtlQFOpUmjQJb0ByQqwpJeSQCrrRS7UR0FqsI22xZc3qQ== 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=a65d077437721068a99baccea82fb1e79c84f230 commit a65d077437721068a99baccea82fb1e79c84f230 Author: John Baldwin AuthorDate: 2022-05-06 22:46:58 +0000 Commit: John Baldwin CommitDate: 2022-05-06 22:46:58 +0000 linuxkpi: Remove unused devclass arguments to DRIVER_MODULE. --- sys/compat/linuxkpi/common/include/linux/pci.h | 4 +--- sys/compat/linuxkpi/common/src/linux_i2c.c | 4 +--- sys/compat/linuxkpi/common/src/linux_i2cbb.c | 4 +--- sys/compat/linuxkpi/common/src/linux_usb.c | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index e130cf54680e..35a0f70669fb 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -83,10 +83,8 @@ static driver_t _ ## _bus ## _ ## _table ## _driver = { \ 0 \ }; \ \ -static devclass_t _ ## _bus ## _ ## _table ## _devclass; \ - \ DRIVER_MODULE(lkpi_ ## _table, pci, _ ## _bus ## _ ## _table ## _driver,\ - _ ## _bus ## _ ## _table ## _devclass, 0, 0); \ + 0, 0); \ \ MODULE_PNP_INFO("U32:vendor;U32:device;V32:subvendor;V32:subdevice", \ _bus, lkpi_ ## _table, _table, nitems(_table) - 1) diff --git a/sys/compat/linuxkpi/common/src/linux_i2c.c b/sys/compat/linuxkpi/common/src/linux_i2c.c index 41edb118af5e..3d4c0b0b0576 100644 --- a/sys/compat/linuxkpi/common/src/linux_i2c.c +++ b/sys/compat/linuxkpi/common/src/linux_i2c.c @@ -117,15 +117,13 @@ static device_method_t lkpi_iic_methods[] = { DEVMETHOD_END }; -devclass_t lkpi_iic_devclass; - driver_t lkpi_iic_driver = { "lkpi_iic", lkpi_iic_methods, sizeof(struct lkpi_iic_softc), }; -DRIVER_MODULE(lkpi_iic, drmn, lkpi_iic_driver, lkpi_iic_devclass, 0, 0); +DRIVER_MODULE(lkpi_iic, drmn, lkpi_iic_driver, 0, 0); DRIVER_MODULE(iicbus, lkpi_iic, iicbus_driver, 0, 0); MODULE_DEPEND(linuxkpi, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER); diff --git a/sys/compat/linuxkpi/common/src/linux_i2cbb.c b/sys/compat/linuxkpi/common/src/linux_i2cbb.c index 9199062f957c..47756a25db3f 100644 --- a/sys/compat/linuxkpi/common/src/linux_i2cbb.c +++ b/sys/compat/linuxkpi/common/src/linux_i2cbb.c @@ -121,15 +121,13 @@ static device_method_t lkpi_iicbb_methods[] = { DEVMETHOD_END }; -static devclass_t lkpi_iicbb_devclass; - driver_t lkpi_iicbb_driver = { "lkpi_iicbb", lkpi_iicbb_methods, sizeof(struct lkpi_iicbb_softc), }; -DRIVER_MODULE(lkpi_iicbb, lkpi_iic, lkpi_iicbb_driver, lkpi_iicbb_devclass, 0, 0); +DRIVER_MODULE(lkpi_iicbb, lkpi_iic, lkpi_iicbb_driver, 0, 0); DRIVER_MODULE(iicbb, lkpi_iicbb, iicbb_driver, 0, 0); MODULE_DEPEND(lkpi_iicbb, iicbb, IICBB_MINVER, IICBB_PREFVER, IICBB_MAXVER); diff --git a/sys/compat/linuxkpi/common/src/linux_usb.c b/sys/compat/linuxkpi/common/src/linux_usb.c index 05fb63b93142..dd1cb5bed9c3 100644 --- a/sys/compat/linuxkpi/common/src/linux_usb.c +++ b/sys/compat/linuxkpi/common/src/linux_usb.c @@ -122,9 +122,7 @@ static driver_t usb_linux_driver = { .size = sizeof(struct usb_linux_softc), }; -static devclass_t usb_linux_devclass; - -DRIVER_MODULE(usb_linux, uhub, usb_linux_driver, usb_linux_devclass, NULL, 0); +DRIVER_MODULE(usb_linux, uhub, usb_linux_driver, NULL, NULL); MODULE_VERSION(usb_linux, 1); /*------------------------------------------------------------------------*