Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2437713ioo; Sat, 28 May 2022 13:41:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWyLpc2WIP1yCTPZwaS1yrmMcFzgqfthnVEAPa80/Tp+KTqrwGtNy5wG4VyZzZ1W9e01jW X-Received: by 2002:a05:6a00:15c5:b0:518:98a7:dc0e with SMTP id o5-20020a056a0015c500b0051898a7dc0emr32660624pfu.30.1653770461695; Sat, 28 May 2022 13:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653770461; cv=none; d=google.com; s=arc-20160816; b=QHwLH58p2tlIfmaoz75RplgK96RhuUHraud6+9SxYNXLGBJKJFA/O1Z32pXvAYaaqC j7BXgNNzztB0P9IOJoxQ4n/gqFaSijP/bztWxDbltRwcbkO7/hl6iUMPVWbN2xk0Oo4l ZRuZ2lXPAU8B9YX/LvA/ZGKFYTlj7MNtlwrG0qPoOdB0pCAXbxjM+GAeUfyF0E0J+3UX lzMzvUSn0xeNGMhhtdCxT8LpWIoTtpq68ElUzOroh+1K5HLKfxcSL5rb5YPnawHf0LzM bI/g67FNmERpfkrjNuuRcsgdRyIMDuaJWU1D4Kix9IHjjiDoKg76luYc5V4QYn6fUDvA Ndwg== 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; bh=sHGZgwegN3rNwS7hCxf11kXYB6vX+qaZpsXxygEOY+M=; b=RROOZNzaAotNKQAwrA9MUWuZKKDvHPyzoM+Jfb786V4SwZiS2VJyqq/3xI4+9vvSip NhcSxR6BaqUsV4SP+a+4PFb3ijPG8s+Qz1LdAusuFwTfo8sYmxfFr29yq076WblWCnMg eLrp3ifxI9XDxFYs2yw26oRgxJMAHS6spFsc+7We0R5lknlj024ADMAVBSgJpfo3gwSf 0JGWZDKjjtYCEoYqmreeCYMlAp/+Z8uKriJl1rVFwah00y03HusWmC6T1GNmy6B6zpKe ntlbJm97l9lMkJMCKljc89o/AdriiGEVtGniQxZa1ln3lj8gH0XzFmfpsYAToAEtZStK me8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9QrKOap; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m9-20020a056a00080900b0050ad0f19e40si10161858pfk.53.2022.05.28.13.41.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:41:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9QrKOap; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 880E61C2061; Sat, 28 May 2022 12:46:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232611AbiE1JZK (ORCPT + 99 others); Sat, 28 May 2022 05:25:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbiE1JZI (ORCPT ); Sat, 28 May 2022 05:25:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12E56B04; Sat, 28 May 2022 02:25:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2BBF7B8009F; Sat, 28 May 2022 09:25:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B60C2C34100; Sat, 28 May 2022 09:25:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653729903; bh=8frCxiKNd8eyxrEJcIesYdoOkj5o3mUQaDZcp8v+trM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=e9QrKOapiM1jkadFYPEwRzyE6o904p8q3NKhkQff6eFFsvRVbO4/z64BFnL5wftWq 3ETgkqpmkrdzFd/aPafqAaPV/ykxIGTKbXY7v8EqhcdF88hHC9zBXuQc/qaHAbVTqV 89e6XoDDdzsvSlulHpfNRdmKnPRNWjthouFKN1neDdNwFodsZgX1LEhAJL+avgLx1j E8KapNp9V1K//i6CeNKzQKL6xWOU7Y9BSR9Oo5bsouQXwpWuKqfdUMuCdIqE9EIv3P qd9NO2oGzPWOXTCbBQ6eYLhT2XXvuiC5wlhUG/COFRbV6r5dlZOeL9KhhfUKPLuekG BT4mfSouDLH5w== Received: by mail-oi1-f169.google.com with SMTP id k187so4241600oif.1; Sat, 28 May 2022 02:25:03 -0700 (PDT) X-Gm-Message-State: AOAM533Ts1CDQBXsxxPca2XnKOY4YLbrBGnWkXGAIpQhyx13C/Y05Sfe dEE8X9H3Ru3bzRo4T6MY1NrRlECW/LtY3+fknJ8= X-Received: by 2002:a05:6808:e8d:b0:322:bac0:2943 with SMTP id k13-20020a0568080e8d00b00322bac02943mr6061590oil.126.1653729902924; Sat, 28 May 2022 02:25:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Sat, 28 May 2022 11:24:51 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] efi: EFI_DISABLE_RUNTIME should depend on EFI To: Geert Uytterhoeven Cc: Javier Martinez Canillas , linux-efi , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 May 2022 at 09:37, Geert Uytterhoeven wrote: > > The EFI_DISABLE_RUNTIME config option controls the use of Extensible > Firmware Interface (EFI) runtime services, which matters only if EFI > support is enabled. > > Hence add a dependency on EFI, to prevent asking the user about this > control knob when configuring a kernel without EFI support. > > Fixes: a031651ff2144a3d ("efi: Allow to enable EFI runtime services by default on RT") > Signed-off-by: Geert Uytterhoeven > Acked-by: Javier Martinez Canillas > --- > v2: > - Add Acked-by, > - Fix typo s/with/without/. > --- > drivers/firmware/efi/Kconfig | 1 + > 1 file changed, 1 insertion(+) > Can we just move this option into the menu/endmenu scope that already depends on EFI? > diff --git a/drivers/firmware/efi/Kconfig b/drivers/firmware/efi/Kconfig > index 4720ba98cec312e7..ff6e7bfa8355cfc2 100644 > --- a/drivers/firmware/efi/Kconfig > +++ b/drivers/firmware/efi/Kconfig > @@ -299,6 +299,7 @@ config EFI_CUSTOM_SSDT_OVERLAYS > > config EFI_DISABLE_RUNTIME > bool "Disable EFI runtime services support by default" > + depends on EFI > default y if PREEMPT_RT > help > Allow to disable the EFI runtime services support by default. This can > -- > 2.25.1 >