Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4099992ybv; Tue, 25 Feb 2020 13:12:02 -0800 (PST) X-Google-Smtp-Source: APXvYqw+oxO2v/jktE6a0+Xh/e0xeSLJ4Qd7awFMNjEc88gkO0pddYpuPHO5otOrgq9RIf5WWISK X-Received: by 2002:aca:c692:: with SMTP id w140mr676254oif.139.1582665121951; Tue, 25 Feb 2020 13:12:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582665121; cv=none; d=google.com; s=arc-20160816; b=H8DE+VuiKoyLrM5juqO7Od2MEOFbkrm40xua3zag64ni4tY3DBXTf8uiHeut2Pow4P NRGnqqTNK+pDpSu8E7IbKZhU5J3NFspCSRPhBEnKQi21TXW2rHwIDg4OKLJmU1N0xwiP wSVwyHBExEi6e9w06PpR5dteJeu4fjUAnQURTx1vUbk1+OVU08kfExORG0WwGNEwp2as 4ZBNOdDHMa/L4YaXrruwCPzSMxb8OWl2t0UjFpM/7WOUwGVZT8+0M4hqjDTSd7+E+jA5 L8AfdIuimhMCP1tFHlX5lG9UVBNJUioZW9sGeEOQXki4YS+in6ApdgU6hdsFOfWlJ6gy pE3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=VUIJHIvW7LSqK/603MkVI0jm9biSEe9VIB1oRaTmLH8=; b=GKb2bDLmQP4D0lAL+uLWTaeJQHnRZltuayKvxE/0Fp43jHRERgV86CPu60Q5hOYJbw 1qM+qVidwaz8jz6ERK6cF5tkj/QB8Qk6c6HrKqLAp6KlrVT5zz/IA/Xz2/sB6TpGsiJj 3n/od26370MoMtu3Xraumlb+Ni6QvYUD91f+S/xhqRj79XdCtvdB4bmgKYJFB7ciWLGr hsepUgtc1YfmUL4KlhGreUnjafR2T09AvFwWce7h37uC2I9cONmCOkS7WSOLMMNFjcSC xevROEyU4lwS1cL+GDLW6bQ/eoBviAiqyjgsulRkcqCQkBCDPoR1HnHjMbdtFp/cI3VO Hhuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a194si182225oib.227.2020.02.25.13.11.49; Tue, 25 Feb 2020 13:12:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728943AbgBYVLb convert rfc822-to-8bit (ORCPT + 99 others); Tue, 25 Feb 2020 16:11:31 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:54641 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgBYVLb (ORCPT ); Tue, 25 Feb 2020 16:11:31 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1j6hUE-0002y5-DK; Tue, 25 Feb 2020 22:11:26 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 0F93C1C2154; Tue, 25 Feb 2020 22:11:26 +0100 (CET) Date: Tue, 25 Feb 2020 21:11:25 -0000 From: "tip-bot2 for Vincenzo Frascino" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/arm_arch_timer: Fix vDSO clockmode when vDSO disabled Cc: Marek Szyprowski , Vincenzo Frascino , Thomas Gleixner , x86 , LKML In-Reply-To: <20200224151552.57274-1-vincenzo.frascino@arm.com> References: <20200224151552.57274-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Message-ID: <158266508571.28353.6918690655943094425.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org 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: a67de48b3075cbb6ec030205d7b78981def6596d Gitweb: https://git.kernel.org/tip/a67de48b3075cbb6ec030205d7b78981def6596d Author: Vincenzo Frascino AuthorDate: Mon, 24 Feb 2020 15:15:52 Committer: Thomas Gleixner CommitterDate: Tue, 25 Feb 2020 22:08:39 +01:00 clocksource/drivers/arm_arch_timer: Fix vDSO clockmode when vDSO disabled The arm_arch_timer requires VDSO_CLOCKMODE_ARCHTIMER to be defined to compile correctly. On ARM the vDSO can be disabled and when this is the case the compilation ends prematurely with an error: $ make ARCH=arm multi_v7_defconfig $ ./scripts/config -d VDSO $ make drivers/clocksource/arm_arch_timer.c:73:44: error: ‘VDSO_CLOCKMODE_ARCHTIMER’ undeclared here (not in a function) static enum vdso_clock_mode vdso_default = VDSO_CLOCKMODE_ARCHTIMER; Make the usage of VDSO_CLOCKMODE_ARCHTIMER depend on the VDSO enablement and initialize the vdso clockmode variable with VDSO_CLOCKMODE_NONE otherwise. [ tglx: Match changelog and patch content. ] Fixes: 5e3c6a312a09 ("ARM/arm64: vdso: Use common vdso clock mode storage") Reported-by: Marek Szyprowski Signed-off-by: Vincenzo Frascino Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/20200224151552.57274-1-vincenzo.frascino@arm.com --- drivers/clocksource/arm_arch_timer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index ee2420d..d53f4c7 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -69,7 +69,11 @@ static enum arch_timer_ppi_nr arch_timer_uses_ppi = ARCH_TIMER_VIRT_PPI; static bool arch_timer_c3stop; static bool arch_timer_mem_use_virtual; static bool arch_counter_suspend_stop; +#ifdef CONFIG_GENERIC_GETTIMEOFDAY static enum vdso_clock_mode vdso_default = VDSO_CLOCKMODE_ARCHTIMER; +#else +static enum vdso_clock_mode vdso_default = VDSO_CLOCKMODE_NONE; +#endif /* CONFIG_GENERIC_GETTIMEOFDAY */ static cpumask_t evtstrm_available = CPU_MASK_NONE; static bool evtstrm_enable = IS_ENABLED(CONFIG_ARM_ARCH_TIMER_EVTSTREAM);