Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp314062lqa; Sat, 27 Apr 2024 03:43:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcM4jQXWBI/JzrkdWH0ZWVZc+eZy6j8CKb7ttNho22ZoSiC1W85tFFokHuXU+A9BjaX2tjUZKO4QNVTim19OZuIngtpUqvzIKfMlGf9A== X-Google-Smtp-Source: AGHT+IHvuE3V1VIJxEEE7Ac2uYsUqaw+uRlt8yhxfz3OjuRNfbCcA1KfiDAXPSMh4/bQAi2PtU3C X-Received: by 2002:a17:906:e2c8:b0:a58:c0c2:d7cb with SMTP id gr8-20020a170906e2c800b00a58c0c2d7cbmr4458986ejb.69.1714214610526; Sat, 27 Apr 2024 03:43:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714214610; cv=pass; d=google.com; s=arc-20160816; b=O37W0H0jl+957tvgXe/mdmRr/4gQqL1E2qHeQ2+EYY099QlLkrpBRVfTlQZb+8V5Gx KhNQF/ly/AVsfupVhKN4nC2oXz1d/pD5ULZTjNcPmHBLjR4NLNgzO1nGKR9t+hfDHuCc mD3sABFIMvO1f6tfZHIlQJ7++AA3IFKuKYe6nS6Qg3dwtk4o3FDbaHID0r2l2ixDS66j a/ZwvjLgHOXz/k6xCHSdbGEB3eG49BDImNYGa1PmBGerN5WJdm4/HQtKS4IfvYH4ikS4 1255Sgg8OfhOp+fwHAsVuxW2cDUG/2z5A8YMllf9/Yu3Bbr2tHQa24YAJx13VlHzWSQf 3EDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=03wVUMu2l96EYUO/Eo56+teKdr9sxdxL/1tZZ6ZPycE=; fh=YqhJVzkYv0AdESq6Mw0MtS0jeVH3+zxIUwVRjgsexrA=; b=teVUWxmoxF6hS1N07uOkl8W8mAha6jNYbOoxjXnN+wG2GyiugQ5c5prPXq0hcP/erZ Lz1u5op6Y8MXqTKP65URZ0a8lAcZ4/IC1b6lcq+i5PiJX7TZvpNb/xjcLJqtcuC3cZWz BZFXwDX9ZnsEY0ZgDV+L8dhRTmFaYDZitfAXA5032WoJw+ooUUJ6ik3MUwQXVBuUX/IA tfr+GivXvesZ+0zX8dzQXIiVfi7nxVX7p46t3cX+NIbK4GLkhgNzOZREa+pOrnnGAVCD rjp4MQRrjkP07f5IB+NtrssVUwziydJgEts9zYZvCMYILbv/1PQ4vSxcwqWwdVc2UNZB MPpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aMkgosbR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i23-20020a1709063c5700b00a522d16215esi11640108ejg.703.2024.04.27.03.43.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 03:43:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aMkgosbR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 414921F21D01 for ; Sat, 27 Apr 2024 10:43:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 017084A9B0; Sat, 27 Apr 2024 10:43:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aMkgosbR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28F07482C3; Sat, 27 Apr 2024 10:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714214591; cv=none; b=rseDYOZ7t6IceXcReIxXrgPC6rY4w4C85RCTrmRZt+zn0DN8Dy1hr9QElEG/1f2+Y1ArRNGhooGxZiXMZyMwsx7bEYGalehHLmVGJ5tMHwC/FIh0/J1ImPo0W9l1zyjq0gbD7yqjClTh5A3YWibdMToEuGp8dXJmE05R+0suHdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714214591; c=relaxed/simple; bh=4xV3pt6t6irH6gGp6kDGovWYinj4k8t7rn3N6XMulqQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KigkTggwzYbGfAFLyC5/HOvMbk2OEYrRfiUEw9GbOPBlbXAHT1Ss6gZ77m/JG6WWArvo6CeySAZ+R+SYbqngmZvGq9DS+cWMelY5fHviy80cDronF79rN+xcewSqyw6w1RewdaRNhMj/inSNkKw4uV1OCt3rSW+pZUFmiiuajEU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aMkgosbR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97E47C116B1; Sat, 27 Apr 2024 10:43:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714214590; bh=4xV3pt6t6irH6gGp6kDGovWYinj4k8t7rn3N6XMulqQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aMkgosbRLjIEvgL0FjUgy+U4iSWw2q6/AovOgCAYmioJTuq2n9KxA/CjOSVIp/BXo A2b9IVJnOSJxvt2rrUx+86pVzojp3D5BsUSDFlOnyHcJ3Jor8/i+YxLLnpQ1d8hWUF qQ70Fq2aLppnoPTIKPT7jjVr/bkFXU5G42hmBb2InTMozhVHmneDVM6tfan+w8B9yk eHfrd8Bve9s6CN3BBT8FsKXrq0+ZMBwQfdPef+GlWqO3ip6faC8SG8SSE53ObN6+HT 5eI+AgvO+zf45L2DKz8P99dqRV7kFeCzQW1+449VZKEBsO1Q2PHRK2SLlZ2qm1cWpD /YmcXUYrlMtvw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Matt Porter , Alexandre Bounine , Masahiro Yamada Subject: [PATCH 1/2] rapidio: specify the type for tristate choice explicitly Date: Sat, 27 Apr 2024 19:42:30 +0900 Message-Id: <20240427104231.2728905-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240427104231.2728905-1-masahiroy@kernel.org> References: <20240427104231.2728905-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit If the type of choice is not specified, it is implied by the first entry within the choice block. In this case, the first (and only) entry, RAPIDIO_ENUM_BASIC, is tristate, hence this choice behaves as tristate. Kconfig will stop this implication because it has a bug, and 99% of choice use cases are bool. In fact, this is the only instance of tristate choice in the kernel. Before transitioning the default choice type to 'bool', specify the type explicitly for this case. Signed-off-by: Masahiro Yamada --- drivers/rapidio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rapidio/Kconfig b/drivers/rapidio/Kconfig index b9f8514909bf..72b5b02492a1 100644 --- a/drivers/rapidio/Kconfig +++ b/drivers/rapidio/Kconfig @@ -60,7 +60,7 @@ config RAPIDIO_DEBUG If you are unsure about this, say N here. choice - prompt "Enumeration method" + tristate "Enumeration method" depends on RAPIDIO default RAPIDIO_ENUM_BASIC help -- 2.40.1