Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp882784pxf; Wed, 7 Apr 2021 14:04:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyN+FQ18xd/6FPKr1hu3fay6Qx86HsKzAlYePthVI/iPYfLXwaphoydYlJsOU2hBat7iai4 X-Received: by 2002:a05:6638:2a3:: with SMTP id d3mr5650648jaq.42.1617829488729; Wed, 07 Apr 2021 14:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829488; cv=none; d=google.com; s=arc-20160816; b=diUD4/FP0WYyoy1dKBHzQ/HEt/x/TOL2QZMqWJT8vZCSbG2yV9NykFBviIJCpJqau/ gUnF8cBWDPxxF0L9sZQTYd48xOOzD6oegE6E3Y2P7GM6Xra1jetHysoIrepluJmxl07Z kRnIeeLYsOpjp7lx7I8t4epiJqnyUczPzFJRoelZjMYHcLPJejcNvTmjjWlhaVwHeR7q d62hKm1jjeyPFNrepO9ICnnFAl0EucmMRKH7l9OH0pk0a5+cEDNcJd9da4h8yldGTfLQ gHiiZJlgX3K6b7MiAlx+XfFFXS3JalqYd8jIyIl0GzBQs10orsPsDdFPULQfb0e7qQMu qcKQ== 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; bh=1vVuZ4MvRzeF+pr2v0xmBFFQwK6hdMJanVjlk9hErro=; b=SQfKkThLJ1hrYCksKlwB1f7R2ahsqOwHbdlyWLQcsRCAc9wVBNpsooa9WMFE8tgt2S 8MJAJ2qEEL6hw4FvRuwk+BBHcAmELqYo7z3n4+nUlX2j0DZN4r/hlVOFNMg+yUMK2vRm k5zlZK1cg/WX7j07IdxU+WOzkuS3+HDO8UhFs+8DAbJob8AzdluHim+sRFIDixyM1X1K /lm8A0ATToNVd51gI51iPMKtMHLtPiK1SpA5Bpyyt1AleWIkK577GKij3kVHz0CblfHJ +lDdDx0HKUSTjl7Gvg1vAF2GmrOTjiwQgmyYaqdgEi8MecK8GNM0ZH3bX+95gv/rHXq6 hTTg== ARC-Authentication-Results: i=1; mx.google.com; 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 n29si21909718ioz.104.2021.04.07.14.04.35; Wed, 07 Apr 2021 14:04:48 -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; 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 S1352949AbhDGOaz (ORCPT + 99 others); Wed, 7 Apr 2021 10:30:55 -0400 Received: from mail-pj1-f46.google.com ([209.85.216.46]:42761 "EHLO mail-pj1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352939AbhDGOaw (ORCPT ); Wed, 7 Apr 2021 10:30:52 -0400 Received: by mail-pj1-f46.google.com with SMTP id j6-20020a17090adc86b02900cbfe6f2c96so1415205pjv.1; Wed, 07 Apr 2021 07:30:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1vVuZ4MvRzeF+pr2v0xmBFFQwK6hdMJanVjlk9hErro=; b=p1KK1cOkqF4vkjiGQlQyjZrd/3svw7AsHzTRVm3MhKvVkKR6Dwx4Dfm6sdCjc9Sjqs e9RPRL7lF7O2aTAFYFcgFp91u55IRZM+NAVgSg3WTaHfN7rlTs3eMe0+euKVBIXgJ3j9 Dx7tezCIPDcT5myzik9AmqF8mNzgjQnKa2P1oH64IpJA2yYdZcHqX0zanidKaX0AiS4t rhmEmvIfDKDx+m7h6PfV0SxFb7d6VhzZI1lt0LOypBaHz7Io+8kmdqx8DA71pNVQj8F4 jPzUAMGalLGzmQ6k7AK911TjafA0Gc3OqjWJtEV96H8Ty8DiN14TDbhUigG4+ngbU61s UaRw== X-Gm-Message-State: AOAM531J1WRsK/PlO1ajFnlQH3WLMDcsFiNsNR0QtAUYWNmZSZZxz0uS WHPuV3DT84I9B+teB69JxaU= X-Received: by 2002:a17:90a:6343:: with SMTP id v3mr3482681pjs.153.1617805842980; Wed, 07 Apr 2021 07:30:42 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id k11sm5779292pjs.1.2021.04.07.07.30.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 07:30:41 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 09D07402D7; Wed, 7 Apr 2021 14:30:41 +0000 (UTC) Date: Wed, 7 Apr 2021 14:30:40 +0000 From: Luis Chamberlain To: Andy Shevchenko Cc: Andy Shevchenko , Michael Ellerman , Joerg Roedel , Wei Liu , Michael Kelley , Mike Rapoport , Corey Minyard , Bjorn Andersson , Mathieu Poirier , Andrew Morton , Tetsuo Handa , Vlastimil Babka , "Paul E. McKenney" , "Steven Rostedt (VMware)" , "open list:LINUX FOR POWERPC PA SEMI PWRFICIENT" , Linux Kernel Mailing List , Linux on Hyper-V List , openipmi-developer@lists.sourceforge.net, linux-remoteproc@vger.kernel.org, Linux-Arch , kexec@lists.infradead.org, rcu@vger.kernel.org, Linux FS Devel , Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "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 , Kees Cook , Iurii Zaikin Subject: Re: [PATCH v1 1/1] kernel.h: Split out panic and oops helpers Message-ID: <20210407143040.GB4332@42.do-not-panic.com> References: <20210406133158.73700-1-andriy.shevchenko@linux.intel.com> <20210406165108.GA4332@42.do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 10:33:44AM +0300, Andy Shevchenko wrote: > On Wed, Apr 7, 2021 at 10:25 AM Luis Chamberlain wrote: > > > > On Tue, Apr 06, 2021 at 04:31:58PM +0300, Andy Shevchenko wrote: > > > diff --git a/include/linux/panic_notifier.h b/include/linux/panic_notifier.h > > > new file mode 100644 > > > index 000000000000..41e32483d7a7 > > > --- /dev/null > > > +++ b/include/linux/panic_notifier.h > > > @@ -0,0 +1,12 @@ > > > +/* SPDX-License-Identifier: GPL-2.0 */ > > > +#ifndef _LINUX_PANIC_NOTIFIERS_H > > > +#define _LINUX_PANIC_NOTIFIERS_H > > > + > > > +#include > > > +#include > > > + > > > +extern struct atomic_notifier_head panic_notifier_list; > > > + > > > +extern bool crash_kexec_post_notifiers; > > > + > > > +#endif /* _LINUX_PANIC_NOTIFIERS_H */ > > > > Why is it worth it to add another file just for this? > > The main point is to break tons of loops that prevent having clean > headers anymore. > > In this case, see bug.h, which is very important in this sense. OK based on the commit log this was not clear, it seemed more of moving panic stuff to its own file, so just cleanup. > > Seems like a very > > small file. > > If it is an argument, it's kinda strange. We have much smaller headers. The motivation for such separate file was just not clear on the commit log. Luis