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 0641CC64EC4 for ; Thu, 9 Mar 2023 11:28:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229914AbjCIL2J (ORCPT ); Thu, 9 Mar 2023 06:28:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231602AbjCIL1o (ORCPT ); Thu, 9 Mar 2023 06:27:44 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1013E9814 for ; Thu, 9 Mar 2023 03:26:28 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 3B86920042; Thu, 9 Mar 2023 11:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1678361187; 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=1JyAd3b05tzFLupYz6YAu1igKV4UZRoyxnsO7wPUvRo=; b=fl+t7ds86l4W4IrXmm7wX8HBqQofRJ6coWsVs6X9QULqy0qTojEr9ZiEpgeGJBnP2srvYT y8/YkJkRL/c8PVEkcLL3fpfY8IunDKj07U9yvvyWgt1jg7UjkYXblom04btAQADNV9vv4o xKAPkosPanOlhxSHCps2Zqg7pG8lOmg= Received: from suse.cz (unknown [10.100.208.146]) (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 391312C141; Thu, 9 Mar 2023 11:26:23 +0000 (UTC) Date: Thu, 9 Mar 2023 12:26:23 +0100 From: Petr Mladek To: Daniel Thompson Cc: John Ogness , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Jason Wessel , Douglas Anderson , Aaron Tomlin , Luis Chamberlain , kgdb-bugreport@lists.sourceforge.net Subject: Re: [PATCH printk v1 01/18] kdb: do not assume write() callback available Message-ID: References: <20230302195618.156940-1-john.ogness@linutronix.de> <20230302195618.156940-2-john.ogness@linutronix.de> <20230309105240.GA83039@aspen.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230309105240.GA83039@aspen.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2023-03-09 10:52:40, Daniel Thompson wrote: > On Thu, Mar 02, 2023 at 09:02:01PM +0106, John Ogness wrote: > > It is allowed for consoles to provide no write() callback. For > > example ttynull does this. > > > > Check if a write() callback is available before using it. > > > > Signed-off-by: John Ogness > > Reviewed-by: Daniel Thompson > > Any thoughts on best way to land the series. All via one tree or can > we pick and mix? I would prefer to take everything via the printk tree because most changes are there. Otherwise, we might end up with non-necessary cross-tree merge conflicts. Also I would know when all pieces are there. That said, this seems to be the only change in kernel/debug/kdb/kdb_io.c and it is relatively independent. So, it should not be a big problem to take it separately. Best Regards, Petr