Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp527445qtb; Wed, 19 Oct 2022 08:09:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7i6EJUyUNjoQO3gtma01X/lSnEMdFFl+KvRfNbuBBDUxUozpVxBvaJF7RMIHS2WuumIuG7 X-Received: by 2002:a17:907:845:b0:731:2f6c:6dbd with SMTP id ww5-20020a170907084500b007312f6c6dbdmr7076983ejb.551.1666192158553; Wed, 19 Oct 2022 08:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666192158; cv=none; d=google.com; s=arc-20160816; b=xsrJzRa3D4OCwqx4o4/AXlxzNCVslt3CI7TqyMCEdX73b6k54f43ujFjnhJS8E/qQq iy3ph5qAHbdSqAXU/Gv5MyKW8Yc2FDTZBb833FlBEYWIuZ+ZlulHDFzqCr84eEWBWm1H zk8Kra37QZ7EpOyMgI2T7zcGabkjfKE1fZtEFzw+s0OHyMNFuj8c7TiewPk9QMj7tm0u 5DK6aARPLXGFB5XvX8WF/0MyoKR2AB+hGVXcJgf9Dd7ivGdtOcxDkehda99dQr0Zoaji R41+C06jwHJwxFwrARzTdnmnSGw8TfRExuJhRUe21jJyTqObb26DgwlcG+12G1aZnetQ lyxw== 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 :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=ANsy39dTo+95E1TXTBS5kbs28UVGSNMF6vh3Au875fs=; b=qsn1Xw1p0Zps7XduZd7MxDx3qnPcp8RqLKyS3L63qOTF0gDTFrOttfjAdf9zB1iVPy qBwJF3ofMd49PaBDHxoDeJa/1BH1zipHKBlntzXXrB22N6Vv6su9H0LMW+8wkc1mo9+k 2d+lqRrfNBYY1yz+NKhMOWB3bkB4PquttFJz0Oe4csDniTkOBWEDi15pNWdbuiEhBTfo Wqi3/ego/D0FgjtYl5sVMgA/oFbepruPK5/yLwaF2GUm3XUCM0LxIbvICsGCobUM3DPa 3NVGREl/zAY8RoiamZz+ICN5+H2M/QcL6eMDIfNkh8CqT3dgg/+Z65dWHz9lwxv4i4nd HbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=wBedELtU; dkim=neutral (no key) header.i=@linutronix.de header.b=H1yntJDt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cy16-20020a0564021c9000b0045c645405bdsi14244431edb.240.2022.10.19.08.08.49; Wed, 19 Oct 2022 08:09:18 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=wBedELtU; dkim=neutral (no key) header.i=@linutronix.de header.b=H1yntJDt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231671AbiJSPFQ (ORCPT + 99 others); Wed, 19 Oct 2022 11:05:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232112AbiJSPEF (ORCPT ); Wed, 19 Oct 2022 11:04:05 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ACCBACF55; Wed, 19 Oct 2022 07:58:34 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1666191366; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ANsy39dTo+95E1TXTBS5kbs28UVGSNMF6vh3Au875fs=; b=wBedELtUaj0zJeFDpwmo+Eyrsj3vhnslVQMMnOkfh/q28nnuprj+u3It6GYfDmuHkyH1Z0 jNvgvw0kZdalO6FFSXJu2mqO47j5IZHrSszNINkfYz08dHv/g24BIipbzVvvkCUtwUEd6c /G5ZUEi7k1R4vBBcPi0q5lAPBZi73IxF0DRlGFYb+7B7MuBL8SZrA8ne0tSMtqkeo+Yjiz U1qZfnDQPMOveo2W5xC7mJmp6jwh2VhohUHK7OWYalPnB+MT+EKUDwMWLhHz3pybmY9YEy vCFG/SnEVbJb9yxV5uYCeNZTI0ekEncYcgbhvVRO+iKofY2lSZVNpoCyiHCTQw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1666191366; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ANsy39dTo+95E1TXTBS5kbs28UVGSNMF6vh3Au875fs=; b=H1yntJDtD/aMwcZTAmUYG8IvP4HBmdfAyCl/OBYwZYBB8EKsYSv3K4Ea8bOP1qKbt6ZJ1i mxTyv7pllOslw7AQ== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Ard Biesheuvel , linux-efi@vger.kernel.org Subject: [PATCH printk v2 08/38] efi: earlycon: use console_is_enabled() Date: Wed, 19 Oct 2022 17:01:30 +0206 Message-Id: <20221019145600.1282823-9-john.ogness@linutronix.de> In-Reply-To: <20221019145600.1282823-1-john.ogness@linutronix.de> References: <20221019145600.1282823-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 Replace (console->flags & CON_ENABLED) usage with console_is_enabled(). Signed-off-by: John Ogness --- drivers/firmware/efi/earlycon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/efi/earlycon.c b/drivers/firmware/efi/earlycon.c index a52236e11e5f..8c27eb941d8e 100644 --- a/drivers/firmware/efi/earlycon.c +++ b/drivers/firmware/efi/earlycon.c @@ -30,7 +30,7 @@ static void *efi_fb; static int __init efi_earlycon_remap_fb(void) { /* bail if there is no bootconsole or it has been disabled already */ - if (!earlycon_console || !(earlycon_console->flags & CON_ENABLED)) + if (!earlycon_console || !console_is_enabled(earlycon_console)) return 0; efi_fb = memremap(fb_base, screen_info.lfb_size, @@ -43,7 +43,7 @@ early_initcall(efi_earlycon_remap_fb); static int __init efi_earlycon_unmap_fb(void) { /* unmap the bootconsole fb unless keep_bootcon has left it enabled */ - if (efi_fb && !(earlycon_console->flags & CON_ENABLED)) + if (efi_fb && !console_is_enabled(earlycon_console)) memunmap(efi_fb); return 0; } -- 2.30.2