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 19DFAC433F5 for ; Fri, 28 Jan 2022 08:24:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347258AbiA1IYf (ORCPT ); Fri, 28 Jan 2022 03:24:35 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:35908 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232172AbiA1IYd (ORCPT ); Fri, 28 Jan 2022 03:24:33 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id AD23A21709; Fri, 28 Jan 2022 08:24:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1643358272; 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=dBfvXy3ZkvZC+Pjz9NX1kzPf99ePmDeDzhvOPegq7WU=; b=rGQCk77r/B67R+UZRE1gIbXtbwNWnnWnKh+X43anlGSQ+5npFgsNVP1u2+A9UnSt3dlSoP WEfcsjcesj77YLW0qehRUSowxstkRqest3cTkhmkys8prh6rhn3Mt/Le1VMsq2LConRgIC P+s2kwkl1Rhlo/odqiLY2rxxx/igFx0= Received: from suse.cz (unknown [10.100.216.66]) (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 55F74A3B8D; Fri, 28 Jan 2022 08:24:32 +0000 (UTC) Date: Fri, 28 Jan 2022 09:24:29 +0100 From: Petr Mladek To: Stephen Brennan Cc: Andrew Morton , Arnd Bergmann , Steven Rostedt , Sebastian Reichel , Sergey Senozhatsky , John Ogness , Andy Shevchenko , Luis Chamberlain , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] panic: Add panic_in_progress helper Message-ID: References: <20220126230236.750229-1-stephen.s.brennan@oracle.com> <20220126230236.750229-2-stephen.s.brennan@oracle.com> <2fa9246d-eddf-dd4e-17c6-8d6565237afa@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2fa9246d-eddf-dd4e-17c6-8d6565237afa@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2022-01-27 08:02:19, Stephen Brennan wrote: > On 1/27/22 06:34, Petr Mladek wrote: > > On Wed 2022-01-26 15:02:33, Stephen Brennan wrote: > > > This helper will be used in printk code to avoid deadlocks during > > > panic(). > > > > > > Suggested-by: Petr Mladek > > > Signed-off-by: Stephen Brennan > > > > Reviewed-by: Petr Mladek > > > > Best Regards, > > Petr > > Hi Petr, > > Thanks for the review, however over the night I received two kernel test > robot emails. One indicating a new build error caused by this change on m68k > arch, and the other adding a new warning on riscv. From what I can tell, the > issues are circular dependencies in #includes. So it may be better to either > return to the macro, or move this static inline down to > kernel/printk/printk.c. I think moving it into kernel/printk/printk.c makes > most sense given that the macro requires the correct #includes anyway. Yes, I prefer moving the inline down to printk.c. It looks a bit cleaner than the macro that would not work without another include. Please, explain this in the commit message. Best Regards, Petr