From patchwork Tue May 24 07:37:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 576115 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 80967C433EF for ; Tue, 24 May 2022 07:37:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231688AbiEXHh5 (ORCPT ); Tue, 24 May 2022 03:37:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234094AbiEXHhz (ORCPT ); Tue, 24 May 2022 03:37:55 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BCC56D4EB for ; Tue, 24 May 2022 00:37:54 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:4593:272c:6293:e2cc]) by michel.telenet-ops.be with bizsmtp id aXdt270012jQL2A06XdtYc; Tue, 24 May 2022 09:37:53 +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 1ntP72-001RqZ-JU; Tue, 24 May 2022 09:37:52 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ntP72-005tgW-4a; Tue, 24 May 2022 09:37:52 +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 v2] efi: EFI_DISABLE_RUNTIME should depend on EFI Date: Tue, 24 May 2022 09:37:51 +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 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(+) 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