git: 9940f7a7f694 - main - ntb: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:23:13 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9940f7a7f694f45f4d46d47ae0962027c0410efa commit 9940f7a7f694f45f4d46d47ae0962027c0410efa Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 19:22:03 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 19:22:03 +0000 ntb: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/ntb/if_ntb/if_ntb.c | 4 +--- sys/dev/ntb/ntb.c | 1 - sys/dev/ntb/ntb.h | 1 - sys/dev/ntb/ntb_hw/ntb_hw_amd.c | 2 +- sys/dev/ntb/ntb_hw/ntb_hw_intel.c | 2 +- sys/dev/ntb/ntb_hw/ntb_hw_plx.c | 2 +- sys/dev/ntb/ntb_transport.c | 4 +--- sys/dev/ntb/ntb_transport.h | 2 -- sys/dev/ntb/test/ntb_tool.c | 3 +-- 9 files changed, 6 insertions(+), 15 deletions(-) diff --git a/sys/dev/ntb/if_ntb/if_ntb.c b/sys/dev/ntb/if_ntb/if_ntb.c index 2724db4f8a06..5b592d7434f7 100644 --- a/sys/dev/ntb/if_ntb/if_ntb.c +++ b/sys/dev/ntb/if_ntb/if_ntb.c @@ -505,10 +505,8 @@ static device_method_t ntb_net_methods[] = { DEVMETHOD_END }; -devclass_t ntb_net_devclass; static DEFINE_CLASS_0(ntb, ntb_net_driver, ntb_net_methods, sizeof(struct ntb_net_ctx)); -DRIVER_MODULE(if_ntb, ntb_transport, ntb_net_driver, ntb_net_devclass, - NULL, NULL); +DRIVER_MODULE(if_ntb, ntb_transport, ntb_net_driver, NULL, NULL); MODULE_DEPEND(if_ntb, ntb_transport, 1, 1, 1); MODULE_VERSION(if_ntb, 1); diff --git a/sys/dev/ntb/ntb.c b/sys/dev/ntb/ntb.c index b765da213e2c..d9cc25a4e478 100644 --- a/sys/dev/ntb/ntb.c +++ b/sys/dev/ntb/ntb.c @@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$"); #include "ntb.h" -devclass_t ntb_hw_devclass; SYSCTL_NODE(_hw, OID_AUTO, ntb, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, "NTB sysctls"); diff --git a/sys/dev/ntb/ntb.h b/sys/dev/ntb/ntb.h index 8883d52ce1ce..e27b06a7c0b5 100644 --- a/sys/dev/ntb/ntb.h +++ b/sys/dev/ntb/ntb.h @@ -31,7 +31,6 @@ #include "ntb_if.h" -extern devclass_t ntb_hw_devclass; SYSCTL_DECL(_hw_ntb); int ntb_register_device(device_t ntb); diff --git a/sys/dev/ntb/ntb_hw/ntb_hw_amd.c b/sys/dev/ntb/ntb_hw/ntb_hw_amd.c index 2d13dc1321cb..94cfba2bfe72 100644 --- a/sys/dev/ntb/ntb_hw/ntb_hw_amd.c +++ b/sys/dev/ntb/ntb_hw/ntb_hw_amd.c @@ -1310,7 +1310,7 @@ static device_method_t ntb_amd_methods[] = { static DEFINE_CLASS_0(ntb_hw, ntb_amd_driver, ntb_amd_methods, sizeof(struct amd_ntb_softc)); -DRIVER_MODULE(ntb_hw_amd, pci, ntb_amd_driver, ntb_hw_devclass, NULL, NULL); +DRIVER_MODULE(ntb_hw_amd, pci, ntb_amd_driver, NULL, NULL); MODULE_DEPEND(ntb_hw_amd, ntb, 1, 1, 1); MODULE_VERSION(ntb_hw_amd, 1); PCI_PNP_INFO(amd_ntb_devs); diff --git a/sys/dev/ntb/ntb_hw/ntb_hw_intel.c b/sys/dev/ntb/ntb_hw/ntb_hw_intel.c index 00fcc4829b9c..774bb14fea0f 100644 --- a/sys/dev/ntb/ntb_hw/ntb_hw_intel.c +++ b/sys/dev/ntb/ntb_hw/ntb_hw_intel.c @@ -3511,7 +3511,7 @@ static device_method_t ntb_intel_methods[] = { static DEFINE_CLASS_0(ntb_hw, ntb_intel_driver, ntb_intel_methods, sizeof(struct ntb_softc)); -DRIVER_MODULE(ntb_hw_intel, pci, ntb_intel_driver, ntb_hw_devclass, NULL, NULL); +DRIVER_MODULE(ntb_hw_intel, pci, ntb_intel_driver, NULL, NULL); MODULE_DEPEND(ntb_hw_intel, ntb, 1, 1, 1); MODULE_VERSION(ntb_hw_intel, 1); MODULE_PNP_INFO("W32:vendor/device;D:#", pci, ntb_hw_intel, pci_ids, diff --git a/sys/dev/ntb/ntb_hw/ntb_hw_plx.c b/sys/dev/ntb/ntb_hw/ntb_hw_plx.c index 4231b1209291..8acf8c82a790 100644 --- a/sys/dev/ntb/ntb_hw/ntb_hw_plx.c +++ b/sys/dev/ntb/ntb_hw/ntb_hw_plx.c @@ -1091,6 +1091,6 @@ static device_method_t ntb_plx_methods[] = { static DEFINE_CLASS_0(ntb_hw, ntb_plx_driver, ntb_plx_methods, sizeof(struct ntb_plx_softc)); -DRIVER_MODULE(ntb_hw_plx, pci, ntb_plx_driver, ntb_hw_devclass, NULL, NULL); +DRIVER_MODULE(ntb_hw_plx, pci, ntb_plx_driver, NULL, NULL); MODULE_DEPEND(ntb_hw_plx, ntb, 1, 1, 1); MODULE_VERSION(ntb_hw_plx, 1); diff --git a/sys/dev/ntb/ntb_transport.c b/sys/dev/ntb/ntb_transport.c index 276fe604086e..b67e567a9493 100644 --- a/sys/dev/ntb/ntb_transport.c +++ b/sys/dev/ntb/ntb_transport.c @@ -1689,10 +1689,8 @@ static device_method_t ntb_transport_methods[] = { DEVMETHOD_END }; -devclass_t ntb_transport_devclass; static DEFINE_CLASS_0(ntb_transport, ntb_transport_driver, ntb_transport_methods, sizeof(struct ntb_transport_ctx)); -DRIVER_MODULE(ntb_transport, ntb_hw, ntb_transport_driver, - ntb_transport_devclass, NULL, NULL); +DRIVER_MODULE(ntb_transport, ntb_hw, ntb_transport_driver, NULL, NULL); MODULE_DEPEND(ntb_transport, ntb, 1, 1, 1); MODULE_VERSION(ntb_transport, 1); diff --git a/sys/dev/ntb/ntb_transport.h b/sys/dev/ntb/ntb_transport.h index 7695abdefaec..aade22889ac9 100644 --- a/sys/dev/ntb/ntb_transport.h +++ b/sys/dev/ntb/ntb_transport.h @@ -28,8 +28,6 @@ struct ntb_transport_qp; -extern devclass_t ntb_transport_devclass; - enum ntb_link_event { NTB_LINK_DOWN = 0, NTB_LINK_UP, diff --git a/sys/dev/ntb/test/ntb_tool.c b/sys/dev/ntb/test/ntb_tool.c index 76dfd58695ec..aae78756501f 100644 --- a/sys/dev/ntb/test/ntb_tool.c +++ b/sys/dev/ntb/test/ntb_tool.c @@ -1487,9 +1487,8 @@ static device_method_t ntb_tool_methods[] = { DEVMETHOD_END }; -devclass_t ntb_tool_devclass; static DEFINE_CLASS_0(ntb_tool, ntb_tool_driver, ntb_tool_methods, sizeof(struct tool_ctx)); -DRIVER_MODULE(ntb_tool, ntb_hw, ntb_tool_driver, ntb_tool_devclass, NULL, NULL); +DRIVER_MODULE(ntb_tool, ntb_hw, ntb_tool_driver, NULL, NULL); MODULE_DEPEND(ntb_tool, ntb, 1, 1, 1); MODULE_VERSION(ntb_tool, 1.0);