From nobody Sun Dec 1 04:57:06 2024 X-Original-To: dev-commits-src-branches@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 4Y1F5H13ndz5gDDR; Sun, 01 Dec 2024 04:57:07 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y1F5G4kr4z493S; Sun, 1 Dec 2024 04:57:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029026; 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=XjPU1hk3nlbs/INSk1Ot4C3qECZXFAC8y35Ps4VNNJs=; b=MPZAAzBHlmHqPbX+kJh5amEBYn7U6HuHGZv2QSrV8tmfqLAJUfhv6CgO/r85BsA0eSJWXa W5taIc7y+kVm3ZIaBe+4Yf1JeEVk3Y+lagAOEJ3mzpqhRbT51QosSdpjsNV0LNBw1uLCKt gc53VVPcUU6G++VZQBU3WAMEc/x/bmRGkxZb3ZzExuJSogHMDD8Z5LSTlt0WYypnz8SIG3 lYPyLaseykCycRzs5IAoRxGZ3La6y400GPQh1llOkkVCtOmok+pJHR98gbgzdtIKbIBhIa XbGUAPGYCAMAc1MtyvET7paR1ouq+DKBRkr8DwDGLk2lsn4SJkkNL+TcKuB2/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029026; 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=XjPU1hk3nlbs/INSk1Ot4C3qECZXFAC8y35Ps4VNNJs=; b=xgjTPH1bhgey0HzZaQGVzsqCvo6X/1OgsKyBm4RfqN3KQVPVWD5ldkkd7tnyIHJPQvJztG BGslGIe3HnBNKAmvG86j+Uyj+MqATQ6/KlwA95E3HH1US9QxZUCkCPGScmCilxPGHcUvlh zqfZI2YgqXsuCHwQuBqwBo7zBBRWW5Pey7gbPLie0MkSX3VKKbJN1EiwPT0fg68eoEDpJO fO2LGgriZ+zgQs89WEO0C96XlSRBWJR4p97Zh6NsowpMV7C2k0JwuFNNdkFtyqWCgmjLW8 ORPhU+cMJZKleSnbrvEYr7zFfQleSKN0Gz52FHnrP20oNWlsb5J5IqnZJDRt9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733029026; a=rsa-sha256; cv=none; b=Ll/1uCYBcEPQF8YTePYCgli8RlK30uakv7+/8KCb148ex2GmzwUD4YulduqQWLaB6RkV9q 4Sp7bQwgrXoPsTDbVNa5pAID+lWJPqRzjwCzXVoPVCMKrEpAF6lXWZpIpljNAnVVDe1nxf oaIa6oeSE6EtLtcLsRSGf5TLLZf0vL79/qTKNBaYR06+rgi7FnAtw2noxsEyYvbTSTV/Xn p3v6eInMTCQ8FDUchcAseFQeRb8p8pYp9YPKOP7WS3CL/jIHWJ6unWPjU28SX2S6TVU9U0 YkZFnT1TQtkIxZgAUO4uLQbT4FnjkxQi7VFgRa4ro8AJ7uAZV5/Q4cYnhhXF3w== 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 4Y1F5G4FjBzdmy; Sun, 1 Dec 2024 04:57:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4B14v6Zq094937; Sun, 1 Dec 2024 04:57:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B14v6WC094934; Sun, 1 Dec 2024 04:57:06 GMT (envelope-from git) Date: Sun, 1 Dec 2024 04:57:06 GMT Message-Id: <202412010457.4B14v6WC094934@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 82ee73e713c4 - stable/14 - ignore_pci: Add a proper stub attach routine List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 82ee73e713c493f26f837d27bf3f011c57ef15c1 Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=82ee73e713c493f26f837d27bf3f011c57ef15c1 commit 82ee73e713c493f26f837d27bf3f011c57ef15c1 Author: John Baldwin AuthorDate: 2024-10-31 19:49:27 +0000 Commit: John Baldwin 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 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); +}