Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2425581lqt; Mon, 22 Apr 2024 10:15:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCE/BoQZUvGvJQinxIC2PoF+WTL1A4I3o7wV3BzQLdcXaRaQMywzPypKRPjfAlw+ERgKHe7YdfsZAMNkQHD0DR9VGVzQjqB/BiWUkg3A== X-Google-Smtp-Source: AGHT+IHbeMA0MPF4cu4luVSejxUlHmqVXZTYtHc/vMDy665hMw669Ru7J7QKYD4MSzUqdbsS9awO X-Received: by 2002:a05:6512:38c5:b0:516:a091:db5e with SMTP id p5-20020a05651238c500b00516a091db5emr5574383lft.48.1713806110550; Mon, 22 Apr 2024 10:15:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713806110; cv=pass; d=google.com; s=arc-20160816; b=Omug0cPsuiuyg7/qLTeHKorziQQnh5xW4af/2IL6D5NbXQiG0r52BYA8m9vkVlgViO UNx1Rc5OOa67zYGrJquiZd5dm6D4F75s05Q4bA/kacKHi8YtAVIEFmOR0VUNpDN1J9MW 6M+0bZOVFY6cOqkMJfI5LqqoMn/rJgPuDB0MxfIc1QMpwzS069prrlK0G8qYBtdrZ1LT bRZCjtiXR4Qvs/VxCDVe0ecTkhyG7mVzodM5sJnqCJ7MDBdK22RRs0RTlzrP8WM114qC AolImh1oP20F+vyd/0J1j/nSSsx/5UnJG8rr2yKQoJITkabEuKfN2kvaWTSlMrLXN211 zX2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=4jLvFGrYJIrgMbM5QXnE6qTsuDFSNISWeToeRGsrBB4=; fh=2zkvSFNG64amPT48+3lHabnYVLY+RfbAL34AJrahitI=; b=CfuVuSTcPlx4klGGPTdhB/jmcXRpbB3tv92t63b/5j7HU3mkAd+di5an0d+1MfAa5j uvg03DpsNpIAM2yImLjVR2YKnQdXa7hx9hf/3ADVInjaW/a5PXdThttWsl9WhhiPjQsW /DFSAPKgb/nRacqd5Fn9Lf1h7YFui+p94DLwFW9DdDcoiXARsrdV8j3ekhO3nTIlgqVY 1axT8Ct/nszxcWLqmgL/DHsyUnWlc7xVUnAm1BelKlf1wXgbeuuMTY7B9R4/fm32K3XF q6YyhiQ+P0Rf//Tdxi+Q5kBKW0WmHUc0tL8uhCF2xlpgW813lTJaFFU+la4OyelDz8FZ tqpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="jt/+8w9i"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-153789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gb24-20020a170907961800b00a55aead4331si2094437ejc.176.2024.04.22.10.15.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 10:15:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="jt/+8w9i"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-153789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 46B871F220BE for ; Mon, 22 Apr 2024 17:15:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D619C153BDF; Mon, 22 Apr 2024 17:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jt/+8w9i" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 C586115218D; Mon, 22 Apr 2024 17:15:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713806103; cv=none; b=m2Z+7lwNxHbJOB94WLGKjnpeVddMVTKH68QjXi2brwgDGSBzIvjlYa4yFQVLADScEFpBTM7E7PBHUIOcgEIWWVvWbjARVkP5LiX3GktG9c3y+UGU1k9tYcJjsSriGEOQj/BF8p4ymGVpocAlJ81D0swZCt2Xr9xEmuviIAnat2o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713806103; c=relaxed/simple; bh=BrpU3LoTLXHcoM8ORoBD8hzIx4TTKfnlR5i0LAc22wE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=IhEnqTpUYYpaqhkNY+ToIbvdmk+XaAosvZoZ2KKgzy3bdmKEvZa7SYKioqVZw9iV8ufoj27qs3o8Cuk5B2pVJqJYUSy1Wq1f7QF/AqOCOkAzc3uzDRjewUCFq0g/wMXYcksSIgYCVHFzuX86sekrhVj5/E+Y9SbPq5YYQHY4QOM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=jt/+8w9i; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713806101; x=1745342101; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=BrpU3LoTLXHcoM8ORoBD8hzIx4TTKfnlR5i0LAc22wE=; b=jt/+8w9i5nHinYghB/xEV2L6aa9nacOFt9AzROrE7LbGnDkLcGjtOi7U EocJWKaQ4AWtDQ5TcDtcDMzPAB5QWAPMIztzWkaB4wk5sbKU6u3S5UBXH q7B+ng3osd1mE0dMIzEJeUr2S71SYarALKSzMsaELfTKallmnHi1qzxM+ feHlZbWF/JuJLc0zhMTzn2b/+Cukn/uWnDdwn+4ZELBmY7i8Y0FjjK9qv MDIYG5L2ElBW8ZZn5jQ8KUnryf7KyBmk7wibCVQwjDnEExKUAUNf+SXT1 GZzJUhu81DclI0Az9NANauq+ROQL70Jmu2C6ZTAD7amQJt2FANLnaN6kv A==; X-CSE-ConnectionGUID: zBUy2dtyTfSC2NNijh02NQ== X-CSE-MsgGUID: TEy1MCXDRTypx9n9T3CyVA== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="13191428" X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="13191428" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 10:15:01 -0700 X-CSE-ConnectionGUID: OBS6r4f7Q26O3NNuaAsTEw== X-CSE-MsgGUID: ccl8swbfSOSg+0+wvS8rXw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="23955593" Received: from ralbanes-mobl.ger.corp.intel.com (HELO localhost) ([10.252.63.128]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 10:14:55 -0700 From: Jani Nikula To: Geert Uytterhoeven , Arnd Bergmann Cc: 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 In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <87il09ty4u.fsf@intel.com> <875xw9ttl6.fsf@intel.com> Date: Mon, 22 Apr 2024 20:14:53 +0300 Message-ID: <87ttjts4j6.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, 22 Apr 2024, Geert Uytterhoeven wrote: > Hi Arnd, > > CC kbuild > > On Mon, Apr 22, 2024 at 3:55=E2=80=AFPM Arnd Bergmann wro= te: >> I'm not sure where this misunderstanding comes from, as you >> seem to be repeating the same incorrect assumption about >> how select works that Maxime wrote in his changelog. To clarify, >> this works exactly as one would expect: >> >> config HELPER_A >> tristate >> >> config HELPER_B >> tristate >> select HELPER_A >> >> config DRIVER >> tristate "Turn on the driver and the helpers it uses" >> select HELPER_B # this recursively selects HELPER_A >> >> 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. Why should DRIVER have to care that HELPER_B needs either FEATURE_A or I2C? It should only have to care about HELPER_B. And if the dependencies of FEATURE_A or HELPER_B later change, that's their business, not DRIVER's. BR, Jani. > > 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. --=20 Jani Nikula, Intel