From nobody Sun Dec 15 23:08:51 2024 X-Original-To: dev-commits-src-main@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 4YBJfW6YkLz5hR9N; Sun, 15 Dec 2024 23:08: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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBJfW3txCz4x1w; Sun, 15 Dec 2024 23:08:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734304131; 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=8xFYSdt8EOyL5OLkN6NRj0wN+kdeXupLiEjC7Rxi+/k=; b=hXIVKHUDlR53A3C6VQCXPwFbMCGNZURMmEq1Gz/BiUUlk/FyxMcoUgod9qlJswHLkGAl+9 E/qDrM8Y3yQS2ecAahmsxVhPrQic9EerVrsIwiwmCYKZIEd3v2mnZlcvl9UjYmv5Tn9lBg M27q9hOX0Z26OCSMIrobuF+n6eGd/I4mOm6kNvLYWDkwChNB5XUwqSmjQ/IkU5J/I8Ll6k Tpehc0rhw3KGoIUWQf5v8OvAL+mTw/OOto8cSkHL1zsZvfh23i+oslFQieAOTVoKzZVpvp l2aEyFZvUKCmAbCdKyMpmBDq9uOIcU37KQ9GZ5966D2SM4R/1H5XlBDqikDlRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734304131; 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=8xFYSdt8EOyL5OLkN6NRj0wN+kdeXupLiEjC7Rxi+/k=; b=c4SKTkfOfdWyWZnQYVNKAwanCDKIWOPt1GUqKdX2StuBEKf07JhpxVGb5CC/WbCERlo2xP l5y25k1HMkr8MeiGhhC/0hRFkpaFpKOgq+2ev6bZVlnpmn5bkgQ0duIixWrIoTqSCaYsER frkfRZaxSO4igl1X5wS5onbESPbvczh+Q4CY6+NbZrzutulOkwQjh5y7W/xZJDywryGd09 f5bA46EtUMg9v1Plnsvlxb1ONna8c4moNNSMQ0XCR8bUG0SWrq7UVJsugrq0PyxpOMkBmr Ce1a1zmE28Jqq7KoT5rxZyDV12iMRrcOG9vOIY2Fie12uag54hGKnSbWlGozBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734304131; a=rsa-sha256; cv=none; b=Y1h1xK0mOO+G8IH6MYg6Oea0vxwtceArL0rek8uBEmfNXfCKhI0PDY4VVK0AVDDukc6n4j TVEPSfePf3698G1TMBYU9XXZd03RC1GbZ0gQxAxFI3l8SWUYl9Km0KgTwQX4uKNZCLd8+V Lgd/uZs+2/Btdf/slyUHGrG+jAPAiztDGAgHvQFln719oUVJ6eFHIwerFR2QNv18B4WGBP yHyKqi9TfdrnKWDKTCTlQVRdpJcS+ltn5fzwPSo7Aj/T8wM0shLlmoA+TneRPZ0ocnrQet GJiyoepmUxKb53QooZBee9mLuZYkfuJR5e9TndrrtT0PosnuPI/S0L8rtNpvmQ== 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 4YBJfW3VS2zSby; Sun, 15 Dec 2024 23:08:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BFN8pR0000158; Sun, 15 Dec 2024 23:08:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BFN8px8000155; Sun, 15 Dec 2024 23:08:51 GMT (envelope-from git) Date: Sun, 15 Dec 2024 23:08:51 GMT Message-Id: <202412152308.4BFN8px8000155@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 58d1fdfaa90a - main - amd iommu: remove unused function List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 58d1fdfaa90a5365a5f951e2ac80e0fce02ca9bb Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=58d1fdfaa90a5365a5f951e2ac80e0fce02ca9bb commit 58d1fdfaa90a5365a5f951e2ac80e0fce02ca9bb Author: Konstantin Belousov AuthorDate: 2024-12-15 22:49:52 +0000 Commit: Konstantin Belousov CommitDate: 2024-12-15 22:49:52 +0000 amd iommu: remove unused function Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/x86/iommu/amd_drv.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/x86/iommu/amd_drv.c b/sys/x86/iommu/amd_drv.c index 0712a2a2225f..77c4c68765c9 100644 --- a/sys/x86/iommu/amd_drv.c +++ b/sys/x86/iommu/amd_drv.c @@ -80,12 +80,6 @@ static int amdiommu_enable = 0; static TAILQ_HEAD(, amdiommu_unit) amdiommu_units = TAILQ_HEAD_INITIALIZER(amdiommu_units); -static u_int -ivrs_info_to_unit_id(UINT32 info) -{ - return ((info & ACPI_IVHD_UNIT_ID_MASK) >> 8); -} - typedef bool (*amdiommu_itercc_t)(void *, void *); typedef bool (*amdiommu_iter40_t)(ACPI_IVRS_HARDWARE2 *, void *); typedef bool (*amdiommu_iter11_t)(ACPI_IVRS_HARDWARE2 *, void *);