Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp558233ybl; Thu, 15 Aug 2019 23:54:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4+t1L1oV0c+HU1MhMEkdgbSOibxBWG3qocGPCX5tb1m89e7LZie2Cy2/YKbsPWENqsSwg X-Received: by 2002:a17:90a:a611:: with SMTP id c17mr5927146pjq.17.1565938446434; Thu, 15 Aug 2019 23:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565938446; cv=none; d=google.com; s=arc-20160816; b=0HNs7jUtk4v6lzY79TfaSAWI3jrYofS90MfPg/nbzZnEsZwPB03+5FOa4kyCIfV26a uL/em1HAFXEWt1iZmRtRbHKOH+BtxdP9zIvxw4F1Bk8pl5xCrh1kCFkReVya3ZH4qghi +SZevemZUJ1pyx6j1JHXKivxmMylMfMU6by3VV3y18u6NX8alz4bq4x4d7Rd2FQrIuru DqsP9eI+oLTCKZAU4+GeE4h9fxzdFcerXy9zD5a4Mv9p0ztKEGJ3wHM3vC62gVFDCEfd dDaZk/rvZXqgQK9dNI56LnumNtqev2xgMWPbpWYeBfKjDaMlOakq8XM8g2NX7H5z0HUZ olog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XGDxRJXRDAYSGkBgoHrcdJKPBcXv/0/xhS9n/WVSbHI=; b=W5N02WOs1L1psfhzJxEgABt99/m84Gq0cY5DGjLRlfxhxVEHvURGPK6/HhUgL3zG+H HEnJagChlXtOD8z60/RPeCpBRJpFHzyKmUhYtNUL3OBJYv7zzQ7WmaeNqgNVrNlJ+uc7 H2/htX7Bwa18qmfsZNDYFgIiZQJbxCU+1I1IwmvpvTxQBmHGIsQrhEG2mXcFvj6oh2F9 Kp2CjSyvI2yZKng2gj0C+E5nEdv6pRzkeJf8Tx8+20TbVCNvAC7mxeJVNioll4Jk9tfx 96nu/Um0mZtc8CXTIfV4qGvl6+7ZfJ/iiRA46LytFN/0IMm5loJDFMNXSxvJW3gQeKkQ TySg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intenta.de header.s=dkim1 header.b=vNyEnij5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intenta.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l70si3226296pge.446.2019.08.15.23.53.50; Thu, 15 Aug 2019 23:54:06 -0700 (PDT) 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; dkim=pass header.i=@intenta.de header.s=dkim1 header.b=vNyEnij5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intenta.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726962AbfHPGxC (ORCPT + 99 others); Fri, 16 Aug 2019 02:53:02 -0400 Received: from mail.intenta.de ([178.249.25.132]:41766 "EHLO mail.intenta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbfHPGxC (ORCPT ); Fri, 16 Aug 2019 02:53:02 -0400 X-Greylist: delayed 327 seconds by postgrey-1.27 at vger.kernel.org; Fri, 16 Aug 2019 02:53:01 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=intenta.de; s=dkim1; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:CC:To:From:Date; bh=XGDxRJXRDAYSGkBgoHrcdJKPBcXv/0/xhS9n/WVSbHI=; b=vNyEnij5dWjnpCOiyaV0zqMrX6EVSo/1v2ELQ4u5e1Zkuy6LbAo0v7yKw1XMyQhk8bEoem2aNi8Yh1H5+nip7VemxX3m1iJ8+Nmba2+Dy6tw9sCj7VFv+ZzNUQM7BmOegpkJqK/aie7iAJSb7H3LPwemTxDeUsPaf0h4RNA74987eYu8ixkcl9Sk8lWpOVYKY1N5aZz1H4nKo5k2IrNIEw2Su5tn8fuInz2kir8GiI0tPR9WhyWqYQW45xyUhAnYEbsLuKXkBj5LZ1LiA5rwuLF0xeiLbmeblBDRdIRrTIuELb+L+VG4gXEvYGDlmUxy6J/BsJHnA0e2ARC5/dGB+Q==; X-CTCH-RefID: str=0001.0A0C0202.5D565182.0082,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Date: Fri, 16 Aug 2019 08:47:30 +0200 From: Helmut Grohne To: Daniel Lezcano , Thomas Gleixner CC: Subject: [PATCH] clocksource/drivers/sp804: make CONFIG_ARM_TIMER_SP804 selectable again Message-ID: <20190816064728.52ymq7rflmuqparz@laureti-dev> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-ClientProxiedBy: ICSMA002.intenta.de (10.10.16.48) To ICSMA002.intenta.de (10.10.16.48) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a dependency on CONFIG_COMPILE_TEST makes the relevant item unselectable for practical purposes. The correct solution is to add a dependency alternative on the relevant architecture. Fixes: dfc82faad72520 ("clocksource/drivers/sp804: Add COMPILE_TEST to CONFIG_ARM_TIMER_SP804") Link: https://lore.kernel.org/lkml/20190618120719.a4kgyiuljm5uivfq@laureti-dev/ Link: https://lore.kernel.org/lkml/alpine.DEB.2.21.1908152227590.1908@nanos.tec.linutronix.de/ Signed-off-by: Helmut Grohne --- drivers/clocksource/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Hi Thomas, On Thu, Aug 15, 2019 at 10:30:39PM +0200, Thomas Gleixner wrote: > The obvious fix is to add > > depends on ARM || ARM64 || COMPILE_TEST > > instead of reverting the whole thing. Care to do that? Incidentally, that's what I proposed earlier as RFC. Resending that variant now. I also note that there are likely more instances for this pattern. Should they be fixed in a similar way? You can find a lot using the following incantation: $ git describe --tags v5.3-rc4 $ git ls-files -- "*/Kconfig" | xargs git grep --cached 'bool .* if COMPILE_TEST$' -- | wc -l 185 $ Seems like an anti-pattern to me. It is particularly common in the clocksource subtree. Helmut diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 5e9317dc3d39..7081a250573b 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -393,7 +393,8 @@ config ARM_GLOBAL_TIMER This options enables support for the ARM global timer unit config ARM_TIMER_SP804 - bool "Support for Dual Timer SP804 module" if COMPILE_TEST + bool "Support for Dual Timer SP804 module" + depends on ARM || ARM64 || COMPILE_TEST depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP select CLKSRC_MMIO select TIMER_OF if OF -- 2.11.0