From nobody Mon Apr 08 20:25:50 2024 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 4VD0wH0MLfz5HhwP; Mon, 8 Apr 2024 20:25:51 +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 4VD0wG4lTLz3xm4; Mon, 8 Apr 2024 20:25:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712607950; 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=xlcxW7ulWajVW9prRYUa5kCQ+GzCsfxH9ZSVxma1YUg=; b=NHcGh0RjNp00mLwJdYKYXKlL0xGXSJVgP2kCQFK5PyzvOQ4vS+EbcD1a+ynLLU1AH/UoOm u/bJnyX32gquvF7WeIgn3zBjyUbp9tHtpv3tcJnHZpypOQHRW2WFIMuopZ0REewL0xWAGM L2VgbAfHqPfS9VQBbZpSUK/88p6OGzqt/pD+R4gdPAJDnJkqBDFYw5Gswh5k4OnM9q66Iz zMV/z7z8UfcTXAM9AYcKyR46BQ2WeOtOkJUBOaEM9a17xbgPMuJIGGK2FMt8mhShUQYnRM FR4HGOrcAM3UA46xtNcybXqgWksLmWAgbIoUpdpDxKG0jWYjOBARZuDR/JhaBw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712607950; a=rsa-sha256; cv=none; b=yQJ8q/QTx4NPadHa37zYKa3HOhxyF4+Eiup6BsdJMD5RbC++s+x6SeTeJ6fbeiINOjnItb Lbm8PE6+nUc49f6lcJqth27xVilsKeZcR9GXzeFjR3EsoBxm9Fihg/hKw4IrrqcSNp7Dcu ce/2zuiUKLTf5ewkdsmcUqaZ5TMFEHVJuIQEcx9+FaMBg65ZjKzNFWgN+Ucb2qdJ0jG5OL KjlXCI7d+hg+OHtw3XM/ia0gOJuab0qETvHexjSD6IMNKjUdKwXFXwi6nedi5oGZQbyoPk WDFa4I/DvxIjq26QluC3NLyCNTJ+XzmpPvKMvOgSKnQfYUT4ytXGY1N+GuSWyA== 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=1712607950; 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=xlcxW7ulWajVW9prRYUa5kCQ+GzCsfxH9ZSVxma1YUg=; b=CgdkvrSUQBkuO/XiY6Gqipwb9PsU5E1oyY1LV+Nq7dtygqi+ftmJoXMVKFUSwIdHeHMdT2 nhPfaxm+bXmBdUHdDdIKHXGy/rkQoR/4sTvX6VUpHgvaGPmJ7OwHL5IT2Rera7Gt+k/Lai r4c14oirzi/XiIlMWQmCcFliX7rEZqAroB8No1nJwefAcoTd4O7oXROnRcWVfdKIpbkIaS IVFh1es6VreeWGUXvVYDAB8wIwrgayT49HifDYTODA8I10jtXGmwudrlVh3kHJmP5LOlod llGjmoDt3TQy3abqb5f5hZ3ppsThoPy4Ppa2OzdKmOTgLzPw07fLwalXheKapg== 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 4VD0wG4KZYzQQQ; Mon, 8 Apr 2024 20:25:50 +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 438KPooh039883; Mon, 8 Apr 2024 20:25:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 438KPodn039880; Mon, 8 Apr 2024 20:25:50 GMT (envelope-from git) Date: Mon, 8 Apr 2024 20:25:50 GMT Message-Id: <202404082025.438KPodn039880@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: 1910a6ca6e83 - stable/13 - acpi: Use bus_generic_alloc_resource instead of duplicating it 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1910a6ca6e83fbab26dd86082c899dbde53efcc1 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1910a6ca6e83fbab26dd86082c899dbde53efcc1 commit 1910a6ca6e83fbab26dd86082c899dbde53efcc1 Author: John Baldwin AuthorDate: 2024-02-09 18:27:45 +0000 Commit: John Baldwin CommitDate: 2024-04-08 17:53:29 +0000 acpi: Use bus_generic_alloc_resource instead of duplicating it No functional change, but it is cleaner to use the existing generic wrappers rather than KOBJ methods directly. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43686 (cherry picked from commit 1fb5445206a5ef2351c32f8bc6beb67605593caa) --- sys/dev/acpica/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 49153eedbcc0..7a5ada029ecf 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1457,7 +1457,7 @@ acpi_alloc_resource(device_t bus, device_t child, int type, int *rid, } } } else - res = BUS_ALLOC_RESOURCE(device_get_parent(bus), child, type, rid, + res = bus_generic_alloc_resource(bus, child, type, rid, start, end, count, flags); /*