Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1740091rdb; Tue, 20 Feb 2024 05:50:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW9u8h8l5VUEhYyDkVKWQlsLa5ZmeG3FAzmEh7joZY4uo8W2h8nD1xY62V+P+HzwqCXZNuEUpZXte6zup0qkuoJT8ldJzr5Tjt0vBbt3Q== X-Google-Smtp-Source: AGHT+IFeLkY9If+StSNCxh875sIpdWvgGsYF/shdMLg8ySc1KUGgBonx4Bkc20hWbHFdGsD8rJ7z X-Received: by 2002:a05:620a:610f:b0:787:4e6a:4ed0 with SMTP id oq15-20020a05620a610f00b007874e6a4ed0mr10105215qkn.2.1708437053453; Tue, 20 Feb 2024 05:50:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708437053; cv=pass; d=google.com; s=arc-20160816; b=N7HLupfqM5pq0HEKkC2BH8YXkARDp3Vh1KrK1mw8hKd/3KkL0apOhS4WVtbIQ+gvKe V41lGJ3jsfmlPU7LQ7VElmXA1MW1djbDSfDIBNsVMxcF8iTrNaCWoCXC2vdqRMnDES35 UKAzr4b3c2xMy9x9pqIJViT0gaS4Oipmafr8xVI2tnZVy2f1zAEpVAluQomZ0ub68UeM 8Gb1nF6PgnooXCARYolMqkBKlvsUMrlUiM4S0eWTbz85UJatlUcDbZeUVXzNuHSQ2QvE 4qW0lIQRAhSMpxC0SzCBnYRo2S7lLHazkm+dPmtcY8TBV1axshHu5IDejvAel+1hF6UW H+iA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=AZP+HQp7D0b4VNb5lQa4xhoKmxeQmIvK8SmhM6hVHGw=; fh=FzYjnqva8wGlUh+WBUMYaLPI6AmY7D+o0PDA36Q+Ma0=; b=GH/zBiwQ9u7G7oWEDNfdwLUIbzc68dX3wm7A1/Z7BgulZm6ZL+nZ674gA0ZzqikH8e //3FwMmUEGS93mIbC+5Ji4MPVzJVyCkbCqo00UEsmyXkICZewjpCGK6pp8Xy8Hy484xy Zxy5gRYE9GirTEQI52wx1/aVrwsFi2PR6fft/u06rPJyu1/J4/pk9aruCkkmGv2EiqX2 rFR7iWFXeuqUddudx6kA6NNKE1tJOKb4oC4xMMQJ3+A0BQlurnG7S3coHDeDfLbY0UnF mzf/Ak+IpFhMkaBwL5HWGlSdxKepWvDHb1hx3L7B7YEtrpCOgOOfScKBzKqKPln4gaoS FiIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-73100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73100-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s13-20020a05620a030d00b007871e94b64dsi8697273qkm.530.2024.02.20.05.50.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 05:50:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-73100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73100-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A528E1C22F82 for ; Tue, 20 Feb 2024 13:50:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F14DC73195; Tue, 20 Feb 2024 13:48:55 +0000 (UTC) Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 912C569DFF; Tue, 20 Feb 2024 13:48:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708436934; cv=none; b=d9mD8hBPtQagykPxKbJnl48t9HvOzL8fcNy5x+KCQzjynYwrjMmmHWIrUDRGhd8KJ5cxC75hq4kJD2xIKKaNRza49CyNPQP6DAqsKEg0M0kzZ1cuGBcw+g7AT3dgvMBh4TfPmRqderxXqr1TAdRZxAC2BksbhukZidVt6RzGboE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708436934; c=relaxed/simple; bh=FXC6OCaMo6PBra09rv0mQ7fmtDHn40tyIY5riwAomwY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LrujmuqsVy2d3VSWVnaKDHC+6/Z1QpTfMQpo/eq67d2a2/riCvtYD7XhqB9Wb+/CRunukMLljWUXA9eev+jEIYMf372prRGGDoOMe7SA6mTu3FD5mceAvGma/ucX0xrybsLzbvwuap8yuukiTgWKzxfQt2FrikJjbBHwrfLW9OY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1rcQUF-0007OQ-00; Tue, 20 Feb 2024 14:48:43 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 99382C0694; Tue, 20 Feb 2024 14:38:24 +0100 (CET) Date: Tue, 20 Feb 2024 14:38:24 +0100 From: Thomas Bogendoerfer To: Masahiro Yamada Cc: linux-mips@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] MIPS: move unselectable entries out of the "CPU type" choice Message-ID: References: <20240127162309.1026549-1-masahiroy@kernel.org> <20240127162309.1026549-2-masahiroy@kernel.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240127162309.1026549-2-masahiroy@kernel.org> On Sun, Jan 28, 2024 at 01:23:09AM +0900, Masahiro Yamada wrote: > Move the following entries out of the "CPU type" choice: > > - LOONGSON3_ENHANCEMENT > - CPU_LOONGSON3_WORKAROUNDS > - CPU_LOONGSON3_CPUCFG_EMULATION > > These entries cannot be selected from the choice because they depend on > CPU_LOONGSON64, which is also located in the same choice. > > In fact, Kconfig does not consider them as choice values because they > become children of CPU_LOOONGSON64 due to the automatic submenu creation > in menu_finalize(). > > However, it is hard to understand this behavior unless you are familiar > with the Kconfig internals. > > "choice" should contain only selectable entries. > > Signed-off-by: Masahiro Yamada > --- > > arch/mips/Kconfig | 76 +++++++++++++++++++++++------------------------ > 1 file changed, 38 insertions(+), 38 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]