Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2777087pxp; Mon, 14 Mar 2022 04:54:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTue9hX59IKQYwvGe1An4N3DLoLkITaQ/i0S/Ecs0Bp59grE/sb9PhVY2WAAhz2nA+u6Cz X-Received: by 2002:aa7:830d:0:b0:4f6:ad6b:5757 with SMTP id bk13-20020aa7830d000000b004f6ad6b5757mr23477698pfb.52.1647258891395; Mon, 14 Mar 2022 04:54:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647258891; cv=none; d=google.com; s=arc-20160816; b=WLLjz59+j8FUnfXam1FuaegeYiXx4JaE0P+PF5eu0i68+k45NtbqbPccL/vKYX81K5 xvfx4N2ilUSFkjdqaVoyi2geRsP3Eh2+X1FAM8ifgmyLsCsZl0Owf5ASKr8g+3I256xN PyuMMNwrF6DFbblpw0FGhvfau7jSzlIH93HX6HQNpcEejUWdeBp+b7TwUD+BtRqKGYn/ P2O2nVl5pu8a6SRzCieFj7jVRqdn3bQCzpl6xOam0efO9Ic3nRlU622xgNFgDGiE6D5D mBad6Hgm+Bq82l145nVXKnLRQ5424LluvnKu9VQOa53tXx/OeZRSsG6OvJR32iuD/piX kGwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=lbX4guq10C4WbgjPFGR3cSWHkRW9v5h6QvXycrYx3bs=; b=iWP9bp4UQNlfWReXxzOvQAvx7J963V29IpkTPLn8H9r32DPlbNULdLb9xCT6I+kz4V rH8fX2ygv1j2r3H8GPt3QSlYJCh+lBjVy9KnlrEFZ3c/f3zQ0vV668Dq+LlTnBy8arFA e2MmmcNE51cQ+bm5OKl7iKTVWRD5+WFrRvsb5s0MUFyXXnjTRQ3xtARbDMHKzgXzVIdL 72Ua6//kEZht6GdIFEhSpsEbKfNs/Y4NECMQz3lAVmMLVl9z5uqt7+19pH37koQCTjs/ YoBRLelzjLH+QNVLys+DtOIfUrFubRRv++9/meavB+p7kmHJKeS45u+K1GPT0jGlduMe LY0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=W6Sejkfz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=uM1DMt1U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o2-20020a170902d4c200b00152fd5078f1si16540425plg.223.2022.03.14.04.54.39; Mon, 14 Mar 2022 04:54:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=W6Sejkfz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=uM1DMt1U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238093AbiCNJaD (ORCPT + 99 others); Mon, 14 Mar 2022 05:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238011AbiCNJ3f (ORCPT ); Mon, 14 Mar 2022 05:29:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00E343527A; Mon, 14 Mar 2022 02:28:26 -0700 (PDT) Date: Mon, 14 Mar 2022 09:28:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1647250104; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references; bh=lbX4guq10C4WbgjPFGR3cSWHkRW9v5h6QvXycrYx3bs=; b=W6SejkfzyqzbYt4BGVcAuC0bxVydl1mxspI84A48zhyJ/WOiCQqDEXTovJJd4qnG9iLYtt c9w9O6N3MplRfOwOkIk8/mYgZ/z2NNL3auRFMkeeOnjkcK57Qy1/rz9RtLNo82K3fWEnys 75IIdEeTyGLeMTPJlfJ3ftah9R0mQhPS7p5+B6l7nKs/aPps0XiZ520ghC+Za5lvzu1jCn zc3vraDt1qpAjeRFdFSR0b5g18ugw1quptDPrtx5pMdzYrYNQ/C7BdkN8DIem3+3ZrMx5G 0Vd8WFqhav333fx3qISF0utc4vrzPNzp1oA9dTDyMRR8LbvactM7+ckTu+B5yA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1647250104; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references; bh=lbX4guq10C4WbgjPFGR3cSWHkRW9v5h6QvXycrYx3bs=; b=uM1DMt1UNn6wElWYAix9Ejr5BY/sH5sV95dYVFB3V9DDtvw5YbNX0VB5gQ5uhC2FGnKgRg 0p+lJ2h5L7p17xCw== From: "tip-bot2 for Nathan Chancellor" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/imx-tpm: Move tpm_read_sched_clock() under CONFIG_ARM Cc: Nathan Chancellor , Peng Fan , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220303184212.2356245-1-nathan@kernel.org> References: <20220303184212.2356245-1-nathan@kernel.org> MIME-Version: 1.0 Message-ID: <164725010341.16921.1444597331705749005.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: bf127df3cceada8693888fc86a3121c38ef25701 Gitweb: https://git.kernel.org/tip/bf127df3cceada8693888fc86a3121c38ef25701 Author: Nathan Chancellor AuthorDate: Thu, 03 Mar 2022 11:42:12 -07:00 Committer: Daniel Lezcano CommitterDate: Mon, 07 Mar 2022 18:27:22 +01:00 clocksource/drivers/imx-tpm: Move tpm_read_sched_clock() under CONFIG_ARM 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 Link: https://lore.kernel.org/r/20220303184212.2356245-1-nathan@kernel.org Signed-off-by: Daniel Lezcano --- 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 60cefc2..bd64a8a 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)