From nobody Mon Sep 09 13:16:02 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 4X2S5G2M8Zz5WMXy; Mon, 09 Sep 2024 13:16:02 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X2S5G1tRRz4JjC; Mon, 9 Sep 2024 13:16:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725887762; 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=Z98lueAYVf2lNzZHVFwlEevLd3jxPg2vSkVlfuwPNw4=; b=Vr2mxDwKpuoVSEtsSgaduwT0P0JD7m7ywny06rUDbAFGCklOjZEXjGxIvQjt5+PAwEIqq4 GpMKDJvabaKHH9OAIaENpCVN0qti4ErIkIm5zRds6NDP7N/M2sX9ntYtTfLbWpyozpv2Gw QR7mPk6hFbEJLClui7coCfy/JeIDoCOVLRjmmSLkVQiw3S3dwjaJDST+M11M7Fhy3X4Phf xFX5znmugoBiUnw9+5RRSgIIEb4TzruPdazIXRSqFJYzf6cgGq6q49MhOHB9Z7YM10P95l SiYLiQPFzfnCBJSVmmnqL0t4NKUTz6unWVAoeEGLZ7dGMC5PNXTgwN64uDVQKA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725887762; a=rsa-sha256; cv=none; b=N6Xb7YbSTrHd+wC+Y9GVvK5EaHIQeAr2bfoBB1GhS6CRHVn6Kr+G4IwnPw54p84xiHj71E 74CTyXHOqsmka0n85k0wfjMK3XBcKeyb1T6ieaOJiZP+2Iwmy5trs/NRfbhGH3iqArmOXf zfEyHT54rf4VhCiFklfmC2jTogdcQRq8xBJx62gvNTnViUbPI40ap4d26KlDokjfMT8ezp scvNGxSlxuZqnWA+KWBHOXQnhjlCCZM/e0MOKXOoTcyNLxy7WPy93DSzIRni69PVivoNSo 4GZmVtfIjnmfu+W/eQHzaP/AceL8Ae5c2QJFy4tCmHJGv3CFJ+sOC3NyGIBvcA== 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=1725887762; 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=Z98lueAYVf2lNzZHVFwlEevLd3jxPg2vSkVlfuwPNw4=; b=dL/wUnsemNtgsbRrQn9lExMRbPQC3Spq7pE7aXMjyZ8aFJvObqwxmTXYQs14dJJU0tnsXK bBakxJdfq6HvrnPR2p3Cnm+Ag4IzZlvmXVwQb4rkJAuFvh5/jSEA3qpNi8CWo/be4AqhFr Bjq9xt+e6+iD+FYj3z0oW7iTPrg7QtmzazWwpMp2GRLr+VaQRP4BcXtR9Bsm/XszLsYLPv FcrqWuVofU00QPBV9nP6PyXgfMBujqEYRTqZz/W6yNOkVYfMQI4w+NWeFEgCZkvkbHs3P5 Qy+0Mjy/I+vVloqJe5C6dFp8R7+w8QSI0Mb2Vlh9Wo3ANHy2Vwc1bvEkvBWxsA== 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 4X2S5G17qDz14f9; Mon, 9 Sep 2024 13:16:02 +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 489DG2KC051330; Mon, 9 Sep 2024 13:16:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 489DG2cq051327; Mon, 9 Sep 2024 13:16:02 GMT (envelope-from git) Date: Mon, 9 Sep 2024 13:16:02 GMT Message-Id: <202409091316.489DG2cq051327@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 31ca046e2250 - main - arm: Only define get_cntxct_a64_unstable when used 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 31ca046e2250e30cb92a546ecad7ec07e4b016ca Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=31ca046e2250e30cb92a546ecad7ec07e4b016ca commit 31ca046e2250e30cb92a546ecad7ec07e4b016ca Author: Andrew Turner AuthorDate: 2024-09-09 13:15:39 +0000 Commit: Andrew Turner CommitDate: 2024-09-09 13:15:39 +0000 arm: Only define get_cntxct_a64_unstable when used When building an ACPI only kernel get_cntxct_a64_unstable in the Arm generic tiner driver is unused. Add an #ifdef FDT check around it. Sponsored by: Arm Ltd --- sys/arm/arm/generic_timer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arm/arm/generic_timer.c b/sys/arm/arm/generic_timer.c index d3e264527a7f..9b5f0f52368b 100644 --- a/sys/arm/arm/generic_timer.c +++ b/sys/arm/arm/generic_timer.c @@ -187,6 +187,7 @@ get_freq(void) return (get_el0(cntfrq)); } +#ifdef FDT static uint64_t get_cntxct_a64_unstable(bool physical) { @@ -208,6 +209,7 @@ get_cntxct_a64_unstable(bool physical) return (val); } +#endif static uint64_t get_cntxct(bool physical)