Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp314981pxf; Tue, 6 Apr 2021 23:32:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlnM9YSv3DNv/dBfuDNrZkx4Q3W+TVlYXM4CeQ7YgOVWRCr3dXgfGaH/toZOdtfvzvUsLq X-Received: by 2002:a5e:8304:: with SMTP id x4mr1356729iom.53.1617777178277; Tue, 06 Apr 2021 23:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617777178; cv=none; d=google.com; s=arc-20160816; b=DSOQcBMOZ7O7KgA6W1vwCW8JVQ7P0g1t7Q7gOrrQoOlROJ+HNASlK3Q8olB+n7d/bW 9PdpVNcrjw+PWPw255dsySO29u3YlxL9WMLOfLCHyOju8JBMIXpKd90TzPHzOYGQUkhA v9XQ5uCh0sTDOBEKF74i3BfU/U62mrX5EfCV3UFAM34nK0lRjaxY6FosX7wt9R/zvt5O 6/M0p1TymS+Q+jczau28NAdcMRHpcUFVp4kiFixaCmOPesNqgwy2rK4pFIwjj2XnUQuS iS0ZmugDAgi8SO9lek0TlcBnnpyOqC1uigBl6IE8D+D7QLMx7jMP/sxFWYx13M8UzMG2 s1ww== 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=ldSTEHmjelzFfP2h4/1LhSYmJQUiJ2cIWomYku6N1ik=; b=a5XILE7bZ2REvjKYGtNPSKCt/lBGHJPdBmqRzcDIOdLqxKMsbkQnir4Rnj0GauH3ZB 8e7XQ4dyX+ET8DuAHO7tq31oGv8tZkdwYa1li3GK5mADrD6qIAp49Mq0vC5P/NLlmjwc Jm+zhYvdTJ5GEvFOWSKecauNuZvNOAm75vg0rTqUDRdedLBAUQcoIaseaMv08sTgpSo9 F6AFbLSWzbZDQYTEd3kHNqZok9VJw1Ff+SJCZ5p6rVlPL59X/A4S+CttFDKRIt0KYGtw wHt+WaxwdrP/cXNzr0/AnFQO76D4YLIpbauvEhF5CGNNf2z343eFl9IcLWQx9vnZfaLZ To5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SlT7S0jf; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r28si3240399jaq.70.2021.04.06.23.32.46; Tue, 06 Apr 2021 23:32:58 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=SlT7S0jf; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345250AbhDFOjq (ORCPT + 99 others); Tue, 6 Apr 2021 10:39:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:46654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243277AbhDFOjm (ORCPT ); Tue, 6 Apr 2021 10:39:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B468961041; Tue, 6 Apr 2021 14:39:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617719974; bh=G2BOVus52Iqv5BWziu8fp8dbl+kVdMy8pIchFSY+N7Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SlT7S0jfOQB0ipW94M+9K780g98fCxdRJ2QJSXci+Rly0qaDQCHFeXHTOsI463Xi7 S70I+/1OXQBcTfcIkIpl67B5zXSuZCsFVQzUBPU8aiRkhXqG4+Gr/kX784jry6UKjU t/VEsOeLGhmj1jkbfR4iAG4mFD+vamcJPKxJMUcvNbOJ2RhmbWIpBgjpUvC0BANEGE vr4AodXPx2i9E03UI+pPMK1LRyEpkXwf1hJUOL/xYCdBgDtehTwHpHwy3IOxolwkOe Eefs8HR/7P44p9cGBhR5ZazQeydf2U0negBr9o85K3dg0zDsONcgGw+lFDOTompGZC fzX5/aFjCjwKQ== Date: Tue, 6 Apr 2021 17:39:15 +0300 From: Mike Rapoport To: Andy Shevchenko Cc: Michael Ellerman , Joerg Roedel , Wei Liu , Michael Kelley , Corey Minyard , Bjorn Andersson , Mathieu Poirier , Andrew Morton , Tetsuo Handa , Vlastimil Babka , "Paul E. McKenney" , "Steven Rostedt (VMware)" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, openipmi-developer@lists.sourceforge.net, linux-remoteproc@vger.kernel.org, linux-arch@vger.kernel.org, kexec@lists.infradead.org, rcu@vger.kernel.org, linux-fsdevel@vger.kernel.org, Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Corey Minyard , Ohad Ben-Cohen , Arnd Bergmann , Eric Biederman , Josh Triplett , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , Luis Chamberlain , Kees Cook , Iurii Zaikin Subject: Re: [PATCH v1 1/1] kernel.h: Split out panic and oops helpers Message-ID: References: <20210406133158.73700-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210406133158.73700-1-andriy.shevchenko@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 04:31:58PM +0300, Andy Shevchenko wrote: > kernel.h is being used as a dump for all kinds of stuff for a long time. > Here is the attempt to start cleaning it up by splitting out panic and > oops helpers. > > At the same time convert users in header and lib folder to use new header. > Though for time being include new header back to kernel.h to avoid twisted > indirected includes for existing users. > > Signed-off-by: Andy Shevchenko Acked-by: Mike Rapoport > --- > arch/powerpc/kernel/setup-common.c | 1 + > arch/x86/include/asm/desc.h | 1 + > arch/x86/kernel/cpu/mshyperv.c | 1 + > arch/x86/kernel/setup.c | 1 + > drivers/char/ipmi/ipmi_msghandler.c | 1 + > drivers/remoteproc/remoteproc_core.c | 1 + > include/asm-generic/bug.h | 3 +- > include/linux/kernel.h | 84 +----------------------- > include/linux/panic.h | 98 ++++++++++++++++++++++++++++ > include/linux/panic_notifier.h | 12 ++++ > kernel/hung_task.c | 1 + > kernel/kexec_core.c | 1 + > kernel/panic.c | 1 + > kernel/rcu/tree.c | 2 + > kernel/sysctl.c | 1 + > kernel/trace/trace.c | 1 + > 16 files changed, 126 insertions(+), 84 deletions(-) > create mode 100644 include/linux/panic.h > create mode 100644 include/linux/panic_notifier.h > > diff --git a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h > index 476082a83d1c..ceb12683b6d1 100644 > --- a/arch/x86/include/asm/desc.h > +++ b/arch/x86/include/asm/desc.h > @@ -9,6 +9,7 @@ > #include > #include > > +#include This seems unrelated, but I might be missing something. > #include > #include > -- Sincerely yours, Mike.