Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2464695lqt; Mon, 22 Apr 2024 11:24:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXlrYfWhJDLlOCqxsZgvdXcgHHV2F2hPvOwnkLDQQpNoBagMxh1O0VEFFk0ha+QHFf8wzk3hyN4hYBOk80PCxQeCXXyT0FHGy6YNKRaw== X-Google-Smtp-Source: AGHT+IHXLmY9tDADYTSmxlRmEVTwkafe0eNig/FcUzuxznmAtgR5VqBtNEaKlbQuwIeTlYr411GN X-Received: by 2002:a05:6a00:310e:b0:6ec:f097:1987 with SMTP id bi14-20020a056a00310e00b006ecf0971987mr9503074pfb.31.1713810264372; Mon, 22 Apr 2024 11:24:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713810264; cv=pass; d=google.com; s=arc-20160816; b=tdISqmHENAwbqiMaGEjQ0r4YrwUckJCk7i/yY3WORJ4fIHswWbGyi+hDcmusSyW1aB 5Qkqa2P0mUUwWSUvyG/bJeZKr38K4rpHlchTu3wBFrzJFGwas9/N+GfCxqk+6K8NCsrD B3nheLog2L8gR2dEGhnkO7xuwDtgMn4GBjchyhdizb6hHyW41pHhCDARgAgSegw5Pit6 6rpSZKgKCEa+SuMp4S5lXjKaaGwcmOQfQ9M82ex014sY8AUjdZsGSp7qpUF2kxdHxpSP gBzdI+34lUZ2gJBXXk3q5UsHVn2ZazHoQTcea3V98uqgqyzymrvb+wl/PCDZRTpovn8f wOjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=4tISaTjKm7Keny+zSA/5yJF7vEg/YCHm8XeIP3SBn8Q=; fh=KM47Z39bfE96LWrzoxbDs4dhfLkFJIfMDgxcHyoOKdA=; b=mhC0Yb3qKKamybzp0KZen7ylbyKtLgO/H2vi5UyZxvIKp0uDFaQ+xbNqwZzxz0zeR+ 2X+Hb+nEr3ce3pgZLzPupNE9KEf9bW2aJ8LKJpZX1PAGfeFk6qsinlkd8bInSFuinCc8 qZ08qXCNBMnujrESdJIC8tSbgEaZxzO5QRCe5f9vICI/59bc+GPaadurNs/Q0Hr+3Uxf ZbENCTjxAeBGNimJbKwuzT9g1fvqZeNV4ko72uXR2krPLYw4DHva/Uyp0II1CAkQoBu7 Am1N3KXyjgZ4to66xQwRU3q502t2xS81Clegkf8zD78Jfol36Mg6KVEINOdzgssPwbn1 s2QA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=IioDOQLK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Nt9T+mKn; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-153827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fc29-20020a056a002e1d00b006f339a08328si91387pfb.357.2024.04.22.11.24.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 11:24:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=IioDOQLK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Nt9T+mKn; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-153827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 059572827C6 for ; Mon, 22 Apr 2024 18:24:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F8B515445B; Mon, 22 Apr 2024 18:24:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="IioDOQLK"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Nt9T+mKn" Received: from wfout7-smtp.messagingengine.com (wfout7-smtp.messagingengine.com [64.147.123.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EFDE154440; Mon, 22 Apr 2024 18:24:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713810253; cv=none; b=SLOaAkqFaqufXcXcQL/pgFzU0mwEFvYKx8eZh0bslYwD8du8RWh2mpLyaayUcpL/xT3nZmNsAYbjPPmJTst3pTt2PFom6eYQfpQyrgVnYzRnBK+gJVFSlTidcgGrcv8z7W3Ue60HxKrv6vDyyDLoWdq5adk02CeiCYfMBUYx3Ag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713810253; c=relaxed/simple; bh=AJWsQs0WIutfkiraqmBrcIERbnp+KFBgyvXOHw6/ZGw=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=TxRJxFXtKDbQN+UVtCInzRXBl5BGp+9DyWhBDu7kFHyQNOPv3KY2UM7vKMO31xp0uw4p16IREH11LHYMo2TuO3yjqJxpkP9995aR7maBN6Q9N9/y/9b9+UR1aWa1UVWPfW8pXybrz/ugeFz1/7vlAamUq/7llttEwd/349ALHBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=IioDOQLK; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Nt9T+mKn; arc=none smtp.client-ip=64.147.123.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id 3CC091C00124; Mon, 22 Apr 2024 14:24:09 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Mon, 22 Apr 2024 14:24:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1713810248; x=1713896648; bh=4tISaTjKm7Keny+zSA/5yJF7vEg/YCHm8XeIP3SBn8Q=; b= IioDOQLKUlfXtmHQgZWRGTP20woHG+m0RuSsHmypLIgi0wu2qGwYXrKfClD7dD+G MyRfnW6awXbuF2kd5QEHka5zK2iTeYmq/YNk9IrOUe+lwRwUAqsTDVMhZOoj1qi0 8vBH17xHZug/Qyg6xKoy1t+tIiyOijdsUFIyk3wG/gPnp7KV1+8ul3oN8Xaiwha+ GADkVyLMV7q0cSlE94l1nT1+SotvDiPWq/xA8Zey5JUL4ZuMA4I7c14S+DfIG7f6 f8WSO+LPIXU4yok5R5NVO2XpcDGHtOAKkUHwe93Xq4X62MpMNWHticDasluhGzd4 srSuIQKaxkAWn3w49X66Dw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1713810248; x= 1713896648; bh=4tISaTjKm7Keny+zSA/5yJF7vEg/YCHm8XeIP3SBn8Q=; b=N t9T+mKnsgBURMXg+OWFQJTJmdcY0Qocet1v+0rphAG6YV/di6D9rVirWDYvk8sWm bSfrNu+4a/0lHPHJ/y21xo4I+LFBST97FFEHJwBEkWUWMVSG2H5rOgtuRbrTXJtL 6AVA66B+FAdd0zs3SNs+4uCxs7QDnwpkfyLKIolOwuCXEzvXQQ1BfgSD8JiC6isv Vtjb81vqCPrXgwQzAeT+ujZ+O9B60x+yTHM8isBvnZ+5gEd0n6YzRt6/swHgUy+n qh8EBuNSStkPA1enrxeTDCz9PieKKUNtQVcxA9IGjs95rC8sdhfHKh5MYNcq7Krn WyeaZmVzBNcfNhBlj2UFQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekledguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf tehrnhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrf grthhtvghrnhepgeefjeehvdelvdffieejieejiedvvdfhleeivdelveehjeelteegudek tdfgjeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8187FB6008D; Mon, 22 Apr 2024 14:24:07 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-386-g4cb8e397f9-fm-20240415.001-g4cb8e397 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <87il09ty4u.fsf@intel.com> <875xw9ttl6.fsf@intel.com> Date: Mon, 22 Apr 2024 20:23:36 +0200 From: "Arnd Bergmann" To: "Geert Uytterhoeven" Cc: "Jani Nikula" , "Geert Uytterhoeven" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "Dave Airlie" , "Daniel Vetter" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Linux-Renesas , "Masahiro Yamada" , linux-kbuild Subject: Re: [PATCH 00/11] drm: Restore helper usability Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Apr 22, 2024, at 18:58, Geert Uytterhoeven wrote: > On Mon, Apr 22, 2024 at 3:55=E2=80=AFPM Arnd Bergmann = wrote: >> On Mon, Apr 22, 2024, at 15:28, Jani Nikula wrote: >> Whereas this one is broken: >> >> config FEATURE_A >> tristate "user visible if I2C is enabled" >> depends on I2C >> >> config HELPER_B >> tristate # hidden >> select FEATURE_A >> >> config DRIVER >> tristate "This driver is broken if I2C is disabled" >> select HELPER_B > > So the DRIVER section should gain a "depends on I2C" statement. That is of course the common workaround, but my point was that nothing should ever 'select I2C' or any of the other subsystems that are user visible. > Yamada-san: would it be difficult to modify Kconfig to ignore symbols > like DRIVER that select other symbols with unmet dependencies? > Currently it already warns about that. > > Handling this implicitly (instead of the current explict "depends > on") would have the disadvantage though: a user who is not aware of > the implicit dependency may wonder why DRIVER is invisible in his > config interface. I think hiding this would make it much harder to get anything right. The symbols in question are almost all ones that should be enabled in normal configs, and the 'make menuconfig' help doesn't make it too hard to figure things out normally, we just have to find a way to avoid regressions when converting things to 'depends on' that used an incorrect 'select'. Arnd