Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1651262pxm; Sat, 26 Feb 2022 22:38:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/IfCmdLvqS7MXJCB8SLEgK0/rN8K5J0+oJ7U3s1ktNu6jQO8kivVStbICq/A4AgBs0xcf X-Received: by 2002:a05:6a00:21c7:b0:4e1:dba1:a3a6 with SMTP id t7-20020a056a0021c700b004e1dba1a3a6mr15741062pfj.59.1645943892468; Sat, 26 Feb 2022 22:38:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645943892; cv=none; d=google.com; s=arc-20160816; b=nubVyPmAFAn8xMzHd+ZOEA8xARSxHzAtPM8Xjaha9gh+PnIAN4qgk/bHIygboDPSMN CV8AL2v383yt2SXety4j16b/pIERTT8MYdooAmeHIjugYxIhcGC9y2+RwxzC8aaCh8mR 83DdDFizRQQlz7QTKZqeOLlt2HhxtENWLFuC9+oRyRTYb4hdvwI71bKmuS/46NSdld60 Y8sp2smBn692hY4Ccbezvt3IhwJ47nUKQ9tVn3ADX7jg8km0usFN73A/SnhO4yoZ8R70 JHGfP4eFLHt+Fc8z1GJGU9FPztgIFIVFwKzkFwQElW+8r5Ul0GcFV4YGHCnkja9WEP6R Us9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=QMpLpFvK50geS0pNLEKH725VNQkb2vBonv3zKogEUhU=; b=CAGPbQuor+tUmfQKCGXFf4sK7BdxaHjP6WAHCv736073ynJ3EaD4TJ7O1bw5w1w0Gx 59hCewaf9cUJ0L/HppshrbIMflpuxEG+ZlECiJ3hhJJZcTDV10OoQK6aVWK7P2i0qQ7o JXYMyy1K0pwI5hNZrS9JOXA6Gqbw2U2+CR0wjOFRIEb/ahPTC4tJl4fyuaIT/Qa6zWeJ NaHfNVStetLqjxITfbUNuTTthLhW8TUDElypb94ne7rfkFx1x2l7nvlTAQGjcyb+cr0a NEYKDaYmH6XI8ZFhcflkteghcf53br7SwDdj8l8t1t3zJVoZry1A1xrnlaBDf0g3MWG6 s2jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Qaz7a4wq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170902e54a00b0014fe18b2ba7si7271291plf.482.2022.02.26.22.37.57; Sat, 26 Feb 2022 22:38:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Qaz7a4wq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbiB0EZ2 (ORCPT + 99 others); Sat, 26 Feb 2022 23:25:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbiB0EZ0 (ORCPT ); Sat, 26 Feb 2022 23:25:26 -0500 Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9D3A286A61; Sat, 26 Feb 2022 20:24:50 -0800 (PST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 21R4OJQH003168; Sun, 27 Feb 2022 13:24:19 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 21R4OJQH003168 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1645935859; bh=QMpLpFvK50geS0pNLEKH725VNQkb2vBonv3zKogEUhU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Qaz7a4wqvAPO6nmHRGNyWFAqhm83Y+SV2XsaZ2qfgZovUZn8oiMwdRN/wQg961jpM gshCm23qvbd77r+xArOKVW7T4eHDeS1X/hoM6lXz0AIw7asf+swCGYA1fRKfu5QBJG hQhoo8KQt/arplcRBrCrUxBnBsXCcOXOxVIZ0agnGNr1q1HszgNB5W4bGVrUwboe/P 5zthUlHlMQWDfZY6GKz+S5qN+1xA2DeIqilW5pO812sVjz5MZ6c5KvRx1iSokK3bZt 5LNufzq7DI62N31P0o9rCG7YzbRA43ROahW/Sa3OUcGmK0vbIPv5t6I5atALh9Ix41 fW/uBFhucYShQ== X-Nifty-SrcIP: [209.85.214.170] Received: by mail-pl1-f170.google.com with SMTP id b22so8035110pls.7; Sat, 26 Feb 2022 20:24:19 -0800 (PST) X-Gm-Message-State: AOAM5333dPfkNNumKcrEC9VnBGUGHXyrYuNFhxqhQXUFdVavGBR8ugUP OeIQYk3kG0MSiKQ6daeFTPvWb7xDmJ9UUnp+YxU= X-Received: by 2002:a17:90a:ab17:b0:1b9:b61a:aadb with SMTP id m23-20020a17090aab1700b001b9b61aaadbmr10547760pjq.77.1645935858727; Sat, 26 Feb 2022 20:24:18 -0800 (PST) MIME-Version: 1.0 References: <20220226123755.85213-1-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Sun, 27 Feb 2022 13:23:36 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: change .config format to use =n instead of "is not set" To: Sedat Dilek Cc: Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 27, 2022 at 6:38 AM Sedat Dilek wrote: > > On Sat, Feb 26, 2022 at 2:34 PM Masahiro Yamada wrote: > > > > The .config file uses "# CONFIG_FOO is not set" form to represent > > disabled options. In the old days, it was useful because the .config > > was directly included from Makefiles. For example, you can use > > "ifdef CONFIG_FOO" in Makefiles to check if the option is enabled. > > > > Commit c955ccafc38e ("kconfig: fix .config dependencies") introduced > > include/config/auto.conf, which mirrors the .config, but trims down > > all disabled options. > > > > Since then, include/config/auto.conf defines CONFIG options during the > > build. The .config is used just for storing the user's configuration. > > I do not see a strong reason to use a particular pattern of comment > > for disabled options. > > > > With this commit, Kconfig will output disable options in a more natural > > form, "CONFIG_FOO=n". > > > > Kconfig accepts both "# CONFIG_FOO is not set" and "CONFIG_FOO=n" as a > > valid input. You do not need to update arch/*/configs/*_defconfig files > > for now. "git bisect" should be able to cross the commit in both ways > > without any issue. > > > > Good. > > Lot of people use/used the notation CONFIG_FOO=n, so did I. > > Thanks for keeping the "compatibility" with old usage "# CONFIG_FOO is not set". > > Normally, I use git diff (or scripts/diffconfig in Git tree) to > compare two kernel-configs, so seeing > > -CONFIG_FOO=y > +CONFIG_FOO=n > > ...might be at first view unfamiliar/unusual. > With the old notation it was easier to see that Kconfig is unset. I agree on this point. "is not set" stands out much better than "=n", and our eyes are accustomed to this notation for 20 years. However, real comments do not stand out since we already (ab)use comments for disabled options. This is related thread https://patchwork.kernel.org/project/linux-kbuild/patch/20211213100043.45645-3-arielmarcovitch@gmail.com/ > > Is this patch on top of kbuild-next Git? > Yes.