Received: by 10.223.185.116 with SMTP id b49csp3601085wrg; Tue, 6 Mar 2018 01:41:11 -0800 (PST) X-Google-Smtp-Source: AG47ELvPLOlXJ+AIXxGLvG52TdSuwDQf5xBCXsIluRFGHwv+XpEuQWN0h8ehM45l6tLugj2VTmrD X-Received: by 10.99.146.26 with SMTP id o26mr14698373pgd.309.1520329271154; Tue, 06 Mar 2018 01:41:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520329271; cv=none; d=google.com; s=arc-20160816; b=Vd7dwvKLbY7GRTJOEC8CoNt9rSlvXnnjj1AyU58Kv0NeFq0pxL1WCjfjqJ4rnFU4wu XasQy4XKghhaeJn+M6IfQjOPHSYOCw+cHRV1eudc5hnjFAZeDhTKXtOgUVkYPLki4vJf BX+xe9jsBVJ99nYv9hnD0BGT36HIdHaQRnPdYSSuRsak+bkx4EoT9+03z5P2J7/10QRD wNQS708FH0p68dt6VjbzTXuJKLkeAb1FgCHjqNGaGINr4JA3WqTviCeis2QHzl4X9DcZ YIHj+Fu9EV6iMPayO3DqusfIv73y5ONFEOncfT8vtqnt8MGLUo1CJM204VnQv5RWq9LU E8Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=JShR0scVWClS5GGhjB0neNIJ5fkoWFzjMQrnHWHumOE=; b=czA+IMpGThklzWPxS4h/X4JPSH4GUzKSxUqpztBHDv7E7T1za3DZSsMJdfJEOvxSb7 sZouQ9B9wydot+7bsJXSIiZ9RYz5hFijZlhnJAUJWXyE3vlll1DuT0kZzrYhnasnhH84 se2ztzqWlx0Ql88MOSKLJSZyaxDgJ8HaaVHQGcKif2o6s3e1Fqb1OrYDNg6RIpbik7xq vP9h8T71Bcr5HP9EIV+4cQSYJHqMX4M+oiaL81II+Hmq7EOxlNX1dcDvyqEFC08P4sXH KsrDCBtVVYX9Oshc78LtX9KUZSGp5UddVkW7W3K653lArPbsZD4hpc7z6rLOnxKsVZ/U KMHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=WZEhAOno; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22si4081896pgo.107.2018.03.06.01.40.56; Tue, 06 Mar 2018 01:41:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=WZEhAOno; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753392AbeCFJiD (ORCPT + 99 others); Tue, 6 Mar 2018 04:38:03 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:61523 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753305AbeCFJhp (ORCPT ); Tue, 6 Mar 2018 04:37:45 -0500 Received: from mail-vk0-f44.google.com (mail-vk0-f44.google.com [209.85.213.44]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w269bV2N016298; Tue, 6 Mar 2018 18:37:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w269bV2N016298 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520329052; bh=JShR0scVWClS5GGhjB0neNIJ5fkoWFzjMQrnHWHumOE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=WZEhAOnoZ0EKv5UUN3YnBTvHpN/5aNaWZgsD+X+g+5Jk5NOns4x1e7e+uGNoHWLt7 8R+3e+gv8biWb6LLJybxAbQ2yXY87QJ0bJsuNQCMidIyBJKW3g7xoYchO2v37vSoci FFshcrn6kp+NN5wIjtuSQWoXIFN3KgVKU3i/v/XXDrpCORHu25L1h+K1EzFZwRkLth VoikHzlm2/4k4Ip02nItmLU1Nn8sgC8X0Nq4au7MVdhPVCLwI2RYw5Q+LIrjObLMUR L8saeDmfDISlLsx2bPCIsNu2ggfbJaGk0960x2zYlR9Nkhud8jaFGkUY6V3Wwf3Vgr pSMpYDtFEO4EA== X-Nifty-SrcIP: [209.85.213.44] Received: by mail-vk0-f44.google.com with SMTP id z190so11873718vkg.1; Tue, 06 Mar 2018 01:37:31 -0800 (PST) X-Gm-Message-State: APf1xPC0rmGR/m4KxKGDL3LfYRID5FxHnfEeXzUsdDuhGMOHvDGKhrCz LLoD7QNgw4NeT2IKitmO87oeeuwA9euD56Qudc8= X-Received: by 10.31.236.195 with SMTP id k186mr12431676vkh.166.1520329050769; Tue, 06 Mar 2018 01:37:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.32.138 with HTTP; Tue, 6 Mar 2018 01:36:50 -0800 (PST) In-Reply-To: References: <1519965121-12017-1-git-send-email-yamada.masahiro@socionext.com> <1519965121-12017-10-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Tue, 6 Mar 2018 18:36:50 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 09/11] kconfig: unittest: test randconfig for choice in choice To: Ulf Magnusson Cc: "Luis R. Rodriguez" , Linux Kbuild mailing list , Sam Ravnborg , Michal Marek , Randy Dunlap , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-03-03 18:34 GMT+09:00 Ulf Magnusson : > On Fri, Mar 2, 2018 at 10:29 PM, Luis R. Rodriguez wrote: >> >> >> On Fri, Mar 2, 2018, 3:14 AM Ulf Magnusson wrote: >>> >>> On Fri, Mar 2, 2018 at 5:31 AM, Masahiro Yamada >>> > This is complicated usage, but it is still used in the real world; >>> > drivers/usb/gadget/legacy/Kconfig is source'd in a choice context, >>> > then creates a sub-choice in it. >>> >>> That file is the only one that does all that weird choice stuff btw. >>> >>> It's as if it was written to make use of as much obscure Kconfig stuff >>> as possible. :P >> >> >> Can't we just use another way to describe this requirement on this file, >> with the trade-off of simplifying kconfig semantics? >> >> Luis > > I don't think changing how drivers/usb/gadget/legacy/Kconfig does > things would allow for any simplifications, unfortunately (except to > get rid of the fix tested by this patch, maybe). We could also revert 3b9a19e08960e5cd. :) > Being able to have non-choice-value symbols and choices in choices is > a side effect of automatic submenu creation. Symbols and choices that > depend on the symbol before them end up in a submenu, and only the > top-level symbols in the choice are marked as choice value symbols. > > I always wondered whether that was an intended feature or just > something people discovered works (it seems to work anyway...). It > feels pretty iffy to have cosmetic submenus affect behavior like that, > but playing devil's advocate, it kinda makes sense to put symbols > close to the symbols they depend on if you can get away with it. > I am happy to drop this test if removing the seem-to-work feature will clean up the code. Now I am accumulating test cases. -- Best Regards Masahiro Yamada