From patchwork Wed Oct 19 14:55:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Ogness X-Patchwork-Id: 5637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp378774wrs; Wed, 19 Oct 2022 08:09:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7DSNIRZ8t1nMlccgoI3wdxYr+9F5zQScRBndsqDpXIUFF0mzu4OuQ8/bbqm1zwzsjHCKYH X-Received: by 2002:a17:906:8446:b0:78d:9f1a:9afc with SMTP id e6-20020a170906844600b0078d9f1a9afcmr7223662ejy.637.1666192184385; Wed, 19 Oct 2022 08:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666192184; cv=none; d=google.com; s=arc-20160816; b=Nv1JdK4MmT52fAcdoxe6idZtBOAheitdYy5PNReRW3PJ5yvszVEARF0r1mOolXlF+8 RhTUqcvnWrCE5njGqAYsgvNQlRIkwOIxd77abT5KYLtmZEZ1ZnJX6nyNd0hueD6+M4Vg oP1e2deZWgymMWpwFWf1GXNFgSMrbF4hnR5EC7okfaVQZXc4RTqo7Obuj0ie0CRPKshu M/nzsa81WWWqPR/bKJ3KKdY+MIyTZE47TNyCI2vi4JqDg41rMo+fsdI23T3oX6C8iA0a rFrTv+cHOVRavrxlNSTpOTW/2EPc/ivmt9O3jQG9/B7n57bsnrNFSGPe4xrRBbWfTmfe syTQ== 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=I1RFx/v+hUfcDGQrJ2jjINSDPUuF1n3qxJyJC8w20Fo=; b=ax+d70vTxKYwqgPPQiVbF28XCNy8WHs4pNAS00JxNuwNbQxRxnPAkYqyuo2zAGRWN/ /MaynXrvKWTqUXXISBdYqLPVaWWnOpAPi+XVhog3Gwr5DkV4jYmELhTTB+t/XZg5N2KH nklLX7resaNW9hjVBnQjGfrr77UH71a07GiDpw+emvj/4goDsioybRrswLaN3jSOVaJE UVnAyxCCTg2wqlqgL4elf90wK6Qf88/IZlg/0yzn7jR3Ml87SJmo/dWqNP/lxYl1dpXa 5kavJRZ8lwrngA6QoEd51qiVF6UtAoxbQUF6hnI7Frs9HchbqcHObm4vPmHbWg5452/R Jsdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Na76VoWV; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=bXJPsQ9I; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg39-20020a170907a42700b0073dd47c3873si13603845ejc.878.2022.10.19.08.09.17; Wed, 19 Oct 2022 08:09:44 -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=Na76VoWV; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=bXJPsQ9I; 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 S232040AbiJSPGU (ORCPT + 99 others); Wed, 19 Oct 2022 11:06:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231804AbiJSPF0 (ORCPT ); Wed, 19 Oct 2022 11:05:26 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EA86192D9F for ; Wed, 19 Oct 2022 07:59:05 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1666191372; 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=I1RFx/v+hUfcDGQrJ2jjINSDPUuF1n3qxJyJC8w20Fo=; b=Na76VoWVvHR8U/NeE5ZW4Qj/8y6x7pe9hXOgikZ8soMx+eMpjEC1D0Ljtsuf7gKOPi1SDV O3H/i2rcTIQgphMFvzlgRv/uQQZ/LEqst5WRZnTXPkWrOxFhCP0cC+X4xmwV9QwQt8kwca JYqIAB/VA0uqLjmgRGxiFV3y2r4MhAxXTUQjFEifIzKwTlsUDV55eIk4i97ma0O49fC/xv vZIf5vcZpREDTpUHMQcJcVIUftRDZvqEiNVhEF4yBmFJvpLY8XZrmnW3/QU04Bt97BGLkB AELofnWb5Zk+quDqxs23odjOpZ43C65y97abkXno++P/O3VWUEZmj6ZrHjrAFQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1666191372; 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=I1RFx/v+hUfcDGQrJ2jjINSDPUuF1n3qxJyJC8w20Fo=; b=bXJPsQ9Ibdzn9lP6cPILeOojpe35Hpu6UnYqHQ3BjsYI2l13B6GR71QgyJ9Uqh17/ObVif drEUXkAw21hR9pBg== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Jason Wessel , Daniel Thompson , Douglas Anderson , Luis Chamberlain , Aaron Tomlin , kgdb-bugreport@lists.sourceforge.net Subject: [PATCH printk v2 19/38] kdb: kdb_io: use console_is_enabled() Date: Wed, 19 Oct 2022 17:01:41 +0206 Message-Id: <20221019145600.1282823-20-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747129136049900246?= X-GMAIL-MSGID: =?utf-8?q?1747129136049900246?= Replace (console->flags & CON_ENABLED) usage with console_is_enabled(). Signed-off-by: John Ogness Reviewed-by: Petr Mladek Reviewed-by: Douglas Anderson --- kernel/debug/kdb/kdb_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/debug/kdb/kdb_io.c b/kernel/debug/kdb/kdb_io.c index 67d3c48a1522..550fe8b456ec 100644 --- a/kernel/debug/kdb/kdb_io.c +++ b/kernel/debug/kdb/kdb_io.c @@ -559,7 +559,7 @@ static void kdb_msg_write(const char *msg, int msg_len) } for_each_console(c) { - if (!(c->flags & CON_ENABLED)) + if (!console_is_enabled(c)) continue; if (c == dbg_io_ops->cons) continue;