From nobody Tue Oct 24 19:25:59 2023 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 4SFMVJ0MHBz4yPnN; Tue, 24 Oct 2023 19:26:00 +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 4SFMVH6VMDz4NHW; Tue, 24 Oct 2023 19:25:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698175559; 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=3DPYdP3LGidyCpW0V6D21WU8iTWy4tnAc76RJhlmfD0=; b=nF7q8hF1jU3y+n6PWa2DThrBrnPyAejemh/05YRZ1hgLZzOd2CWQqlwLGinYTQ57cI2ucg O7ZYmlKr9g+VqrOpxtPUTwNc4NjbxN310p13T5F2zg6ah1R/LI5hGhcLsx8eSWcQ73mINL g+Z27p1CokfE2+PVfzP6ie1cMnP36MD9dZJ0kaC3voMUqR416RWkiUX0HHi2/bxXHWij1u snAOxNz7kXbai94KWjlWr11QN+Tbw307yCgW92BwXogY7G5KhdGCNcAPniHk6BLM8BHenK lwCSSZa1nwYo//fZzaMnc6UyiSSRD4DjcvbYS65vDx4bMHBUj917nsaMfHIIYQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698175559; a=rsa-sha256; cv=none; b=Fuzg6rQPuGUUyar1qEi3TQQcfmNqlP493bbziCtBwNVHCgKiOd4Ai7Vdno3FQMtuIvA0fC PwYDuMJCeCUAJuryEXYNThZyc3vxqy3mtN7pFAfrHd/64zADqRjwOTTt+JBqCnnrjcJwKz T63QGSZ/GU6O7try4wSgq63eZOz7iPIcXygDWaUmOny10J0qwL03wZ6OOqtvcbtQw72F6s iucT+kMSI4F50r0dO+B8xsWKKtwISCOGcsxgK5OZwMVSre+eQkeHv/Iml5ACT6GlmiECaN wD+thvrvEYB0KfU71Jew8iwmiuYfNwqgzcfzBakkXcPKnSWO3vKaepm5YIn4nA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698175559; 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=3DPYdP3LGidyCpW0V6D21WU8iTWy4tnAc76RJhlmfD0=; b=hYM/Eoe2j52Qe9uXBSurwMTH0NHMyPcwUUniijq5O11KUY8aU7TIcLyFv10snzwHDfdN3k zetytrPaV/dqrYDSrxQMvnateDs1D5mxLXE4+WtOSkXQXdQ5bElnlp1cfAhepZ4gmko9rN r5juxwTRf9ucG/XNfy20SHVejY/bQUKslLrimW5cMGtVBIy3IkTquhWYcz/rLf/CVn/sJq +KGJS5SxF+1Aph4F3obEQ4a0QlrliQiit+OiTSmihkQ+WL7mQOymNWwttX/JFzI0KbLkm4 wl8+i5OsIWjtXiPLF4PDCkNCLRk8b0ilXSlBwDEIELCpgK1s3EmhVW0SJu92rw== 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 4SFMVH5JNRzbFC; Tue, 24 Oct 2023 19:25:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39OJPxNp074588; Tue, 24 Oct 2023 19:25:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39OJPxYb074585; Tue, 24 Oct 2023 19:25:59 GMT (envelope-from git) Date: Tue, 24 Oct 2023 19:25:59 GMT Message-Id: <202310241925.39OJPxYb074585@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: c4dfacd0b3c3 - stable/13 - acpi_pcib: Rename decoded_bus_range to get_decoded_bus_range 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: 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: c4dfacd0b3c3203beb0609f05ddecb8dab7b09a2 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c4dfacd0b3c3203beb0609f05ddecb8dab7b09a2 commit c4dfacd0b3c3203beb0609f05ddecb8dab7b09a2 Author: John Baldwin AuthorDate: 2023-10-20 21:53:49 +0000 Commit: John Baldwin CommitDate: 2023-10-24 19:20:02 +0000 acpi_pcib: Rename decoded_bus_range to get_decoded_bus_range While here, change the return value to bool. Discussed by: gibbs (cherry picked from commit f6c2774fe415f3b79c551b8075c159d6a7d4d0bf) --- sys/dev/acpica/acpi_pcib_acpi.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index c3fbd25c3929..e2b3bfa6374d 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -290,18 +290,18 @@ acpi_pcib_producer_handler(ACPI_RESOURCE *res, void *context) #endif #if defined(NEW_PCIB) && defined(PCI_RES_BUS) -static int -decoded_bus_range(struct acpi_hpcib_softc *sc, rman_res_t *startp, +static bool +get_decoded_bus_range(struct acpi_hpcib_softc *sc, rman_res_t *startp, rman_res_t *endp) { struct resource_list_entry *rle; rle = resource_list_find(&sc->ap_host_res.hr_rl, PCI_RES_BUS, 0); if (rle == NULL) - return (ENXIO); + return (false); *startp = rle->start; *endp = rle->end; - return (0); + return (true); } #endif @@ -498,7 +498,7 @@ acpi_pcib_acpi_attach(device_t dev) * If we have a region of bus numbers, use the first * number for our bus. */ - if (decoded_bus_range(sc, &start, &end) == 0) + if (get_decoded_bus_range(sc, &start, &end)) sc->ap_bus = start; else { rid = 0; @@ -518,7 +518,7 @@ acpi_pcib_acpi_attach(device_t dev) * If there is a decoded bus range, assume the bus number is * the first value in the range. Warn if _BBN doesn't match. */ - if (decoded_bus_range(sc, &start, &end) == 0) { + if (get_decoded_bus_range(sc, &start, &end)) { if (sc->ap_bus != start) { device_printf(dev, "WARNING: BIOS configured bus number (%d) is "