Date: Sun, 1 Dec 2024 04:57:06 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 82ee73e713c4 - stable/14 - ignore_pci: Add a proper stub attach routine Message-ID: <202412010457.4B14v6WC094934@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=82ee73e713c493f26f837d27bf3f011c57ef15c1 commit 82ee73e713c493f26f837d27bf3f011c57ef15c1 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2024-10-31 19:49:27 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2024-12-01 02:46:05 +0000 ignore_pci: Add a proper stub attach routine This isn't a bus driver, so an empty attach routine is more appropriate. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47220 (cherry picked from commit f2e50ce0a37a40363b7ec6a165aa0b0a2e81ffc4) --- sys/dev/pci/ignore_pci.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/ignore_pci.c b/sys/dev/pci/ignore_pci.c index 22964e55b81d..8a12e43bcae3 100644 --- a/sys/dev/pci/ignore_pci.c +++ b/sys/dev/pci/ignore_pci.c @@ -41,11 +41,12 @@ #include <dev/pci/pcivar.h> static int ignore_pci_probe(device_t dev); +static int ignore_pci_attach(device_t dev); static device_method_t ignore_pci_methods[] = { /* Device interface */ DEVMETHOD(device_probe, ignore_pci_probe), - DEVMETHOD(device_attach, bus_generic_attach), + DEVMETHOD(device_attach, ignore_pci_attach), { 0, 0 } }; @@ -68,3 +69,9 @@ ignore_pci_probe(device_t dev) } return(ENXIO); } + +static int +ignore_pci_attach(device_t dev) +{ + return (0); +}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412010457.4B14v6WC094934>