From nobody Fri May 06 23:25:23 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 600031AD13FE; Fri, 6 May 2022 23:25:25 +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 4Kw69w0smMz3FTp; Fri, 6 May 2022 23:25:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879524; 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=sCYs+fxe2ySljtjioY4iuCyKtK1ys8zcTlSgyFIFHTc=; b=mS1c5AnqTcD5BZHCqPtabRBUHDSoWazXXJ2NiexuyWWIStceix+KSbD75VAGIFlle8O3Wt cRzSnnpCevw/bwD/fnsDePWwPEwFPXiUDidQFP3GXXKlIUoaDIY3cCrN5iCrV3K6EAE7Gv UIssHcgirizw00A/PJGiTtfvSldePgOZdZrIiGJ92Dj16Uta3qlNa6jqPCNJKg6don7A44 56Sp4UzXDLeXSLV1lvgLsEwyl8FzjHcSEyrSvEiWWuq5XNfrSpdU2Fgc6aq4XKW6R8inyC deZAKWFqHTsI9ZD5Psns3ERY+X8ebM4mE8sY4ZA5qFclViT1inKULumAzwWq3g== 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 CD78B24F55; Fri, 6 May 2022 23:25:23 +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 246NPNLs075821; Fri, 6 May 2022 23:25:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 246NPNqN075820; Fri, 6 May 2022 23:25:23 GMT (envelope-from git) Date: Fri, 6 May 2022 23:25:23 GMT Message-Id: <202205062325.246NPNqN075820@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: 7c146c0cbca3 - main - fd/fdc: 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: 7c146c0cbca3b08c21f0e59409672e8d647bcd44 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879524; 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=sCYs+fxe2ySljtjioY4iuCyKtK1ys8zcTlSgyFIFHTc=; b=PFqRI0w8zIy6nMJaAADWfMF5WGjuUyjMbU//4jXQT7ryUO11kv+vfo6pt8Q5AX7Q4v7NeT MqYmN0Js9R27HFtNFAfftgSZg2knV2VQAsDDRwEI8DS/DdY2L47kJXH39El8tXYOpbESPW lngQJ6VKrCCWvDaV+sVGmWBlZXFOBJKeBYktw3Q87azCCEMSVPkPuJFYtcSB+Uu3b/Dp/l eDyHL8bJzug0ovTWDMkCBJ3q7kGloZhoayM6mRRsNILiHffif8oLvWy+NEhIE769hoW1OL cq19VwfAHIV9qLGokanEW6CDKAwiVBJ464LYwb8jIYJtlsKfh/UlG4UDg1gJRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651879524; a=rsa-sha256; cv=none; b=FoZendXbKLF7d/5QuzoXENItWMTBaVEhA6+zpcd2TEDIzgXkiS3MK/RObGYSFSdeq31bxh 15RJGoEwK7NsFxGPS5neTysUkPuuL0gkcFBlHETxafZoGZIk82gJnMD1jHV053pvO3P79z 5KWuE9ZITDRbCX3NEBJYOhn4A+g1pv0p03kDxCBxArLVlmyysNS48ztED4XyaIM5U4AJ4z AX3D9BWxxhwsR4jjZGEIicDvWCF2T0Y1WiOXE5p0TylelaajlKPQF+iVJ3BlPmmmr08dyN cUSKOPSN9ueI9prZTRvnjumbIP4dAKan0lXEfw8JFnW1RGhGf/3SOkFDAym6Zw== 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=7c146c0cbca3b08c21f0e59409672e8d647bcd44 commit 7c146c0cbca3b08c21f0e59409672e8d647bcd44 Author: John Baldwin AuthorDate: 2022-05-06 22:46:58 +0000 Commit: John Baldwin CommitDate: 2022-05-06 22:46:58 +0000 fd/fdc: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/fdc/fdc.c | 6 +----- sys/dev/fdc/fdc_acpi.c | 2 +- sys/dev/fdc/fdc_isa.c | 2 +- sys/dev/fdc/fdcvar.h | 2 -- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 5c78d02a5502..812ca43789b4 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -1583,10 +1583,6 @@ fd_ioctl(struct g_provider *pp, u_long cmd, void *data, int fflag, struct thread /* * Configuration/initialization stuff, per controller. */ - -devclass_t fdc_devclass; -static devclass_t fd_devclass; - struct fdc_ivars { int fdunit; int fdtype; @@ -2112,4 +2108,4 @@ fdc_modevent(module_t mod, int type, void *data) return (g_modevent(NULL, type, &g_fd_class)); } -DRIVER_MODULE(fd, fdc, fd_driver, fd_devclass, fdc_modevent, 0); +DRIVER_MODULE(fd, fdc, fd_driver, fdc_modevent, 0); diff --git a/sys/dev/fdc/fdc_acpi.c b/sys/dev/fdc/fdc_acpi.c index 6da5bf135b4a..9926827e353c 100644 --- a/sys/dev/fdc/fdc_acpi.c +++ b/sys/dev/fdc/fdc_acpi.c @@ -273,4 +273,4 @@ static driver_t fdc_acpi_driver = { sizeof(struct fdc_data) }; -DRIVER_MODULE(fdc, acpi, fdc_acpi_driver, fdc_devclass, 0, 0); +DRIVER_MODULE(fdc, acpi, fdc_acpi_driver, 0, 0); diff --git a/sys/dev/fdc/fdc_isa.c b/sys/dev/fdc/fdc_isa.c index 6b22c05fb85e..74865fc8d142 100644 --- a/sys/dev/fdc/fdc_isa.c +++ b/sys/dev/fdc/fdc_isa.c @@ -222,5 +222,5 @@ static driver_t fdc_driver = { sizeof(struct fdc_data) }; -DRIVER_MODULE(fdc, isa, fdc_driver, fdc_devclass, 0, 0); +DRIVER_MODULE(fdc, isa, fdc_driver, 0, 0); ISA_PNP_INFO(fdc_ids); diff --git a/sys/dev/fdc/fdcvar.h b/sys/dev/fdc/fdcvar.h index 3a2159db1348..4981e84ce7fe 100644 --- a/sys/dev/fdc/fdcvar.h +++ b/sys/dev/fdc/fdcvar.h @@ -70,8 +70,6 @@ struct fdc_data { struct proc *fdc_thread; }; -extern devclass_t fdc_devclass; - enum fdc_device_ivars { FDC_IVAR_FDUNIT, FDC_IVAR_FDTYPE,