Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2822410pxv; Sun, 18 Jul 2021 02:38:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLCjIJSaU0ZD1MgVcN2Pmu3KsCEDmM+x2SytSq5DBlWqngIPautLxbXOOAJn96ZccUrw07 X-Received: by 2002:a92:c7a2:: with SMTP id f2mr12353739ilk.3.1626601096424; Sun, 18 Jul 2021 02:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626601096; cv=none; d=google.com; s=arc-20160816; b=k1L8t4726s17etQo7kUge9/qHZdhsxRcLaJWtvq8Zpuz4leoMikznLgrOdnM+b5I8z s7MGYRj9KIpslBfTBBC7ISLnRHTctSXevpy0Tx+POjSKNPEfljjdViGk4KxZy4EV6hPR xSNRotuuNqPXKE4yM5kJMkAd9GA8UibItFLarfaULbemVYt3dc08+uVsZqD5YKFNx1cL +qLijXr6ZYIWJBNiINVTTTmiC7jO8p9AYgV24s3Rwt+dF1wsQWX61F27tGOKEgqIO7xG RHHl+3TPNIosIdp+QST2otZyaDP741eiew0yjpxmuGD0lY9GpjbaJ8+7dHkmWzc0KvNg iV+Q== 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=VP/7yr/B+ENgaIKa1/s5XFIZJMjO0e3ONBbcEfdKM7k=; b=qjAC1uhTaYw0K36042odc9Z6OtNmBYS+jP3bzl+/+nSP1+cKLTasrAeeSxJju6rnK6 CAv0/AsSKl31UnUkyYzMCwyKonLB74zBrt16AVot4oIi6yTJjHqENTgxRuYEUuok3rQE 04wuCr2GlTOrR0fcXwozRChNPn6uZKlZ/aq5zXA7F2L8KKHKLlD9te1a42QrNX3r8U2c /G0v2QojWRM1Zicxi4Fi5WNyhOSXSk98QmqETKrJNAfftCjKohKh6VUl2ZCduMrwbKmv Y4YFnM+vxmsIt1bCsi/3Q4nn6ffJ1bsHS6QwrTBSY8x7oNf0/Ee4j4DvvUddHjLcL8ff oZ0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=zahNNZym; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si637169ilj.137.2021.07.18.02.38.04; Sun, 18 Jul 2021 02:38:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=zahNNZym; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230457AbhGRJk2 (ORCPT + 99 others); Sun, 18 Jul 2021 05:40:28 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:41022 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbhGRJk1 (ORCPT ); Sun, 18 Jul 2021 05:40:27 -0400 Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 16I9b8Dk028602; Sun, 18 Jul 2021 18:37:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 16I9b8Dk028602 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1626601029; bh=VP/7yr/B+ENgaIKa1/s5XFIZJMjO0e3ONBbcEfdKM7k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=zahNNZymfnZQDkdfwP8P/RVPjyOM8uWfAvIrkj8/8C9pCCGbxOong1VlEQMnTgnd3 wEyqT0PwSFaMwMfd4ggtDdsPTdMrhlRMzthJtvLCiqV9m++ItLj9/iTllKzWERtrEw ROJCY3f0vD5XAcp8v4d318sDAyKuGXUUQXy+Ap1tPUu5sHcFO7n66c4l3B72r48IXY owcB1kS6dCzxpl3zF+khYpt9XI+pjVYmFgArY2P06NUolO3Qx+o6JZQLUcq4VYcpq1 PKC5LTkDcZJ9hkqNcyeerdCpRrnotdIjTXMZVVgnIrj2TtkmHlJdAbryG3zOCkl5Tb hOWRL4tZLU/kw== X-Nifty-SrcIP: [209.85.215.169] Received: by mail-pg1-f169.google.com with SMTP id t9so15597148pgn.4; Sun, 18 Jul 2021 02:37:09 -0700 (PDT) X-Gm-Message-State: AOAM531XKfwTQYX0hdPwa317rMj2gAqTrbcfJEEEeOBREfThzK0dv8t/ OnCJmH5nq9yipGKm9t0l2pGIR7WpGoLshh5a8fM= X-Received: by 2002:a63:d80a:: with SMTP id b10mr19578322pgh.47.1626601028449; Sun, 18 Jul 2021 02:37:08 -0700 (PDT) MIME-Version: 1.0 References: <49b4c2512afba7a2c2ee39e10f14188ecfcdffc0.1626262835.git.rrichter@amd.com> In-Reply-To: <49b4c2512afba7a2c2ee39e10f14188ecfcdffc0.1626262835.git.rrichter@amd.com> From: Masahiro Yamada Date: Sun, 18 Jul 2021 18:36:31 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Documentation/kbuild: Document the kconfig choice default value To: Robert Richter Cc: Michal Marek , Jonathan Corbet , Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 6:26 PM Robert Richter wrote: > > Document how choice defaults are determined: > > Default of a choice is its first visible choice element [1]. Choice > elements do not support default attributes. [2] > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/kconfig/symbol.c?h=v5.14-rc1#n245 > [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/kconfig/menu.c?h=v5.14-rc1#n494 > > Signed-off-by: Robert Richter > --- > Documentation/kbuild/kconfig-language.rst | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/kbuild/kconfig-language.rst b/Documentation/kbuild/kconfig-language.rst > index 98c24183d8c3..e4d3463594e1 100644 > --- a/Documentation/kbuild/kconfig-language.rst > +++ b/Documentation/kbuild/kconfig-language.rst > @@ -417,6 +417,9 @@ definitions of that choice. If a [symbol] is associated to the choice, > then you may define the same choice (i.e. with the same entries) in another > place. > > +The default value of a choice is set to the first visible choice element. The default value of a choice is set to the first visible choice element unless it is explicitly set by the 'default' property. ... is more precise. > +Choice elements do not support the default attribute like menu entries do. I doubt this info is useful. Rather, is it even confusing? choices support 'default' but choice elements (i.e. choice values) do not. > + > comment:: > > "comment" > -- > 2.29.2 > -- Best Regards Masahiro Yamada