From nobody Tue Oct 24 19:26:03 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 4SFMVN1pVtz4yPfL; Tue, 24 Oct 2023 19:26:04 +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 4SFMVN0RS7z4Nt3; Tue, 24 Oct 2023 19:26:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698175564; 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=SW4MenxyX03Xo6YyAG5eHdA+q2gEakba7XGGV+cBLaA=; b=aQ6CD3tIqWweq9ljaNIyS3cPQV+b9kYGxFGk1xI1rqZqgLzgimvhiEZD6Kjmol4kj5X+BX N/BmFywIxBhhKrbmjbdCFXXyZoFks5QhqrKCMJHLw/mJe3UStr/QWSHrBa25FraQxJPcBj QbBDIlzXMvin/UXrCtuJuynQ+PDVRy+JWRoZPpOyU53RBzUoLiwigxX3JMfTiH4W3W5uFt TzpaGORAh3oxz2CgAlvEkI2iKuXagy93t4blj1lP4fXijk5LFvdtys1lZtJUbjfeCtDdpN 11IPQzRnR2Af5GCHCzj8T4ueW9ntFw0aTzZMe+kzh09fx3lxdOYAUsMZGpesWA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698175564; a=rsa-sha256; cv=none; b=xW9x1O8fmR+wCtpv6kBXYBDC+vRhu+ggxTKgundaZ4WQuu1UQGdI/SEr8oHV5rKTjdXwns OYcnD1pEFFrO55t1d7t2eYIMfvLcF+NXulWDhiIs3jwPaL7zpCsqPZieAZRhdOIvzjFl5a 6K5NjOFgtV9fCMw6FxbbtchpG/3bmvmsLLDMknW+TgGJBFlRiRNiTSEC9SVF+WXqayisqx kPZ7gBN80t2DiRaNTYYQiV+QxSYIoJ5PI1tP2rsX+vmzulCmQcRmiC+WMJI1GixUt3xSzf WzywESPkeKGbQiwUXCPZ2y/7EctvPs1wA4ihXI6nm9sEDKDek+j1E0Sc/D9RoQ== 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=1698175564; 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=SW4MenxyX03Xo6YyAG5eHdA+q2gEakba7XGGV+cBLaA=; b=WwSd1q2AC9V1aIEzMuNvrQs7rI/zv1V45uEN8X/CwAb8DIoVX998nBCmiGfAbEyBRzG8TD nhholeLrrT34EwB74g7Xx53Ta1oEUhLJNdRd+j4P3geFbH4PkdLACLyFpbhiUeIm469X4O Z2UTivnkSZMFbsk3RzvruRWizlgcaW9j9U0KNaoAW5LRw5xXFNUlTemFGNb9c3Mf5GW65W PGqGsr/sTYJqWuFmFgEYJlMYKMj7wiw+5x2vbeIzhNjWeCaU1HoE7NCW/ceUjwKlrZWzFD LUTDC04SJVOkmi+viYYTc/brqQYDNMISqOHBUwxgs7E+td72A/ieb8wLpZO5KQ== 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 4SFMVM6C5WzbFD; Tue, 24 Oct 2023 19:26:03 +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 39OJQ3SB074828; Tue, 24 Oct 2023 19:26:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39OJQ3ED074825; Tue, 24 Oct 2023 19:26:03 GMT (envelope-from git) Date: Tue, 24 Oct 2023 19:26:03 GMT Message-Id: <202310241926.39OJQ3ED074825@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: cb63a64b8c83 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: cb63a64b8c833930628eb4a93f01956ef6e49d7c Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=cb63a64b8c833930628eb4a93f01956ef6e49d7c commit cb63a64b8c833930628eb4a93f01956ef6e49d7c Author: John Baldwin AuthorDate: 2023-10-20 21:53:49 +0000 Commit: John Baldwin CommitDate: 2023-10-24 19:19:59 +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 02e3a0be5956..a66ca1199af7 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -288,18 +288,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 @@ -497,7 +497,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; @@ -517,7 +517,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 "