Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4665872rdb; Fri, 15 Sep 2023 08:46:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjWT0u7WtcDHfsUAWCt9ZiyaouamwfvZ/iXKTQMtPPXeSONNZcMkhcmpxw8GyFPYn4Sa7z X-Received: by 2002:a17:90a:b889:b0:26f:a34c:90e3 with SMTP id o9-20020a17090ab88900b0026fa34c90e3mr1919017pjr.31.1694792773891; Fri, 15 Sep 2023 08:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694792773; cv=none; d=google.com; s=arc-20160816; b=J250fb3IJFaCDMTnIlfpIA8mg0MuudoWeNIFsRz/e2u1jnyqnbH4Y39D5Jg7d/FSE1 K+ayrOx+ld59s1l7OpbpVerWk/1rIXzGWVn8SUNTTcPSolgBVZ96WlaEWX5ZcfoZmPZF odg0P8QtlJcPHmBbAOjcE0N/KO6RrrVIOc11YnT+Ad8LNrtbAvsHzWRb+5WYyIm7MvIr App1i/BH4CUR6htcvHaEH+yaJ1Pb9DAN8yjJN8re5BRfDzZXrxAqhntCecxVCA47ZF9t LKSfE7pvyy3nZKenV9LNADLGO71XO8Z3YzdvvCysEtIiVS0jl0OnrU2cTr8IsFtBcb80 42Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=uk+zZQK32Ze8zRmWK4g24/QPhrsLc5fFOPuw49X6jUI=; fh=d4yuC+PbF+6RV5V8VtxtwerkBReX4FqucZ90JzVIys4=; b=DO9MsE5YCaV4eC7Vrvt0L6PLXNnJc0QGZg9XVUwR6MP3wcki6c8Zb5lk5grXb4ZE66 xIgGJ6qfq5aIO+4FyeYFaKszKsXSiKfpubxe3qx5whxEYLFdyB+7pfHuwJuITjWcyoLc lnYT7zCCSDLL0qjFNLVYDr1v08ReA2pM1oJp+T74t2wf0Wda8XJZBnpAzgL23QaqvOYP l+2EtV7S61rifvPDX7EAp3rdKzdgtSVeJG6++KOY8WSFG3ymZpBarvlEKkv0nlL9zpIy 3iggbFsjRZJA3WuipHzbt1KHIl7qY7pQfv8rkp+1OkqZIKsfggMQTatGjlCCeAm0UjK+ CSfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=wOoItRBs; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=SCC+1ZmD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id pg9-20020a17090b1e0900b0026f3e1e9639si6071577pjb.40.2023.09.15.08.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:46:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=wOoItRBs; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=SCC+1ZmD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id CA64182606CD; Thu, 14 Sep 2023 22:27:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230479AbjIOF1d (ORCPT + 99 others); Fri, 15 Sep 2023 01:27:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjIOF1b (ORCPT ); Fri, 15 Sep 2023 01:27:31 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97D9C2703; Thu, 14 Sep 2023 22:27:26 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 44C215C00E5; Fri, 15 Sep 2023 01:27:23 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 15 Sep 2023 01:27:23 -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:sender:subject:subject:to:to; s=fm1; t= 1694755643; x=1694842043; bh=uk+zZQK32Ze8zRmWK4g24/QPhrsLc5fFOPu w49X6jUI=; b=wOoItRBszXtVLD9L/kCOxDSff282pNjsOD89SWRXTbkgvY+1OKJ mF+bWkoTTaVg7YwSoLYVZCf7UaWMceAAEwmEHGpZI1IFh8n61Ar/xoZg+8hBI6aS Wz+sH+HRBjCj5faM5ClRT5jT5mxnKIhwraQB4RPPpMsqGjcxfApsSc9+l1PMOd2q 75mEtliBlaEBq9rjwF7AkddPDZHSrQjvwuWJCDObhLG807UeSakLsULaaXHJlSDi Qocpi6sEYCclItgy1xX/YD8dw1fZv6NdObag4RboYDF3PhXSJh7zYqYW1UFaB71m n3GDTsMdNDedLPkqtIYZs9N/66g9y+fb4sg== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1694755643; x=1694842043; bh=uk+zZQK32Ze8zRmWK4g24/QPhrsLc5fFOPu w49X6jUI=; b=SCC+1ZmD3VI9gvTFjGGgbfTmVdz73pHYdpLFjJzh08zOKCNgYh8 kq31+VnfevkcUsx9cuFdWnYdnqjykKkFxdtJImg+8nKMh5FsHm6Cz4exgq2R61oB TZbR1f9D1khugXPg00pYDVTo35BKiBnUVK2sYY9UD45bsrsoV05teyWhN1yc+Shh IZJRhorG3EYzMbmKIwsQneUpG6NEQcnpJQDbUqcSvkaCP62XFh0+56TvOxp8Cf5M wvvAJkUDCvM0S62LUCiPcrDjtNV5OtQoog1lx5YFvral9bGQ211xIPso/PtW04XZ ItuN3bvLUlFrDkduNy49zM8jg9ICRG87A3Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejuddgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C439BB60089; Fri, 15 Sep 2023 01:27:21 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-745-g95dd7bea33-fm-20230905.001-g95dd7bea Mime-Version: 1.0 Message-Id: <763b1599-06b7-490e-9cbf-eb07f1deedb3@app.fastmail.com> In-Reply-To: References: <20230913113801.1901152-1-arnd@kernel.org> <874jjwx44g.fsf@intel.com> Date: Fri, 15 Sep 2023 07:26:59 +0200 From: "Arnd Bergmann" To: "Masahiro Yamada" Cc: "Jani Nikula" , "Arnd Bergmann" , "Jonathan Corbet" , "Sakari Ailus" , "Javier Martinez Canillas" , "Nathan Chancellor" , "Nick Desaulniers" , "Nicolas Schier" , linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Documentation: kbuild: explain handling optional dependencies Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Sep 2023 22:27:34 -0700 (PDT) On Thu, Sep 14, 2023, at 19:23, Masahiro Yamada wrote: > On Thu, Sep 14, 2023 at 11:57=E2=80=AFPM Arnd Bergmann = wrote: >> On Thu, Sep 14, 2023, at 15:42, Jani Nikula wrote: > > It is unclear why WIREGUARD must be entirely disabled > just because of the optional feature being modular. I don't think anyone is asking for that, and the current "depends on IPV6 || !IPV6" seems fine here, and is consistent with dozens of other symbols. > My preference is to use IS_REACHABLE(CONFIG_IPV6) > instead of IS_ENABLED(CONFIG_IPV6) > under drivers/net/wireguard, then > get rid of "depends on IPV6 || !IPV6) My feeling is that this would be significantly worse from a usability point of view even if it made it a little easier for maintainers: When a user selects both IPV6 and WIREGUARD, they expect to be able to use them together, and a normal user setting WIREGUARD=3Dy would have a hard time figuring out why that leads it becoming IPv4-only. > If you want to make it clearer on the Kconfig level, > perhaps the following is also possible. > > > config WIREGUARD > tristate "WireGuard" > > config WIREGUARD_IPV6 > def_bool y > depends on WIREGUARD > depends on IPV6 >=3D WIREGUARD > > config IPV6 > tristate "IPV6" That has the same downside, with the added problem of also confusing kernel developers with the '>=3D' Kconfig syntax, which IMHO makes no sense unless one knows way too much about Kconfig internals. Arnd