Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2585929ioo; Tue, 24 May 2022 00:58:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1mIIV2/XNwh7xvfPOZyhVMLv6BFh9lngKJrr7SAv2Zj8Sfuke/oM3Tq+zn7nnPWgA8zXt X-Received: by 2002:a17:907:c06:b0:6fa:94f3:df with SMTP id ga6-20020a1709070c0600b006fa94f300dfmr23412349ejc.411.1653379080949; Tue, 24 May 2022 00:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653379080; cv=none; d=google.com; s=arc-20160816; b=ezzD3DbQ3Kk529TfsJrbp6AkhiAcF5d+J0gF3U7StrfaCXTsuBVGBBSnVdEeErNOIa cJ9SoACxjSYyb4Z4dOJo7hdQKybrlAeV4ov4FS8mxyZKc19uN2/J0APicDpsaeYrqMmQ BFBE+zv5XtNBd6CDcBnuKpGpPr7Wyz0b75bfPOO7kQtimbg8WzD/1wwsRvdSyF2HRMy4 kXvpfzpuNm7tggZPAas9yTBlcbIJhtsLKpi1mLoYxBRRw+yLJ7+IijEq8OPAZJtJcudh rE2R9djKI76wsUd8to/EjP3WrGKLv8fcbfBHrTFJ2s1x5GZ3Oizi0SwjcCKJ6IIAxh/x 6Eog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=80tXzgfJOzln0VecOXPkMFRwsZyF2kNe7S7nAWSPye4=; b=K/gVYqCGEnDuyTKr148iZlYTOGBdoLuXg4xu1C7kbPuvDnJOe7S3i8gonvfQvpd5ZP uWPRYTlU8bJ2Eou3EZiJVkNjPdvi2BL/Alw7yaM9N2C5b0AqTd1HWekoNI0Eqrr/sEHu qYPJqvDv53YDjbMAyUilbNdNqB9pjNJtp8gAMP2mHU/1TF+luYxJ74Ej02jqhxCBTVzw tcAyr0tGNEmWj1vBD2WjP3GJoud28IGrzmgQ1VY+Lvn5LPP40/263JYhTai89S1hJzkN ygsuW8nZXPL0+cWS9Deke8dv9biAP5vFXXPhwfaLaFNyDaUR2R1/IoBdLsMyH8IRYFXF Dawg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a056402051500b00424013eaa32si15730616edv.585.2022.05.24.00.57.35; Tue, 24 May 2022 00:58:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235132AbiEXHiA (ORCPT + 99 others); Tue, 24 May 2022 03:38:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234802AbiEXHhz (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 9EF5D6D4F6 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 -- 2.25.1