From nobody Fri Feb 09 18:44:24 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 4TWjSS46kLz5B8G6; Fri, 9 Feb 2024 18:44:24 +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 4TWjSS2Dczz4fhj; Fri, 9 Feb 2024 18:44:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707504264; 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=4niZeUCMPk2NBXoc2Sid6ThTu13p55OrKg4Er6b2G7I=; b=n+xmC7psiKj/+JZWCBm0yOaOrWGEczBQmem3drsk0MwsYMieQDjlTAvf75MUxMm/MvWVXg HddiqVD+bqrDiGDQnBF7VOjlqmwB9JttxW/zdA0oNiXLKZP6+oBJZHfh4W5HIh72wSNGvp RREYjTtnLyL+8rMcklldza3FCCKvTCEROvg0FVwnYMZvY+8CVoB3diajBgXfQZKRn92FsV BFZptbWR231lKGmQt11pzwOxyPZKVQV9yGG2+S4vrqj2EwocmxKd9UiohmhjWPRoDT/U0a S9a+6eg/cifgu5pdPlMdviei//zXXULi5nYFgnrFEol1K++ZFfw8R/3i7oKjcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707504264; 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=4niZeUCMPk2NBXoc2Sid6ThTu13p55OrKg4Er6b2G7I=; b=Cv6brSCU0qK5ySpaJA2Rfoohf+W7xTQv38e5qSwJ96sILrpPY5sKZcj58LANUdI5PVci+4 fs2DCISPWS009Ekf7iI13UoB68ZfbL1vZZIjBiN0wR1ik0LE9HmWeO3zo7lJHY0L9UqnT0 7A+DL3oePSwTCOJBfIakTjvlj0WMTBnexhxwRyeZ0zGzanxXPTHNgpP0QW4VvoYOYC8vyG /Sk2y8JXlHpx14fTQAPCvUerjVmFF5EKHDtJvJECnAZvAWEC5vKyRaENMTjuSyvv+TeO2e gj3h+zsrcrNVqA4jjH6Txbu0kIBL50lzNfwhH24px7NtWx634YOdlG7XGqH8/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707504264; a=rsa-sha256; cv=none; b=NdMJU2pnOMc6qiUUTpWFmb+qm5Ti1oXCyFjKHPc6G8737/trBkfonFD0HeVovJLF0hyZsd 1IsSjNXED8AllbNTjm58LoJsns7qGonCd4Jd3V8I+UgG+EgRTC1Prp1BEE4qfH/yUS3vvT igVHH3rzQnJgbyZrsLfMoWvDCxiAR+S+Bi74E8lVfXliAfsp7VxPctG2QmpcFJ1pK0JYn2 dPLOJ2mVKC4DFZ0cfWHwjUGniDvXDVwGgKJEC9pU/QgYjk+8Z4Tv7V7wjYC68Pn2gnqaVn BbaGILpbN1FUMTEkth+f6uwkf/b3G88SUThHX+ZTEuYDOrojQUR5yAbVkQBu9g== 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 4TWjSS1CWzzkwG; Fri, 9 Feb 2024 18:44:24 +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 419IiOsS054775; Fri, 9 Feb 2024 18:44:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 419IiOEP054772; Fri, 9 Feb 2024 18:44:24 GMT (envelope-from git) Date: Fri, 9 Feb 2024 18:44:24 GMT Message-Id: <202402091844.419IiOEP054772@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: 1fb5445206a5 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 1fb5445206a5ef2351c32f8bc6beb67605593caa Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1fb5445206a5ef2351c32f8bc6beb67605593caa commit 1fb5445206a5ef2351c32f8bc6beb67605593caa Author: John Baldwin AuthorDate: 2024-02-09 18:27:45 +0000 Commit: John Baldwin CommitDate: 2024-02-09 18:27:45 +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 --- 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 b2a337b3487d..2899929c8e6b 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1533,7 +1533,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); /*