Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp980344ybp; Wed, 9 Oct 2019 07:12:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjPAjZzCPb+VncVtlrgaKhq+y2HldTEyKGu/Z/oTCKn/PopFEBy/DGn1cRFKsoXy0b9vUE X-Received: by 2002:a17:906:27c5:: with SMTP id k5mr2967370ejc.173.1570630321545; Wed, 09 Oct 2019 07:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570630321; cv=none; d=google.com; s=arc-20160816; b=StUt0zPzOnPbl0eb7mUDNfssdZUPoz9ip16xhrRZEWB3ghahasipljamD+3E4UUa11 VbJKz6e8w3Ywj7Wbm4WFcDQI2yYMhKqTdfJj01OQwNKFveeq/a/1Nr+1uEjOt2FBaPJ8 Itw4Sy7X20gSp6WTIDxf3s4pPlPN9vMvim41xdI3UF6Jtlz/PRNlxunWnT9OY+gvl3jS apuUK1XrFsTX3kIVDX6XHNbk5QPYr1ZVQFH4YAnlPSgsTJ2mLNvJtKkYVC5U/1ld/8t5 RHMmDOuVPKhSbO2XGmy4DPjqTjJOaGym2XXy0/LkQn+YjAFDRpRAJIfX0Urtcvh4l8vW Qn1w== 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 :in-reply-to:references:mime-version:dkim-signature; bh=IfzmZhp36WpTVFDJFrKg1q1OTVja9xjnVrTlka/Jkoc=; b=vuTr5QnHdDu2LZaP9vLiA0w58kEAA6MMSgBxQHB7AznU+26A6YZDzZCJQEwkwHZPfR Pu2i9lLg+UWSJ0mroXjDEdefzjirW9ch/n4arcJODQ5us+/icVgEq70NEwxMSOT1s6yc QGOdTp8/wkCPG+uqmqHXuJaZgLyhJU9L2gGVpLUHQ9BJEsURWPKUorl6JlFY0N4x3TkY pM12pGBtgkuEKP6i8JuRtqKBimA1SRdkAP7Rwhq/Cg+9IdgIaK1/P1oO9whXFMgcSePk uOZ3ayTsoEriS7Gqiil4rV3CfUiyStD8Gk4TKxK9ly2qkrXL5opo7buKCct+Tp+UexCb HPKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rXBWxnxt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9si1183621eju.298.2019.10.09.07.11.38; Wed, 09 Oct 2019 07:12:01 -0700 (PDT) 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=@linaro.org header.s=google header.b=rXBWxnxt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731290AbfJIOLU (ORCPT + 99 others); Wed, 9 Oct 2019 10:11:20 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54058 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729644AbfJIOLT (ORCPT ); Wed, 9 Oct 2019 10:11:19 -0400 Received: by mail-wm1-f65.google.com with SMTP id i16so2796594wmd.3 for ; Wed, 09 Oct 2019 07:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IfzmZhp36WpTVFDJFrKg1q1OTVja9xjnVrTlka/Jkoc=; b=rXBWxnxtuK+619VAVXoKS+DxsBa9UqJ7nfRNBcS2Sz4XI5ZQ6Hw8QwSDlqpW05k9eA u9gld6jlBbewvfS51nf5OFVC/a+LQIB6CuaaXNjWixic5MnQZvut2Bv+qWHX2LVAC4k0 fHt9MT4y8YaPU1k2ecpQ1spQAjEqNJ9n8x8fx1LKnzmuemvO+UXUJv1/TouqPyZwO+KG nERyMqKdNVU2hHZLDMJ/Ehy9tnUAF0umDOwh8zb8aITfSgaY8toVe4iwMQx9PSwQHa4D 6arjQMc6CsuR3/NeKO1u3tNpuCCorVcoglK8+XO7sO2mad/ddObthg86fus9JfH2XK94 qxGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IfzmZhp36WpTVFDJFrKg1q1OTVja9xjnVrTlka/Jkoc=; b=kXo2e0y/LY6hD6ZWzRm1g144VUHgDl4aNExmEvTyZaT/Bk/435PMr/+Hk5zi8/2x64 ZnzH9mND5wHmvCijQn6XRyxZzdXNSALDq9dUTNhRzDbQ6uQR5nPPwZhsJ7Z/S8CfbTI9 W4MyWIoE9vxdfCDa95XFRJl3f7h3x54TUpKeSpASgmNO1Y7eNQFRP4sAUuIB+8H+usq2 zrXmUcVU/7nqVMnVZ+XRZDX20RgshXwdwyonnK9KthAam/wDBE81h7EWVQ/i8y/WM29F sV27Q7LEJ7EJT5vosKRGy5etWlxdUeAjXNwIyrJUcG8azx88/ulugzVrbGCfEuiNZ+Jw 8YtQ== X-Gm-Message-State: APjAAAUKWAdMiqDnXM599ltIYf/m+r2HYfxRz43b1TrSes0p0qkKT54j 1d+oTflfXyDHPx0LnYtJUesUQmgldvk5t0SVjFjfmw== X-Received: by 2002:a05:600c:2214:: with SMTP id z20mr2945175wml.10.1570630276021; Wed, 09 Oct 2019 07:11:16 -0700 (PDT) MIME-Version: 1.0 References: <20191002194346.GA3792@localhost.localdomain> In-Reply-To: <20191002194346.GA3792@localhost.localdomain> From: Ard Biesheuvel Date: Wed, 9 Oct 2019 16:11:04 +0200 Message-ID: Subject: Re: [PATCH] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y To: Narendra K Cc: linux-efi , Mario Limonciello , Geert Uytterhoeven , Thomas Gleixner , Linux Kernel Mailing List , James Morse , Ingo Molnar 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 Hello Narendra, On Wed, 2 Oct 2019 at 21:44, wrote: > > From: Narendra K > > For the EFI_RCI2_TABLE kconfig option, 'make oldconfig' asks the user > for input as it is a new kconfig option in kernel version 5.4. This patch > modifies the kconfig option to ask the user for input only when CONFIG_X86 > or CONFIG_COMPILE_TEST is set to y. > > The patch also makes EFI_RCI2_TABLE kconfig option depend on CONFIG_EFI. > > Signed-off-by: Narendra K > --- > The patch is created on kernel version 5.4-rc1. > > Hi Ard, I have made following changes - > > - changed the prompt string from "EFI Runtime Configuration > Interface Table Version 2 Support" to "EFI RCI Table Version 2 Support" > as the string crossed 80 char limit. > > - added "depends on EFI" so that code builds only when CONFIG_EFI is > set to y. > > - added 'default n' for ease of understanding though default is set to n. > None of these changes are necessary, tbh. 'depends on EFI' is implied by the placement of the option, and default n is indeed the default. > drivers/firmware/efi/Kconfig | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/firmware/efi/Kconfig b/drivers/firmware/efi/Kconfig > index 178ee8106828..6e4c46e8a954 100644 > --- a/drivers/firmware/efi/Kconfig > +++ b/drivers/firmware/efi/Kconfig > @@ -181,7 +181,10 @@ config RESET_ATTACK_MITIGATION > reboots. > > config EFI_RCI2_TABLE > - bool "EFI Runtime Configuration Interface Table Version 2 Support" > + bool > + prompt "EFI RCI Table Version 2 Support" if X86 || COMPILE_TEST You can drop the || COMPILE_TEST as well. > + depends on EFI > + default n > help > Displays the content of the Runtime Configuration Interface > Table version 2 on Dell EMC PowerEdge systems as a binary > -- > 2.18.1 > > -- > With regards, > Narendra K