From nobody Sun Feb 27 23:43:29 2022 X-Original-To: dev-commits-src-all@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 25B8A19D3C75; Sun, 27 Feb 2022 23:43:30 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K6KpB0Ygdz51yT; Sun, 27 Feb 2022 23:43:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646005410; 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=lNWKanHSRSxr4X5fegx5iR/tXRwuQdNOD9ph8D5MSbw=; b=xr0e3+NLmqmWtLX3eWnwBptbqzviS32aF04p1m9+ux/0onqF2o7UwBakbHQAgsToXozgf7 AV3Tk168Y7BByjrtrodPPEw6Jq3CYrTWrFmDf+3X6LNS16RKnpSuIBHQuQhLTdvsjH+7G3 AfyCSjZJ9KHPRLYy7dc5ArCgSM1gZMobW8IXBnnHIY3/8JXWPUzwCB7UTCbWZb16ZYQ99e eExiQePH4bMN1fyP6/J0nh+1k+eZXs70oeRIXV0rTW02w1Vsuwy3mbfAmR3HEnDqT/LRld iic+y2e+UvM0yyfDGqfgnNX9Irou8uiulcnw9WHXQNE4mPzKyFsKJwQ3W50mNg== 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 E751B10D5B; Sun, 27 Feb 2022 23:43:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21RNhTnM002823; Sun, 27 Feb 2022 23:43:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21RNhTEM002822; Sun, 27 Feb 2022 23:43:29 GMT (envelope-from git) Date: Sun, 27 Feb 2022 23:43:29 GMT Message-Id: <202202272343.21RNhTEM002822@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 4b26b63371e7 - stable/13 - LinuxKPI: return value for linux_pci_probe() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4b26b63371e767d9c39e139a4df434e18986290e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646005410; 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=lNWKanHSRSxr4X5fegx5iR/tXRwuQdNOD9ph8D5MSbw=; b=q1wyis9xUwn8Z7yPEgh53FSgXAkU5ccOE6tvjktzfczS9LgeJolMGAG21M9Qve7da8oYyw KP102obccjdeu/okrsjwZRmFhm+0FmTTvaulN2CIWM9ARYFufTMhvk83UtH5TlHASyFPyk uFdrgI0ngAWHe9UOqfLmhK9StPYT/Q/BOXIG8eJLu76GaxtIPowDv4dkqmoTjFuK94pg1o 8YBdjuI3mpRRN4/AwnXv2DtWMsQHhZiuA81HpbUdTAnZGSmNCx71xRMmbHd2XCK5Y1Iym4 NvXYYoW0wkoiXRU4XOB5NKYdc9ptZvtxgYCHsOoLPXy+4TQfDEaa7G9ADyH0xg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646005410; a=rsa-sha256; cv=none; b=H5+c1KfNoveoUKDNUlLlazck7F9d8q1fXEEu4gclpctaX5tniCXysqmADL03Oh1H3r2d6k 4lQxubYxSHH5MQm+B947B6PpZWIwK1dXGE38QBKNk6WxLuNHpprx6SUD33pwNtuget35bU 7KA3sDIFJH9qa1WezAvAUyRdnzTX8REBBxrtKY+PqaRAJ8ARhuc0eEeX39pMR2k0Ka/lv5 BEhHVS3CAs+R7aqnrp/I9UC21Ni0b2ush1zM2uU8lgOtBiENQ0nCLVa1Xe7UD4CPu0LaRY /BnF1uTiU8DKu4HtNhLCA3TPqGNsdHlvPWbX53wUY14IR90eQAwz7vRR4tn6lQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=4b26b63371e767d9c39e139a4df434e18986290e commit 4b26b63371e767d9c39e139a4df434e18986290e Author: Bjoern A. Zeeb AuthorDate: 2022-01-17 00:47:13 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-27 23:41:54 +0000 LinuxKPI: return value for linux_pci_probe() In linux_pci_probe() return BUS_PROBE_DEFAULT rather than 0 (which actually is BUS_PROBE_SPECIFIC and means 'Only this driver can use this device'). Sponsored by: The FreeBSD Foundation Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D33913 (cherry picked from commit 39d8c3870752c597700c32c9dd57d421a1334611) --- sys/compat/linuxkpi/common/src/linux_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c index af79ef1d8654..06feb5107ea5 100644 --- a/sys/compat/linuxkpi/common/src/linux_pci.c +++ b/sys/compat/linuxkpi/common/src/linux_pci.c @@ -361,7 +361,7 @@ linux_pci_probe(device_t dev) if (device_get_driver(dev) != &pdrv->bsddriver) return (ENXIO); device_set_desc(dev, pdrv->name); - return (0); + return (BUS_PROBE_DEFAULT); } static int