Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2149970pxb; Sun, 30 Jan 2022 06:40:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/FxUNFtVj0hSMZLFqNr9n626KOUjPKqgs3JdYfpVSAxe/cnCPlPkN1i3/OkfA25AKtGGG X-Received: by 2002:aa7:cd0e:: with SMTP id b14mr16674769edw.414.1643553627138; Sun, 30 Jan 2022 06:40:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643553627; cv=none; d=google.com; s=arc-20160816; b=eyuuvi9cWSSKT0Os+Nbximji2H7nc/p64E2y91dk+yYYlPmyDc6pWwcnP9vir0OWw7 X2DDKPhRLubeBXYN8rh+l/iaUEwv9VJgJzPrjbs7AMytEzat57mNHBfAncp3v2eRhMtX QlwFYGDvCgmDcJUnjyUEN0jcrZMddBWLVj9nfm37SVINXSdIWu0AU3QVGxx+8AUuYNVu 4+sBatT79O556zqH7R2W3kc1tWoSwGjU2PCuu0a+01T9Gj5f56bmIAx8KJaV0VgZLQLE f9XH0rjX4NnwKKKNTAINTQCrWam1+Hwoc4SX9C4PG8XygeEqtZCMODpsGxhxNFqaCajb f9gA== 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=dBfvXy3ZkvZC+Pjz9NX1kzPf99ePmDeDzhvOPegq7WU=; b=OXwsrMzWrewZG49zXFHJ67iAUnWVWWr7MyrtLgw/ZK/DlDQvP23rS/vZegZNg53e2Y 9259k6lGsTEhcF4VYW+PuoNuBnG+kdCM/P33E6e7LqmficiO22uX+lWECanYJ6dVu1U+ QrdYPGpoWZxdqam+Lc00L7M7qS0XJ3+SzlEzhn41NP184NMEw5H3Y75b2S7F+Mo37/Ax K7SPOLAQCaSSJW6J2Fo8vKiubm58VlbxEwPlQbEcsoY1XK5XWYiELN7V/2gTxnznuCCZ RlbGDHIR4umBBAHTGpHtkPx6tBO0mhegXpI7bHEIi3QA+6hW2czFnLxktDGM7kSixusi TcsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=rGQCk77r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si6774596edb.275.2022.01.30.06.40.02; Sun, 30 Jan 2022 06:40:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=rGQCk77r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347256AbiA1IYe (ORCPT + 99 others); Fri, 28 Jan 2022 03:24:34 -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