From patchwork Tue May 24 06:54:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 575830 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B22E2C433EF for ; Tue, 24 May 2022 07:10:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232007AbiEXHKI (ORCPT ); Tue, 24 May 2022 03:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232734AbiEXHKH (ORCPT ); Tue, 24 May 2022 03:10:07 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC5E68A30A for ; Tue, 24 May 2022 00:10:05 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:4593:272c:6293:e2cc]) by baptiste.telenet-ops.be with bizsmtp id aXA22700g2jQL2A01XA20k; Tue, 24 May 2022 09:10:03 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ntOg6-001Rds-Ij; Tue, 24 May 2022 09:10:02 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ntORN-0046tw-LZ; Tue, 24 May 2022 08:54:49 +0200 From: Geert Uytterhoeven To: Ard Biesheuvel , Javier Martinez Canillas Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] efi: EFI_DISABLE_RUNTIME should depend on EFI Date: Tue, 24 May 2022 08:54:48 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org 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 with 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 --- drivers/firmware/efi/Kconfig | 1 + 1 file changed, 1 insertion(+) 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