From patchwork Thu Mar 3 18:42:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 12767939 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 8EA37C433F5 for ; Thu, 3 Mar 2022 18:45:39 +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=vZp4A5bvFEzsJg3nkdCefCy9o7VgQ7whA1C3z37w6Xk=; b=FfKe0VFJMVm5x7 hpdh7hBRaVB/OXYzUIswcu8Au+Tiw4OH55Sq7FyYUsuyV21nuJ3Fq6bitplvFpc/2G8JlfJ8rh+Jy FV9YAV7vVz0iWm3Omlupx5RkvJpG0rgmDGg2bS5j6TqXnHsOjXySjGetdafBHGwoPBTOvfpqPykFb Uqi1ZdVRbixxaggHkEZM9MToAnytE5edzSzTRrjddfqp6m6c0oO7BlhzrOJXyMB8W3Z4W7qS57Sl4 EOb65yLu4quouVXhSpqqeeBkBJtaXlY70Lor68UsssIDENRBBVwJlP0Y9f0VBOULdR0M6NoJM332Y xYHxkWGr6Rxqc7CxnfKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPqRI-007Uv1-F7; Thu, 03 Mar 2022 18:44:36 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPqRF-007Ut3-3G for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 18:44:34 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 76446B8267B; Thu, 3 Mar 2022 18:44:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66B57C004E1; Thu, 3 Mar 2022 18:44:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646333065; bh=3O+xj138CKdSRUjGT/Vt82Xrl+Z2mQQ8p+Q3rCPCPbQ=; h=From:To:Cc:Subject:Date:From; b=BfUHnONYl3vtbDnVUTjjryKV4FphJ1R8XnmmZNdDzDZm1R44ZTNl8qHI5z7iuBhX2 5ievjiz0wLG+6qyX0aZLRlasloKj9nHdgdHSWvaPoDrVF2F905TQ3+bPJq89QAyw86 +fjnbUpDpOKlqLi37JbZB4jYs+IGG/ydVxV8rE8VrJG4Qfdxk9X9jIBUP8JojXGFF/ fuGZXY1x4gggZk4RkkGb2W38+kVZMT6JQ/XaiVmozAUqLaKpRD7HHmcaizvaeWZyzj dj+6xRAVZXFflJRnqXiZ5lnGvOmaCVVDuezxp7y0DGc91Kyb33U3/Aqxpp03nOSqfc F3voKhLEp+Esg== From: Nathan Chancellor To: Daniel Lezcano , Thomas Gleixner Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Peng Fan , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, patches@lists.linux.dev, Nathan Chancellor Subject: [PATCH -next] clocksource/drivers/imx-tpm: Move tpm_read_sched_clock() under CONFIG_ARM Date: Thu, 3 Mar 2022 11:42:12 -0700 Message-Id: <20220303184212.2356245-1-nathan@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220303_104433_311089_424D2D28 X-CRM114-Status: GOOD ( 13.29 ) 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 When building this driver for an architecture other than ARCH=arm: drivers/clocksource/timer-imx-tpm.c:78:20: error: unused function 'tpm_read_sched_clock' [-Werror,-Wunused-function] static u64 notrace tpm_read_sched_clock(void) ^ 1 error generated. Move the function definition under the existing CONFIG_ARM section so there is no more warning. Fixes: 10720e120e2b ("clocksource/drivers/imx-tpm: Exclude sched clock for ARM64") Signed-off-by: Nathan Chancellor Reviewed-by: Peng Fan --- drivers/clocksource/timer-imx-tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: b22a1c270f533e30bc5d5d4cab6199a2cbb07b07 diff --git a/drivers/clocksource/timer-imx-tpm.c b/drivers/clocksource/timer-imx-tpm.c index 60cefc247b71..bd64a8a8427f 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)