From nobody Thu Oct 31 19:52:57 2024 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 4XfZRF34xZz5cGyB; Thu, 31 Oct 2024 19:52:57 +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 4XfZRF2PYWz4Phx; Thu, 31 Oct 2024 19:52:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730404377; 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=hIYu7lFPqiNa74wBirEIVCn3O2C8g31iVGWlvEHz+vQ=; b=ElqvfCgL1pnSMMrXaTntjfQvhZAKkGthFmEoN7jtgF2pCtQtX9Nt57nVM5Ea5cxp2AwL10 Vuk9XvTCRUI8ZV5Lw8/rjdAOfFKH+ocD5H+Xi2skE0E+FJeoa+RlFZCF0mkYZcBn6/H//v bO4OdvNll4pyFeWWWA0xqdoiMtDRx9LIosE1fO7nM94zEmeSlIH+nLDVR/qbJjvyo7DVI/ OIMTjaC5IWLh0kXVBT7OgATsJQ/siu15HViKMfT1XT2Y6urt1c+veH97g32y1I7emi6gas G+lVBq/2ikn/zgk7BB0FZH6wz27Gsyl3Oc20jFPqNaiFSpTlPy+k6HiVyZbhLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730404377; 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=hIYu7lFPqiNa74wBirEIVCn3O2C8g31iVGWlvEHz+vQ=; b=EY9Rz8p/pzNbhbhVvWy0n7vr/FQ5WBHiMocBtXrQDaDfBBXgIuDlBI3dJMMbLlBZ/1iJxb DcN0lpNEYMQFWECJekZhUc261KnE6ftOtGYR4xGKKmd/uMHguyggbWFVOvt/2rAUZtOe5y KhT0t2rNWiChGTB+2NyXOfei6m0YyLkc+f87UXLQJ8C7K4ryaaqzhCM+uF4Y+HMbDRq7iX 0J2LXXp+eq0j+BG0h1nf051WVFHw00vgmAf+nZIO6GWFBNXYlvfv1CXMeoaqshqFpuAzLR g/9zjghDwSTqAWSFDuLDhUYKHBthkwSDDzThrhY6kfUq8t15SMuvRzGbKnbDWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730404377; a=rsa-sha256; cv=none; b=LkgTgsuzS9qtIjxIZixBZ/VnZCI6Mgdmkcz0ClNOPEIJfLHp/VQNXvRnay6l3GO3fnj9y9 sbgazLOCE/qYoYTWWg8vJRkERcMMu46hwaWm6VxOsUrrNBgspZLYyzVO3EC3BrQUAd4dz5 UZp79dDf8fTEtlgTIZQ9mAIGrRl8HP0UbWJJ7HAAGEdBCkeO7+vrnUYdAjxET72W80ODa/ WlKiSJJvixeUWPNJsGnwP0vI62gmw7w+v92Za/eZKxh5+5VD9st3mZroXpDGdSkArb5P7W aopASqwVBJzc+wldfvEJJ6Mr9K+TOEFdHHd4+gPK72TSA9EJFFNSegq42JXrAw== 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 4XfZRF20ypzqBw; Thu, 31 Oct 2024 19:52:57 +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 49VJqvfM005980; Thu, 31 Oct 2024 19:52:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49VJqvhh005977; Thu, 31 Oct 2024 19:52:57 GMT (envelope-from git) Date: Thu, 31 Oct 2024 19:52:57 GMT Message-Id: <202410311952.49VJqvhh005977@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: f2e50ce0a37a - main - ignore_pci: Add a proper stub attach routine 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-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: f2e50ce0a37a40363b7ec6a165aa0b0a2e81ffc4 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f2e50ce0a37a40363b7ec6a165aa0b0a2e81ffc4 commit f2e50ce0a37a40363b7ec6a165aa0b0a2e81ffc4 Author: John Baldwin AuthorDate: 2024-10-31 19:49:27 +0000 Commit: John Baldwin CommitDate: 2024-10-31 19:49:27 +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 --- 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); +}