Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6771033ybf; Fri, 6 Mar 2020 04:17:59 -0800 (PST) X-Google-Smtp-Source: ADFU+vsIQsePsxRCg3CkOeXE+R9kzMUPSer3V0i7Ti62TRS8Bl1bQDV73L631WGJljkaZtM8yQ/R X-Received: by 2002:aca:d64a:: with SMTP id n71mr2406135oig.72.1583497079734; Fri, 06 Mar 2020 04:17:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583497079; cv=none; d=google.com; s=arc-20160816; b=qEJmFdeMH7wSrj2XQEiqvdhx5n4hSQ3X6CyLIkWMMDXKrBHEbhvdXclbcb46PDuOkf LoEr0gbyKgLTaY+bBkp2fowZ2gVSq84pBUMousoSdEfOBJ8msb2FYM2yOlSHEBFPRUY9 hxW9y4eMebBlCqQIWpPwAUEqzldsbj/S987sMbBbLWxK6p33fBjVkDwmgts4pdnKx+6M sxtTx/7LfNZPTmmvjh+I76YzJL5eDrBViKQKYnAfExNi6U+NPqBo39Ts1yyl0azFjhnE kChhAAQKcUvIfrQ6ZXOPwGH1+3tevsnuGPr3GeTvV/JYaPbFC4qzuiDgW7iYRJosm8+c ltjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=XxqhTkVe9CvcMbnhVkoOtD7xWPU2yvO/vQcxe/RtjbA=; b=y9eodI1wo0lupCwy+980SjIxUXm+UR1bdvIauyGBwIQhMf7xkaj6CH8bkM30xg4QOv qQPUGDdKJUU854AzqCJmykZczEar8vNejlkHksOY8YC7Yg5im8i4QGcyirQwFzTVGLOo GkTVVMGC+cJ6ArbDYTp93ZKbwfB3LXcFZR1nT4Knf11aiWog/l1+qgR+tOa5b7pXSm68 yt/Mug5eSjFilAKOMqxzOKsheuorMHWyTTbSTMhIshGJFcDJcFerSqrN2LyiaFW4uGA8 0qj6JIScytL54irTnIzXLAO8/D+ynfbX4lHrRskCMpnHY9ujfMNif5tAstxgkprAXMwV 5XQA== 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 194si1216467oii.2.2020.03.06.04.17.47; Fri, 06 Mar 2020 04:17:59 -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 S1726769AbgCFMR1 (ORCPT + 99 others); Fri, 6 Mar 2020 07:17:27 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38082 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbgCFMR0 (ORCPT ); Fri, 6 Mar 2020 07:17:26 -0500 Received: by mail-ot1-f68.google.com with SMTP id i14so2204485otp.5; Fri, 06 Mar 2020 04:17:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XxqhTkVe9CvcMbnhVkoOtD7xWPU2yvO/vQcxe/RtjbA=; b=OcGzQA7+FqmZP12WK/8K/nJGuU8rwXJz0l1xHQpqTPrqCKR6ClXjsp24lhMmcbyqf3 N9foCBnj9pAPLERMpPnccO0Uz+cAyxutaVt//5GPwYmhtweAAvVG+CaX3Z4zdh05la9Z iKRAuRjMOGMAbrDA0ayE8e33fE5rOaSTxonzVpKx3E5DVZANxAK/h9dx4aM37rvzlezW OqyWkEMI3ldT8rfwHUzrim/oZfcsVgstcxqU7bT6VufPI0O62S8l/ipJAfLHUWbHDIE3 gX3hN1jOZe8nCSrjE/ADQV5E9jORlllRnbQRBg4/NlwfAnV4Vk1dEHsBa5Dr1Qm0dBLj ZbAA== X-Gm-Message-State: ANhLgQ0R4rKzX8ZheDeuZ/pa3Oggq+vabEjh4qLRR625+bjo5YzbUlTn f1VvEb8JbBz6f1oPYmusuBJameQXdDDsFbMvFOsaJg== X-Received: by 2002:a9d:5c0c:: with SMTP id o12mr2215931otk.145.1583497046255; Fri, 06 Mar 2020 04:17:26 -0800 (PST) MIME-Version: 1.0 References: <20200302062340.21453-1-masahiroy@kernel.org> <20200302062340.21453-2-masahiroy@kernel.org> In-Reply-To: <20200302062340.21453-2-masahiroy@kernel.org> From: Geert Uytterhoeven Date: Fri, 6 Mar 2020 13:17:15 +0100 Message-ID: Subject: Re: [PATCH 2/2] kconfig: make 'imply' obey the direct dependency To: Masahiro Yamada Cc: linux-kbuild , Linux Kernel Mailing List , Nicolas Pitre , Ulf Magnusson , Jonathan Corbet , Michal Marek , "open list:DOCUMENTATION" , Mark Brown , Randy Dunlap Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yamada-san, On Mon, Mar 2, 2020 at 7:24 AM Masahiro Yamada wrote: > The 'imply' statement may create unmet direct dependency when the > implied symbol depends on m. > > [Test Code] > > config FOO > tristate "foo" > imply BAZ > > config BAZ > tristate "baz" > depends on BAR > > config BAR > def_tristate m > > config MODULES > def_bool y > option modules > > If you set FOO=y, BAZ is also promoted to y, which results in the > following .config file: > > CONFIG_FOO=y > CONFIG_BAZ=y > CONFIG_BAR=m > CONFIG_MODULES=y > > This does not meet the dependency 'BAZ depends on BAR'. > > Unlike 'select', what is worse, Kconfig never shows the > 'WARNING: unmet direct dependencies detected for ...' for this case. > > Because 'imply' is considered to be weaker than 'depends on', Kconfig > should take the direct dependency into account. > > For clarification, describe this case in kconfig-language.rst too. > > Signed-off-by: Masahiro Yamada This fixes some issue with "imply SND_SOC_WCD934X". Tested-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds