Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1026981ybb; Wed, 8 Apr 2020 14:58:49 -0700 (PDT) X-Google-Smtp-Source: APiQypIi2d2fMmtNd5L6KXI+j9IqlKiVCsalAPG1OJpYwoq3ReIc5Y1Cav17gkKrRC29AldlgcZS X-Received: by 2002:aca:a98a:: with SMTP id s132mr4204258oie.75.1586383129772; Wed, 08 Apr 2020 14:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586383129; cv=none; d=google.com; s=arc-20160816; b=F99z1fU8e9a4Mw9YAXN0NrgksM6Sy2MUhbyIchwJgEAhgl8dPtZKitkAq9aiDL68Ys tnGDslzj3vl7zAZjSmz/Kaey2vDfebxSHagxg61vUy/1e5U1KQ9y8b9PApkfsgIXF/3t qbgyYw+sKNTzz3O48LAVzbBCEgL5Mg/ZVNQoSDZpnJPN7xpEQnOQnVhUcsS1Jq1VObX6 jWqGRxj4d6RJhfhwoNws4k7om6xk8olEjRoRGwkiutOZtIeo1OQD3k9aVKFzRnR7Xzt0 tQliiTX+mESJJoFcnDJXbm2n41ZfxDCaP9EL1giwHrOglRZh3nBkfHj4bVe7HwbzeZ0P Maig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=h90Inx2nwpXhMibtRZ3Xv7p/EGS1ieRiwd4RVjv0ljg=; b=ay1MkCClVvxSWn5V7yAtfHj+G3URYHr6BTTYDauR9ORMCXO3g0BcsNfV6be8w75OAr AB4emq1FUf9DsOR4C/lDko/6HshzRZb4aGZOj7x4HkcLpMYcPJuj6qSOaHypViZeEAg5 CJqA2a/C29ZbzrBqqQjqns7nTHC1gIgmzp/JB7uRgcQ0yHR51A0oGYFrW3kLnn1AeLBP im1NVQyf81oKhhONR1HyExRBQ19KLobJdd0YCK1vw87BST6jOCDmh5Ou40O8MLeEfTma TRAYbWQsUAWtHGPUIT39aUUnJEfcNO3NTzefpm+UcPFqjedwxHYpVM8th8tr3vYXGzsM YTAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=U8ETg0PM; dkim=temperror (no key for signature) header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=BpSnWiZO; 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 h11si3221443otg.318.2020.04.08.14.58.36; Wed, 08 Apr 2020 14:58:49 -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=@pobox.com header.s=sasl header.b=U8ETg0PM; dkim=temperror (no key for signature) header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=BpSnWiZO; 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 S1728765AbgDHUii (ORCPT + 99 others); Wed, 8 Apr 2020 16:38:38 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:56288 "EHLO pb-smtp20.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726891AbgDHUii (ORCPT ); Wed, 8 Apr 2020 16:38:38 -0400 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 64119B233D; Wed, 8 Apr 2020 16:38:36 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=FXs96PD9q6AihpPiIw66bQCCq08=; b=U8ETg0 PMUzCxd1Etp4NTyjwzMVnSGylSOEkCEBXTKQYzm7o3Acpusy+ZC2z7Ra8sWzvHP9 pnt3xOIbUpkedWag6NuNCVdmiLjRH674iDjF8gcmVmbVPGZCZuNTyiYLda7vq6lL RYQd+jNEdW+/AJGlaJ8XO2ozC2x4gdHJmqJFw= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 5B0C5B233C; Wed, 8 Apr 2020 16:38:36 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=qLgNDpEXsnrm/8QYj83jowhEfOt5/wA6l8IQuAQGxlY=; b=BpSnWiZOUdexci0KAuec0G+2jfPVozIKdqH97mGEA108YctqFuRxRffnGzGrPwh2foY4yVjd0fKDiPFWkJWkdmQthCj9TJyaqJ7SNxaaysIuRmFzGAdaXTKY7K1rT6cxW0LYK3KBQUU/n1fyLp+kXrbsfctkypwMeTILo06PQv4= Received: from yoda.home (unknown [24.203.50.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id D8611B2338; Wed, 8 Apr 2020 16:38:31 -0400 (EDT) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id F39562DA0D3A; Wed, 8 Apr 2020 16:38:29 -0400 (EDT) Date: Wed, 8 Apr 2020 16:38:29 -0400 (EDT) From: Nicolas Pitre To: Arnd Bergmann cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Kieran Bingham , "David S. Miller" , Saeed Mahameed , Leon Romanovsky , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org Subject: Re: [RFC 0/6] Regressions for "imply" behavior change In-Reply-To: <20200408202711.1198966-1-arnd@arndb.de> Message-ID: References: <20200408202711.1198966-1-arnd@arndb.de> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: E91C3C66-79D8-11EA-84B4-B0405B776F7B-78420484!pb-smtp20.pobox.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 Apr 2020, Arnd Bergmann wrote: > Hi everyone, > > I've just restarted doing randconfig builds on top of mainline Linux and > found a couple of regressions with missing dependency from the recent > change in the "imply" keyword in Kconfig, presumably these two patches: > > 3a9dd3ecb207 kconfig: make 'imply' obey the direct dependency > def2fbffe62c kconfig: allow symbols implied by y to become m > > I have created workarounds for the Kconfig files, which now stop using > imply and do something else in each case. I don't know whether there was > a bug in the kconfig changes that has led to allowing configurations that > were not meant to be legal even with the new semantics, or if the Kconfig > files have simply become incorrect now and the tool works as expected. In most cases it is the code that has to be fixed. It typically does: if (IS_ENABLED(CONFIG_FOO)) foo_init(); Where it should rather do: if (IS_REACHABLE(CONFIG_FOO)) foo_init(); A couple of such patches have been produced and queued in their respective trees already. Nicolas