From nobody Sun Dec 1 04:57:56 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 4Y1F6D6HNLz5gDHf; Sun, 01 Dec 2024 04:57:56 +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 4Y1F6D4Fm2z4Cpf; Sun, 1 Dec 2024 04:57:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029076; 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=chMVs60EiLkQTz3HTKO2HYnEL8zVMST4RGiliwvjOSM=; b=NUvhDk+Jasqr50dGqeWyzjEc9RJxjPKZBkFGibkOuIc/dd16jS5ALYkweooskOP6yxTRM3 1qg6Ry9KJIqll3jmVxDBgYtoPHJBmGlmrcoXQADCvy1OZ1GimiDiI8pbbY9lQONsIXwXRu aLmTmpbFLPbT494q7h4JWAiBCvkhB1YG5V+vkKphx9oWj39wzJaW8bOdyhqJcrQTaRDMkT u7hkHkczO+kjnJqzXxYyBZFyE7Rlr072qeq/fTs/77jf7rQeonwYXAd9pKfxkfyzjhBVYX dMRLgjhMXfmtnawHPJ8GbhKdXQc8ryLiaItjhEVpPAXt7vBcraF8yrD8mbCAOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029076; 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=chMVs60EiLkQTz3HTKO2HYnEL8zVMST4RGiliwvjOSM=; b=sVwE4hc6GY4jy2LVat1EzZXRu2l/QyDReIW3C8eiEJZIRvmrBj0ouKGpKOD8UWLXJk+09X FpJeo1ferkX1XLIMpkxwU5/fgVQIjUePuovjkRBOylddVTuNJUyImF89w5jimJgyiN9zP8 Q9ZEe7Q70LmN3Md7ySfttQ/29O4RkxBg01P1Thl+tW86TBsVfo1r1sMfiOf5tjbVIHvL4U kbTnXxp2u/0h80AZWogv73a3DHbCYy1+BsmuE9dXm8ATCNc6XeyRY+rvw3B+MjWe/8wNSp 1Fd3EQb7YU2CbdJ1YhEKYlCcXv2jgfEpYog3ilrKMY0/TRmAo/S+1T0X6U4hnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733029076; a=rsa-sha256; cv=none; b=JQNyxUb+vqp5PbyGkctiV5vgNVNYNp9yUOha6rNQLP3MvilLg8OjqJX1Ix4740PzjjktsY m8CbolRfCWcetSM7bcGWmvOuVvF4PUIwKklF3oOiVzB0QgFqegVNp5CbgIYToNjLBXBCH7 ivnVm6Kw7q0pUcfNPf34iZKdei3Z0nb1pMUKI8SkGxEQeeH9j2pJ3v9Fw1NOgLZiNgt/3P +rp/1ijN5ZcEwoBXRADyIzVR2hGlfNGH7a2ompqg6p1gkSO1NxtD2IAXamKTjIKHntacH/ egqVQlj6a+Db/VIzTWASfZPI0JNydbKQ9bGgwNAYJOaL+aBfMeG1xBpjFLnq1g== 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 4Y1F6D3rN0zfLR; Sun, 1 Dec 2024 04:57:56 +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 4B14vu9p097370; Sun, 1 Dec 2024 04:57:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B14vuBq097367; Sun, 1 Dec 2024 04:57:56 GMT (envelope-from git) Date: Sun, 1 Dec 2024 04:57:56 GMT Message-Id: <202412010457.4B14vuBq097367@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: 12f6518570b8 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 12f6518570b86eee8223a69ff6b4db98c983e07f Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=12f6518570b86eee8223a69ff6b4db98c983e07f commit 12f6518570b86eee8223a69ff6b4db98c983e07f Author: John Baldwin AuthorDate: 2024-10-31 19:49:27 +0000 Commit: John Baldwin CommitDate: 2024-11-30 21:39:16 +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 b60518e0ec75..bd80c9db3250 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 } }; @@ -70,3 +71,9 @@ ignore_pci_probe(device_t dev) } return(ENXIO); } + +static int +ignore_pci_attach(device_t dev) +{ + return (0); +}