From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5013BCD4F32 for ; Fri, 22 Sep 2023 08:41:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232678AbjIVImA (ORCPT ); Fri, 22 Sep 2023 04:42:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232589AbjIVIl7 (ORCPT ); Fri, 22 Sep 2023 04:41:59 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A56BCA for ; Fri, 22 Sep 2023 01:41:53 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id F1A6C1F45A; Fri, 22 Sep 2023 08:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1695372111; 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=MdAErFIDtJF2aok0GnVr4qbvS7wlbfhjW31kAsaT0TM=; b=LdcE/mVDbs5WzXZqs+t8k/TsRrT9cfNDeqn6vNspXKLljjwMNEUaVRldUYdTMzjr98Syln TWvp71nvLHwXgAkAV3fF+sa37DJxaiKLB1GTkMRsU18NxjQX5jJ3BWJ6vfQDxQ17ZJZnJM dDrnC9H5xXcxiVR6Q2gajnXADH5G+Yo= 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 C0F952C142; Fri, 22 Sep 2023 08:41:51 +0000 (UTC) Date: Fri, 22 Sep 2023 10:41:49 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v2 03/11] printk: Add @flags argument for console_is_usable() Message-ID: References: <20230919230856.661435-1-john.ogness@linutronix.de> <20230919230856.661435-4-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230919230856.661435-4-john.ogness@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2023-09-20 01:14:48, John Ogness wrote: > The caller of console_is_usable() usually needs @console->flags > for its own checks. Rather than having console_is_usable() read > its own copy, make the caller pass in the @flags. This also > ensures that the caller saw the same @flags value. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr