Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2779805rwi; Fri, 21 Oct 2022 07:51:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM483DDzlHlKOb8Lg8NHTbUj4awpZcO4ZUeB+CLNJch6dPeICBXIhJqa3Evpv2YhNo133+YE X-Received: by 2002:a05:6402:d06:b0:45a:3ac6:ad26 with SMTP id eb6-20020a0564020d0600b0045a3ac6ad26mr17842385edb.195.1666363890333; Fri, 21 Oct 2022 07:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666363890; cv=none; d=google.com; s=arc-20160816; b=WRqcjYf6h66lY+cW+5KlZOKy/5C9mCi/KlKqNA0oagfz+8pzmSfFr+k+i4EwL/U96B 58e0dxDTc/nPbSBWsksSSlSgEjFxVNYsDe6ntUT6FKceyJhtGdQhQWp5O8OjV0jhTZCu 9aZan0J9ZGQzEl8xlrA79e7s0v8IfFz+0gQb/Zf6MidtJh8si1UHDWaapAe78rQiwGSh 9m5x0Bd5L1ZYeXZQWvX6Q0yeju9bFifxKv4se/X8F7ybPb2Za1cODS/JeEBIagigKOIB j8D0eodfZy/S7AvDs5bmWA7aNW1/ihBkzNge1OJUfQj7GMNtzy8QedjTH02hDy7mC2/D Q/xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5D7sp1XZA4XxiZkk9KwPDoSPnKTcTwnlroZO02siMVA=; b=yZeH/kQzHD8Uemsqtsvgfp8e74BGcqePJG+1zIJMGXh+WDolzk2RvKhjLJ/vFXtlYI vvfyyGMsiQB2oun0MwLTh+Y/XynXHzK5djT0LTMQzMeoOXeRZeEzWzsH4RmPJXyWTaX+ RytKVWxNW2l0mC0pofT8yHOgDG56kw/W2Pnj6mhMT4JJDgtt9cbYS+dIHUI7WwroGhcv 70xxY1bXlNJdqoH2Wf3Y/5BdHN4jFOG78DbSrM+HPNz7rrHWTBYtGWHbtQh3Z31LveN+ gTJKvcDeUDJ98XLlet71xcX9nWy+HktYefiK5Mv3iEPcLXTi7cHpwEpj0Ag/8BowPadb L8Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=FNvbnWCu; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a1709065d0c00b007707ab4be23si21687136ejt.560.2022.10.21.07.51.03; Fri, 21 Oct 2022 07:51:30 -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=@suse.com header.s=susede1 header.b=FNvbnWCu; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230004AbiJUO1e (ORCPT + 99 others); Fri, 21 Oct 2022 10:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbiJUO1a (ORCPT ); Fri, 21 Oct 2022 10:27:30 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 997BB26D903; Fri, 21 Oct 2022 07:27:29 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 544771F8DE; Fri, 21 Oct 2022 14:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1666362448; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5D7sp1XZA4XxiZkk9KwPDoSPnKTcTwnlroZO02siMVA=; b=FNvbnWCudpjC6SgKWFU0ljceCfyqkIMWyweNFwK2N7lja94KH7ephiaFex2HVeY6A5s0Ex DsOlRPUEUUM1l58Ltd9WXAhZQ8Qcvo1iR3yIT81UxmyhGWmUI3jZzrucro7TlSsmzEuEAY uZY8b12uyyF5OCYG4cH+fdiR6XuLNK4= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 14DD02C141; Fri, 21 Oct 2022 14:27:28 +0000 (UTC) Date: Fri, 21 Oct 2022 16:27:27 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Peter Zijlstra , Mike Rapoport , Mathias Nyman , Andrew Morton , linux-usb@vger.kernel.org Subject: Re: [PATCH printk v2 18/38] usb: early: xhci-dbc: use console_is_enabled() Message-ID: References: <20221019145600.1282823-1-john.ogness@linutronix.de> <20221019145600.1282823-19-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221019145600.1282823-19-john.ogness@linutronix.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 On Wed 2022-10-19 17:01:40, John Ogness wrote: > Replace (console->flags & CON_ENABLED) usage with console_is_enabled(). > > Signed-off-by: John Ogness > --- > drivers/usb/early/xhci-dbc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c > index bfb7e2b85299..b1a9c393160b 100644 > --- a/drivers/usb/early/xhci-dbc.c > +++ b/drivers/usb/early/xhci-dbc.c > @@ -927,7 +927,7 @@ void __init early_xdbc_register_console(void) > > static void xdbc_unregister_console(void) > { > - if (early_xdbc_console.flags & CON_ENABLED) > + if (console_is_enabled(&early_xdbc_console)) > unregister_console(&early_xdbc_console); > } Again, we should rather check here if the console is in console_list. But it is old bug. It might be fixed later. The patch does not change the existing behavior. Feel free to use: Reviewed-by: Petr Mladek Best Regards, Petr