From nobody Fri May 6 23:25:14 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 B0A041AD129F; Fri, 6 May 2022 23:25:15 +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 4Kw69k6Wh5z3FT4; Fri, 6 May 2022 23:25:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879515; 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=T+lysd6pSjkIikiKfsKXl45rI1oT09tSHNb2LlCfbVw=; b=ZZpidj+RLNa6NK5skkWi36kZCD0DvJufjI/Va4FHAI0k9rfbGcbW57O82GWySSs/d+OogC 7I+/vbZli7lacr4LykgpsLFgVGx1bK9ns0QfylyDSVEszC9cVb3B6OlFlCrNERcr89EvZ6 yY2gK5ZG8Uu31E/NPnt1BMpLOTXAvGkrGljPkqVTC/8OmXJsvlw6ExsNt57p7Jbn0P0/HJ 9cHvyWK/7WL2sqD/DL19ls9UQ9ozwdWdeBN1FiMjcxr2tViDWEd7YCFD8iENcCrsbIW0AR XGk/3x+lbC0bGko3WAgKT5tlpZ1Kb61Jrcb+TLkwUgjOa6mx/3NfV03nO6/WfQ== 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 AA88F25051; Fri, 6 May 2022 23:25:14 +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 246NPEUQ075617; Fri, 6 May 2022 23:25:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 246NPEqE075616; Fri, 6 May 2022 23:25:14 GMT (envelope-from git) Date: Fri, 6 May 2022 23:25:14 GMT Message-Id: <202205062325.246NPEqE075616@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: f929eb1ed50f - main - xen: 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: f929eb1ed50f079f1638cdabe511ac2e347f541a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879515; 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=T+lysd6pSjkIikiKfsKXl45rI1oT09tSHNb2LlCfbVw=; b=aNSMxsSlGowPXe8L8z4m8zG5IbZjyFiIz4V+hKLmI6g3WlGLdnS6qYXn4URULwy62+AJs2 BndNuByOITGk+w4LEPsBBJhKIiy2Xaf9+xIdi+Dj8EQZ9B/D83vo9JtoSp6PURDU47Z45W vJQQXhNDqbYK3UD6tKGDl1dT018jYX/nyUw47FBcjqgXwmMPTawV55LwBD7Ye6mZrz0nAC yXOvsiaeenEU13wbAbJZWvGtNJky7Kc2YwNty+j8IxyCedF9WDX1nrfbxIpimG3BUTAbJt 4QWIDj3WiXC3XgVpT5eTlzulSVkxoSNRJpF1Nih3s6DJD5oKVkIqNyUC6Fd4IA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651879515; a=rsa-sha256; cv=none; b=O5MQDstSG8CKesEuVColp9YC20J0RPSgjDUaUUP2+851Dm7ZosfF9OR46Bxf0P9yBOEyYN y83txvcYcjgvL2YKcPoQG6yCfHama8uzhCX+T9e6cY8gXG7d17RqP86ooLp6F02qMYB8dI rD4s0YKgCCJgP/ppRLp5dxOW3Xkqq944HG585zvWoDYocEEd+QXw/fpO+Vbn1a2MWpG6Ki 5jf1FEwwJGqUvC+BHnOzR5zd8R5qUhINHS6iQZXzUsSobhqaNHCVs3sNaxAQxzHUZgBE9i KT0NVGi9ZiYdxEaLtCFERxImfkvfPKSvM+rrLiSQDfLF1LwM8XUxAIhsMadG/Q== 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=f929eb1ed50f079f1638cdabe511ac2e347f541a commit f929eb1ed50f079f1638cdabe511ac2e347f541a Author: John Baldwin AuthorDate: 2022-05-06 22:46:58 +0000 Commit: John Baldwin CommitDate: 2022-05-06 22:46:58 +0000 xen: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/xen/balloon/balloon.c | 4 +--- sys/dev/xen/blkback/blkback.c | 3 +-- sys/dev/xen/blkfront/blkfront.c | 3 +-- sys/dev/xen/bus/xenpv.c | 4 +--- sys/dev/xen/console/xen_console.c | 4 +--- sys/dev/xen/control/control.c | 3 +-- sys/dev/xen/cpu/xen_acpi_cpu.c | 3 +-- sys/dev/xen/debug/debug.c | 4 +--- sys/dev/xen/evtchn/evtchn_dev.c | 4 +--- sys/dev/xen/gntdev/gntdev.c | 4 +--- sys/dev/xen/grant_table/grant_table.c | 5 ++--- sys/dev/xen/netback/netback.c | 3 +-- sys/dev/xen/netfront/netfront.c | 4 +--- sys/dev/xen/privcmd/privcmd.c | 4 +--- sys/dev/xen/timer/timer.c | 4 +--- sys/dev/xen/xenpci/xenpci.c | 7 +------ sys/dev/xen/xenstore/xenstore.c | 3 +-- sys/dev/xen/xenstore/xenstore_dev.c | 4 +--- sys/dev/xen/xenstore/xenstored_dev.c | 4 +--- sys/xen/xenbus/xenbusb_back.c | 4 +--- sys/xen/xenbus/xenbusb_front.c | 4 +--- 21 files changed, 22 insertions(+), 60 deletions(-) diff --git a/sys/dev/xen/balloon/balloon.c b/sys/dev/xen/balloon/balloon.c index 7e97fa144485..9fb3164cab7a 100644 --- a/sys/dev/xen/balloon/balloon.c +++ b/sys/dev/xen/balloon/balloon.c @@ -408,7 +408,5 @@ static device_method_t xenballoon_methods[] = { }; DEFINE_CLASS_0(xenballoon, xenballoon_driver, xenballoon_methods, 0); -devclass_t xenballoon_devclass; -DRIVER_MODULE(xenballoon, xenstore, xenballoon_driver, xenballoon_devclass, - NULL, NULL); +DRIVER_MODULE(xenballoon, xenstore, xenballoon_driver, NULL, NULL); diff --git a/sys/dev/xen/blkback/blkback.c b/sys/dev/xen/blkback/blkback.c index 33414295bf5e..e32236d507f3 100644 --- a/sys/dev/xen/blkback/blkback.c +++ b/sys/dev/xen/blkback/blkback.c @@ -3954,6 +3954,5 @@ static driver_t xbb_driver = { xbb_methods, sizeof(struct xbb_softc), }; -devclass_t xbb_devclass; -DRIVER_MODULE(xbbd, xenbusb_back, xbb_driver, xbb_devclass, 0, 0); +DRIVER_MODULE(xbbd, xenbusb_back, xbb_driver, 0, 0); diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c index 3219c26222aa..87054a4d1240 100644 --- a/sys/dev/xen/blkfront/blkfront.c +++ b/sys/dev/xen/blkfront/blkfront.c @@ -1646,6 +1646,5 @@ static driver_t xbd_driver = { xbd_methods, sizeof(struct xbd_softc), }; -devclass_t xbd_devclass; -DRIVER_MODULE(xbd, xenbusb_front, xbd_driver, xbd_devclass, 0, 0); +DRIVER_MODULE(xbd, xenbusb_front, xbd_driver, 0, 0); diff --git a/sys/dev/xen/bus/xenpv.c b/sys/dev/xen/bus/xenpv.c index 7727c1caccee..3d1d1025b736 100644 --- a/sys/dev/xen/bus/xenpv.c +++ b/sys/dev/xen/bus/xenpv.c @@ -68,8 +68,6 @@ __FBSDID("$FreeBSD$"); #define LOW_MEM_LIMIT 0 #endif -static devclass_t xenpv_devclass; - static void xenpv_identify(driver_t *driver, device_t parent) { @@ -186,7 +184,7 @@ static driver_t xenpv_driver = { 0, }; -DRIVER_MODULE(xenpv, nexus, xenpv_driver, xenpv_devclass, 0, 0); +DRIVER_MODULE(xenpv, nexus, xenpv_driver, 0, 0); struct resource * xenmem_alloc(device_t dev, int *res_id, size_t size) diff --git a/sys/dev/xen/console/xen_console.c b/sys/dev/xen/console/xen_console.c index 27da02723dc3..cec97a837b50 100644 --- a/sys/dev/xen/console/xen_console.c +++ b/sys/dev/xen/console/xen_console.c @@ -771,8 +771,6 @@ xencons_resume(device_t dev) return (0); } -static devclass_t xencons_devclass; - static device_method_t xencons_methods[] = { DEVMETHOD(device_identify, xencons_identify), DEVMETHOD(device_probe, xencons_probe), @@ -788,4 +786,4 @@ static driver_t xencons_driver = { 0, }; -DRIVER_MODULE(xc, xenpv, xencons_driver, xencons_devclass, 0, 0); +DRIVER_MODULE(xc, xenpv, xencons_driver, 0, 0); diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c index 903864d84598..2a539c724046 100644 --- a/sys/dev/xen/control/control.c +++ b/sys/dev/xen/control/control.c @@ -487,6 +487,5 @@ static device_method_t xctrl_methods[] = { }; DEFINE_CLASS_0(xctrl, xctrl_driver, xctrl_methods, sizeof(struct xctrl_softc)); -devclass_t xctrl_devclass; -DRIVER_MODULE(xctrl, xenstore, xctrl_driver, xctrl_devclass, NULL, NULL); +DRIVER_MODULE(xctrl, xenstore, xctrl_driver, NULL, NULL); diff --git a/sys/dev/xen/cpu/xen_acpi_cpu.c b/sys/dev/xen/cpu/xen_acpi_cpu.c index 865bac49b869..724634b9fa5f 100644 --- a/sys/dev/xen/cpu/xen_acpi_cpu.c +++ b/sys/dev/xen/cpu/xen_acpi_cpu.c @@ -600,6 +600,5 @@ static driver_t xen_acpi_cpu_driver = { sizeof(struct xen_acpi_cpu_softc), }; -static devclass_t xen_acpi_cpu_devclass; -DRIVER_MODULE(xen_cpu, acpi, xen_acpi_cpu_driver, xen_acpi_cpu_devclass, 0, 0); +DRIVER_MODULE(xen_cpu, acpi, xen_acpi_cpu_driver, 0, 0); MODULE_DEPEND(xen_cpu, acpi, 1, 1, 1); diff --git a/sys/dev/xen/debug/debug.c b/sys/dev/xen/debug/debug.c index bd1d6101f392..d05e69f107c3 100644 --- a/sys/dev/xen/debug/debug.c +++ b/sys/dev/xen/debug/debug.c @@ -150,7 +150,5 @@ static driver_t xendebug_driver = { 0, }; -devclass_t xendebug_devclass; - -DRIVER_MODULE(xendebug, xenpv, xendebug_driver, xendebug_devclass, 0, 0); +DRIVER_MODULE(xendebug, xenpv, xendebug_driver, 0, 0); MODULE_DEPEND(xendebug, xenpv, 1, 1, 1); diff --git a/sys/dev/xen/evtchn/evtchn_dev.c b/sys/dev/xen/evtchn/evtchn_dev.c index c970404cce3c..34f481358008 100644 --- a/sys/dev/xen/evtchn/evtchn_dev.c +++ b/sys/dev/xen/evtchn/evtchn_dev.c @@ -599,7 +599,5 @@ static driver_t evtchn_driver = { 0, }; -devclass_t evtchn_devclass; - -DRIVER_MODULE(evtchn, xenpv, evtchn_driver, evtchn_devclass, 0, 0); +DRIVER_MODULE(evtchn, xenpv, evtchn_driver, 0, 0); MODULE_DEPEND(evtchn, xenpv, 1, 1, 1); diff --git a/sys/dev/xen/gntdev/gntdev.c b/sys/dev/xen/gntdev/gntdev.c index 0c89133ca1b0..75191bea1fd1 100644 --- a/sys/dev/xen/gntdev/gntdev.c +++ b/sys/dev/xen/gntdev/gntdev.c @@ -1276,7 +1276,5 @@ static driver_t gntdev_driver = { 0, }; -devclass_t gntdev_devclass; - -DRIVER_MODULE(gntdev, xenpv, gntdev_driver, gntdev_devclass, 0, 0); +DRIVER_MODULE(gntdev, xenpv, gntdev_driver, 0, 0); MODULE_DEPEND(gntdev, xenpv, 1, 1, 1); diff --git a/sys/dev/xen/grant_table/grant_table.c b/sys/dev/xen/grant_table/grant_table.c index a3f9f449e4a3..11e5071c7b0b 100644 --- a/sys/dev/xen/grant_table/grant_table.c +++ b/sys/dev/xen/grant_table/grant_table.c @@ -675,7 +675,6 @@ static device_method_t granttable_methods[] = { }; DEFINE_CLASS_0(granttable, granttable_driver, granttable_methods, 0); -devclass_t granttable_devclass; -DRIVER_MODULE_ORDERED(granttable, xenpv, granttable_driver, granttable_devclass, - NULL, NULL, SI_ORDER_FIRST); +DRIVER_MODULE_ORDERED(granttable, xenpv, granttable_driver, NULL, NULL, + SI_ORDER_FIRST); diff --git a/sys/dev/xen/netback/netback.c b/sys/dev/xen/netback/netback.c index bcc7d2541203..ddd5218a8936 100644 --- a/sys/dev/xen/netback/netback.c +++ b/sys/dev/xen/netback/netback.c @@ -2495,9 +2495,8 @@ static driver_t xnb_driver = { xnb_methods, sizeof(struct xnb_softc), }; -devclass_t xnb_devclass; -DRIVER_MODULE(xnb, xenbusb_back, xnb_driver, xnb_devclass, 0, 0); +DRIVER_MODULE(xnb, xenbusb_back, xnb_driver, 0, 0); /*-------------------------- Unit Tests -------------------------------------*/ #ifdef XNB_DEBUG diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c index facab6550ca3..fc151453a49a 100644 --- a/sys/dev/xen/netfront/netfront.c +++ b/sys/dev/xen/netfront/netfront.c @@ -2336,7 +2336,5 @@ static driver_t netfront_driver = { netfront_methods, sizeof(struct netfront_info), }; -devclass_t netfront_devclass; -DRIVER_MODULE(xe, xenbusb_front, netfront_driver, netfront_devclass, NULL, - NULL); +DRIVER_MODULE(xe, xenbusb_front, netfront_driver, NULL, NULL); diff --git a/sys/dev/xen/privcmd/privcmd.c b/sys/dev/xen/privcmd/privcmd.c index f8da2e2d9a35..459ac8bbe951 100644 --- a/sys/dev/xen/privcmd/privcmd.c +++ b/sys/dev/xen/privcmd/privcmd.c @@ -607,7 +607,5 @@ static driver_t privcmd_driver = { 0, }; -devclass_t privcmd_devclass; - -DRIVER_MODULE(privcmd, xenpv, privcmd_driver, privcmd_devclass, 0, 0); +DRIVER_MODULE(privcmd, xenpv, privcmd_driver, 0, 0); MODULE_DEPEND(privcmd, xenpv, 1, 1, 1); diff --git a/sys/dev/xen/timer/timer.c b/sys/dev/xen/timer/timer.c index 527259f6720f..815e3338f320 100644 --- a/sys/dev/xen/timer/timer.c +++ b/sys/dev/xen/timer/timer.c @@ -68,8 +68,6 @@ __FBSDID("$FreeBSD$"); #include "clock_if.h" -static devclass_t xentimer_devclass; - #define NSEC_IN_SEC 1000000000ULL #define NSEC_IN_USEC 1000ULL /* 18446744073 = int(2^64 / NSEC_IN_SC) = 1 ns in 64-bit fractions */ @@ -555,5 +553,5 @@ static driver_t xentimer_driver = { sizeof(struct xentimer_softc), }; -DRIVER_MODULE(xentimer, xenpv, xentimer_driver, xentimer_devclass, 0, 0); +DRIVER_MODULE(xentimer, xenpv, xentimer_driver, 0, 0); MODULE_DEPEND(xentimer, xenpv, 1, 1, 1); diff --git a/sys/dev/xen/xenpci/xenpci.c b/sys/dev/xen/xenpci/xenpci.c index 07d424c1e7a7..ca54b691b8ad 100644 --- a/sys/dev/xen/xenpci/xenpci.c +++ b/sys/dev/xen/xenpci/xenpci.c @@ -52,11 +52,6 @@ __FBSDID("$FreeBSD$"); #include -/* - * This is used to find our platform device instance. - */ -static devclass_t xenpci_devclass; - static int xenpci_intr_filter(void *trap_frame) { @@ -236,4 +231,4 @@ static driver_t xenpci_driver = { sizeof(struct xenpci_softc), }; -DRIVER_MODULE(xenpci, pci, xenpci_driver, xenpci_devclass, 0, 0); +DRIVER_MODULE(xenpci, pci, xenpci_driver, 0, 0); diff --git a/sys/dev/xen/xenstore/xenstore.c b/sys/dev/xen/xenstore/xenstore.c index 534cb65ca152..e99f48d8d0d7 100644 --- a/sys/dev/xen/xenstore/xenstore.c +++ b/sys/dev/xen/xenstore/xenstore.c @@ -1237,9 +1237,8 @@ static device_method_t xenstore_methods[] = { }; DEFINE_CLASS_0(xenstore, xenstore_driver, xenstore_methods, 0); -static devclass_t xenstore_devclass; -DRIVER_MODULE(xenstore, xenpv, xenstore_driver, xenstore_devclass, 0, 0); +DRIVER_MODULE(xenstore, xenpv, xenstore_driver, 0, 0); /*------------------------------- Sysctl Data --------------------------------*/ /* XXX Shouldn't the node be somewhere else? */ diff --git a/sys/dev/xen/xenstore/xenstore_dev.c b/sys/dev/xen/xenstore/xenstore_dev.c index c88901bb5d68..a7818ee25b56 100644 --- a/sys/dev/xen/xenstore/xenstore_dev.c +++ b/sys/dev/xen/xenstore/xenstore_dev.c @@ -544,7 +544,5 @@ static device_method_t xs_dev_methods[] = { }; DEFINE_CLASS_0(xs_dev, xs_dev_driver, xs_dev_methods, 0); -devclass_t xs_dev_devclass; -DRIVER_MODULE(xs_dev, xenstore, xs_dev_driver, xs_dev_devclass, - NULL, NULL); +DRIVER_MODULE(xs_dev, xenstore, xs_dev_driver, NULL, NULL); diff --git a/sys/dev/xen/xenstore/xenstored_dev.c b/sys/dev/xen/xenstore/xenstored_dev.c index 48d121b68ba3..340536fbc56c 100644 --- a/sys/dev/xen/xenstore/xenstored_dev.c +++ b/sys/dev/xen/xenstore/xenstored_dev.c @@ -158,7 +158,5 @@ static device_method_t xsd_dev_methods[] = { }; DEFINE_CLASS_0(xsd_dev, xsd_dev_driver, xsd_dev_methods, 0); -devclass_t xsd_dev_devclass; -DRIVER_MODULE(xsd_dev, xenpv, xsd_dev_driver, xsd_dev_devclass, - NULL, NULL); +DRIVER_MODULE(xsd_dev, xenpv, xsd_dev_driver, NULL, NULL); diff --git a/sys/xen/xenbus/xenbusb_back.c b/sys/xen/xenbus/xenbusb_back.c index ae0c83237154..597618b64eb3 100644 --- a/sys/xen/xenbus/xenbusb_back.c +++ b/sys/xen/xenbus/xenbusb_back.c @@ -312,7 +312,5 @@ static device_method_t xenbusb_back_methods[] = { DEFINE_CLASS_0(xenbusb_back, xenbusb_back_driver, xenbusb_back_methods, sizeof(struct xenbusb_softc)); -devclass_t xenbusb_back_devclass; -DRIVER_MODULE(xenbusb_back, xenstore, xenbusb_back_driver, - xenbusb_back_devclass, 0, 0); +DRIVER_MODULE(xenbusb_back, xenstore, xenbusb_back_driver, 0, 0); diff --git a/sys/xen/xenbus/xenbusb_front.c b/sys/xen/xenbus/xenbusb_front.c index 7cb5bc33d1e7..4dddc01e64e5 100644 --- a/sys/xen/xenbus/xenbusb_front.c +++ b/sys/xen/xenbus/xenbusb_front.c @@ -189,7 +189,5 @@ static device_method_t xenbusb_front_methods[] = { DEFINE_CLASS_0(xenbusb_front, xenbusb_front_driver, xenbusb_front_methods, sizeof(struct xenbusb_softc)); -devclass_t xenbusb_front_devclass; -DRIVER_MODULE(xenbusb_front, xenstore, xenbusb_front_driver, - xenbusb_front_devclass, 0, 0); +DRIVER_MODULE(xenbusb_front, xenstore, xenbusb_front_driver, 0, 0);