From patchwork Sat Mar 5 20:56:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 12770469 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 60F0DC433F5 for ; Sat, 5 Mar 2022 20:57:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4kZazk5flhLlpHs4N1wublZDizBfrVU6zZDFLno8xGY=; b=jLz5HPUmx9VNcl KlFN8gWrHmW1wY9lFhwmGjaG4IxQW5SBkZtw47J8v4gi12DN8tOkWcuUyTvycRsjbJYBHruFQmO4y R7koY4HvzaF+0iwB+yO6Vv4/LQcMd/Dt9qB0/BcG4SYdLWKZC33Ug/mVT/+7J8TsfH/1FifdC5lRX yAJrdcxhvrtIh/oPdYw/2N50CzF5JUe37j71rO2MfeUVCFeuoPgKLXEJIUOMdli4Fne/EpqrQDkhD 3ZCapAVh1DINoMHjjc4aLFTdZhLsoDHa4FaeZO/segFpgA62DYoQDblLumWWqbrnoL9gJNXdw6tjo pURhbIQymlp7F4yqp8uA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQbRs-00Dph7-JA; Sat, 05 Mar 2022 20:56:20 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQbRp-00DpfA-0J for linux-arm-kernel@lists.infradead.org; Sat, 05 Mar 2022 20:56:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646513772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e2EYH75BVmIbRhMybWcunmFifuSH0lEu5dUIGZ1WvCM=; b=IbpIcT9kd+YTofzIA3knw2+XkTTvpI1laNHi51WLVK5DusPimxi9QCaa230DIX9KinEmcS e9OXiMoZnb2SgZMyliRfW92PMaTQmUkxBuQWKSQ13m60mIt2wy9MUZa15eKcQoAoJJmcAK a1xg4Y7Uh8pcDKsmS40lKBbvQz+3qpA= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-397-ZrtWzsyvMnONwCx0vPVlQQ-1; Sat, 05 Mar 2022 15:56:11 -0500 X-MC-Unique: ZrtWzsyvMnONwCx0vPVlQQ-1 Received: by mail-qt1-f200.google.com with SMTP id p16-20020ac87410000000b002dde63e978cso9008872qtq.7 for ; Sat, 05 Mar 2022 12:56:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=e2EYH75BVmIbRhMybWcunmFifuSH0lEu5dUIGZ1WvCM=; b=gQ/ZD98nMLBAxntsGc4WCrfJGDDg+Pn8S+VhoHCgu8xT/BuEbm2TZxldcyF/cLKoT4 32D/fAcx2a4m1yJxq+qe2NhhwpxdgqLSE8UDILhwUW/oHSSGUFXpNTxfvQIkG/n7e1Y1 BYSABiLobAFh27vvtQOt62+EFqno6dSoF6LY7g5rUy7zg/BkxhjGgkkGJoJJhwxLig10 wDo3Qaz67XwKfp5ML8RBSY5C2+tOwWIR1fSEmuAM2q41SoJAjs5O9Q1scaYqcFnzIw4s jfrqG8vW306yvMd47yaJ+tsGf+CxPjhNArd9Y6dETHvrByTp/ONHnkl/ftN/TRS4yyWd 1OWw== X-Gm-Message-State: AOAM531D1extZvzILGam0EHvq/QbRV6SxvKEkA7oGRNmwdihVJ/aSmTY wBmXjs7ONmiU2T4+WkoYp+97IF0T+ite8ZC8dqwBgLagzeFZvXCqD6hPq9goUg6/pKgV68vzEmG 1tgrst6DkSWmA9NwFIfF+6BZnH4HUyQnqRbY= X-Received: by 2002:a05:622a:2cb:b0:2df:f334:c892 with SMTP id a11-20020a05622a02cb00b002dff334c892mr4196462qtx.434.1646513770589; Sat, 05 Mar 2022 12:56:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxj73gLFo//3TCHm3Z930BC1F7OmYMKClBEjNJNDMR5NVGWqWD3Q63p2CMbPiFF9mel4Lxivg== X-Received: by 2002:a05:622a:2cb:b0:2df:f334:c892 with SMTP id a11-20020a05622a02cb00b002dff334c892mr4196449qtx.434.1646513770323; Sat, 05 Mar 2022 12:56:10 -0800 (PST) Received: from localhost.localdomain.com (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id m10-20020a05622a054a00b002e049ff99f2sm4774777qtx.7.2022.03.05.12.56.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Mar 2022 12:56:09 -0800 (PST) From: trix@redhat.com To: daniel.lezcano@linaro.org, tglx@linutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tom Rix Subject: [PATCH] clocksource/timer-imx-tpm: define tpm_read_sched_clock() conditionally for arm Date: Sat, 5 Mar 2022 12:56:05 -0800 Message-Id: <20220305205605.707937-1-trix@redhat.com> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220305_125617_373776_6F0D55B2 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Tom Rix On aarch64 allyesconfig there is this error timer-imx-tpm.c:78:20: error: 'tpm_read_sched_clock' defined but not used [-Werror=unused-function] 78 | static u64 notrace tpm_read_sched_clock(void) | ^~~~~~~~~~~~~~~~~~~~ tpm_read_sched_clock() is only used conditionally for arm. So also define conditionally for arm. Signed-off-by: Tom Rix --- drivers/clocksource/timer-imx-tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-imx-tpm.c b/drivers/clocksource/timer-imx-tpm.c index 60cefc247b715..bd64a8a8427f3 100644 --- a/drivers/clocksource/timer-imx-tpm.c +++ b/drivers/clocksource/timer-imx-tpm.c @@ -73,12 +73,12 @@ static unsigned long tpm_read_current_timer(void) { return tpm_read_counter(); } -#endif static u64 notrace tpm_read_sched_clock(void) { return tpm_read_counter(); } +#endif static int tpm_set_next_event(unsigned long delta, struct clock_event_device *evt)