Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1762795rwb; Thu, 17 Nov 2022 01:23:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ZoV9FgdDtZ5pzQ2IHwN0L2HqcyfL7cWVjSwiVpgVP7e+IujQ9ulIH5WCsSboFKlATE+KT X-Received: by 2002:a17:90b:4f45:b0:218:7146:6b3e with SMTP id pj5-20020a17090b4f4500b0021871466b3emr1953632pjb.149.1668677032286; Thu, 17 Nov 2022 01:23:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668677032; cv=none; d=google.com; s=arc-20160816; b=rzR8xxXkpGky2QR6tnzR+jAuBBd+JwkT/ZVgnFWdWjWvYDu/XOhO9/W8vlWDFczluH 52TX5nsWszxi2CZpZMMFCBAAf1gu8TZATG5dygkTNGdqWJZv9T+ztjLLSuS+180WBQ1V HXnOmY6T1lJPF0+QLyyXuS2oINtPMwRXkB3G4JGFeKWN80UUsgXisU1tZOIl1FI78ew3 ZTFEtRvWSQrIOEHxgZqGIZ8pg6Lu+PvGBDRcIld7y2dgy9Q0o2SKMKFtl/sxWyL8mMXL i+9ySIMTL4HX6T1OW3L6DfCOaW0RToxHYwyP3gD8LAdw6iyKA343bGxSJb6cfTN7U1jF ulAw== 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; bh=jwpyMGSESHvVxZeQSW3cOqgu6i5GkbRlc3ir09h31MM=; b=o0Z/NyoRDq9cJRoE2pDNxUT6cJ7vTdjtDZboRjba/xOU+rnwUUqxzN9QyVoSSLMrWN Lj9r12Ui6puou2Jso9V4lAFQdP/I7Z+5EoL4CXtW6jDFT7KpiffMUb27eS0Lbre85W9K ESVfCHEGRMqgpibhmIRHc4uRdBomI6Y3IvuL7eSxccDEH0ZcD+O2qv/hFnxtSVI/TY6y dvA/Hz4sBuz0BMbgx7wM/+WmIckF5bcieJRtUJ/jmRaGzRUAivegs4VHadMbKD0LqVFn 02Co7b4Kh5nlYY3ye6QECc4VxHQvKHelkbawVL6USVgbQtzsV+BdhXtuZ3ZwrilNjR9s uGNw== 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 h32-20020a635320000000b0045a3e1d1a77si589297pgb.111.2022.11.17.01.23.40; Thu, 17 Nov 2022 01:23:52 -0800 (PST) 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 S239514AbiKQISv (ORCPT + 92 others); Thu, 17 Nov 2022 03:18:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234648AbiKQISr (ORCPT ); Thu, 17 Nov 2022 03:18:47 -0500 Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F416B15FC0 for ; Thu, 17 Nov 2022 00:18:43 -0800 (PST) Received: by mail-qv1-f45.google.com with SMTP id x15so738361qvp.1 for ; Thu, 17 Nov 2022 00:18:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jwpyMGSESHvVxZeQSW3cOqgu6i5GkbRlc3ir09h31MM=; b=ni6+6kUAcZesDrCKHk+pgDKEDN4Ds/d9joAqMc7iwhLsWwRwsghq1+Mm6jBzk965zx 34Iaug0nBSFvtao1qZ3gmKLoLJuSNWyoMjC/jokpYssqf6sAlJPwP2x90ND4v3nv5gQY Qs4Oez2Y8nS6L8vzQY0DdNt/qngis7t69GSAyOTPx1/glbalOfxpacgZU4kPEOkz+nPu RUwrddYxVjd6/AVT343AgWKhea7rDX08IHRvaTdYXfj2xfIz5EEE+iZpWxIQUe8b8A77 fSAKlf1ME8WcGSVs6tL9yotUQMyIGWWwfcslClhzvo5A2jV0ts/LQl62KwOTEChtCrt+ 3VUQ== X-Gm-Message-State: ANoB5pk6GFUpyt1r0xp1ktAXxmAoSAxKtIugB/CmbHqUOtbjghHEEMLb grK+N8hltYBtpOVHKv6+4ZfQ0er5JpyIpg== X-Received: by 2002:a05:6214:1552:b0:4b4:a0b0:2dd9 with SMTP id t18-20020a056214155200b004b4a0b02dd9mr1482258qvw.125.1668673122737; Thu, 17 Nov 2022 00:18:42 -0800 (PST) Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com. [209.85.219.179]) by smtp.gmail.com with ESMTPSA id c27-20020a05620a269b00b006ee8874f5fasm54180qkp.53.2022.11.17.00.18.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Nov 2022 00:18:41 -0800 (PST) Received: by mail-yb1-f179.google.com with SMTP id f201so981449yba.12 for ; Thu, 17 Nov 2022 00:18:41 -0800 (PST) X-Received: by 2002:a25:9e84:0:b0:6de:6183:c5c3 with SMTP id p4-20020a259e84000000b006de6183c5c3mr1234957ybq.89.1668673120788; Thu, 17 Nov 2022 00:18:40 -0800 (PST) MIME-Version: 1.0 References: <20221116162152.193147-1-john.ogness@linutronix.de> <20221116162152.193147-24-john.ogness@linutronix.de> In-Reply-To: <20221116162152.193147-24-john.ogness@linutronix.de> From: Geert Uytterhoeven Date: Thu, 17 Nov 2022 09:18:29 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH printk v5 23/40] tty: nfcon: use console_is_registered() To: John Ogness Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Wed, Nov 16, 2022 at 5:22 PM John Ogness wrote: > Currently CON_ENABLED is being (mis)used to identify if the console > has been registered. This is not reliable because it can be set even > though registration failed or it can be unset, even though the console > is registered. Use console_is_registered() instead. > > Signed-off-by: John Ogness > Reviewed-by: Petr Mladek Reviewed-by: Geert Uytterhoeven Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds