Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp858392pxf; Wed, 7 Apr 2021 13:26:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb60vC9Y9rEZUVQm9OMrkTUtItGmgYupwSkyA7NPNIikiVpaukBRHu3WnOjOSe4NWTcR4W X-Received: by 2002:a05:6402:7c5:: with SMTP id u5mr6739760edy.7.1617827196480; Wed, 07 Apr 2021 13:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617827196; cv=none; d=google.com; s=arc-20160816; b=U2S+SKJu79+yWLjyCSURv+mnCJk+Di7N5RUleuWzBAjeTnahT3LUAKufMoXYQnI7NA w7fKhyOXjT9sxh2R93y9GkiTQM6thta+11Il0EbYEmbUQRxsgGPMlq+dnL7MHTp6nUrK qc+Z7350Tv1ARRR4fgfpwgHP4vbfVNJNbjh/j34xo8EPrnoDmrddS/wmIrgwedTpPa8a 0V7tA76CIf9mS6/hIvPvTJPGSlNP3KeSJU/GdTigMeUcWuvMOzFmpP0bxKWewp9fih8v T2z/y2X4MemU/DRbGolbqAQ1/aCHop6ewovsd1tzbBjj5ehC9FcnGf3VIz9njTheER+d OaVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QvZSBrH1kmgxKZKSD+pBe7YtJvXFi8yG9kfTKSmsc5Q=; b=WHB5rSgSIvh0GMZUyqjn9SQe4ZeaGBkMCv3Wn3yWCo18PXB+30vEDrJx5inpDA0X2I JkCYWQz2yvaOfw3tmvp9NDLRJGucjgJRcbKMUGlK2j045zQx5PYW7im1gBGI47uYoSOS yelJa3fJEZ26N9YUQu71uyyilVtSFn00+pCiZzcSJuHEYQVe3jn2GshdY+vb3ro3nwi4 rVtr7ZSeYPikqmc9/ZtFN5AQ55Tcydgr4mQxzauQP01u2OnuvVmyTu81IXhZl2+6psnc pGh9B1BZDNtasfyBC6vlctZBPJJH5oSVdKwK+K2GDLb7VlfRDYWKCp8RVk7TGpI7+oFI tGGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O2cXbe0T; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz20si22136395ejc.368.2021.04.07.13.26.10; Wed, 07 Apr 2021 13:26:36 -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=@gmail.com header.s=20161025 header.b=O2cXbe0T; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349442AbhDGHeZ (ORCPT + 99 others); Wed, 7 Apr 2021 03:34:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349438AbhDGHeK (ORCPT ); Wed, 7 Apr 2021 03:34:10 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49350C06174A; Wed, 7 Apr 2021 00:34:01 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id i4so376058pjk.1; Wed, 07 Apr 2021 00:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QvZSBrH1kmgxKZKSD+pBe7YtJvXFi8yG9kfTKSmsc5Q=; b=O2cXbe0TlOnka3Htg7a7ktCEm4u84Apnd4pxAh+QckwGH1N5XUJxAQXGojK8urTwHW S6qKShLuqQpXW7czN7NSppj8uMSG1ILItUs2jRqW9KCOM0ewsGPs471AJdd9fQwkregx 5WJsKLnvvgP9H/rO+GMThc5QqAWIM6vJUjUihrVpN1qBZ1PZrQQurpb3jy0hrvC8q/ga 193Hbzqy2uMvrG2DBivJBITDOAFTPHgkYrA0xxTN2O5/SDYNzxk8E+F9Ofv4wPxpKtYd OpyTo6+F49K8x0yWEkTWuqKF3gTonWd9jxsyeBFNYymfsKPd0N1ZAJ/ruwq0yRVkpYX5 /xXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QvZSBrH1kmgxKZKSD+pBe7YtJvXFi8yG9kfTKSmsc5Q=; b=It3wmurtf3RzDQg5MbvIKfnNC72Wd9j3tdITngALofG7LqQTLW3OPQCtldNm0o7pfN vv6qrC6BmiLflb9Y2jK8e1Tw6F6dvD6Xtb2GLk/VBPQZo76gtaVLMk8/Yl2jhR8i6JcA Yupq8wnJ6MywTGqAe85FUj/riByuVr+xU4sH55ollKcjkNzKPONlw1OXXv0+pfnZ2iC2 vhTPcgreszCN1xGhxtPRCzfUXcUfC6yICtfAitgkGF4+T+HOwb0A9NPf9jbPalcw5SCj hwv8xozO9qPdI7UeUMOvT7Jsv5e7gCF+8/NTzxcHKIkXX8YPoAEAwcMxFwWYOag9Fc3j bU+g== X-Gm-Message-State: AOAM533NK4KGWEkiEc1OC1RcdlQTGg5Jw8Cdq/K5BEQAMNOaF47mYdvu hJWvWJ4hVxY88VhiaFfAIAWd6OrjgZ86cPhgha0= X-Received: by 2002:a17:902:a406:b029:e6:78c4:71c8 with SMTP id p6-20020a170902a406b02900e678c471c8mr1880447plq.17.1617780840716; Wed, 07 Apr 2021 00:34:00 -0700 (PDT) MIME-Version: 1.0 References: <20210406133158.73700-1-andriy.shevchenko@linux.intel.com> <20210406165108.GA4332@42.do-not-panic.com> In-Reply-To: <20210406165108.GA4332@42.do-not-panic.com> From: Andy Shevchenko Date: Wed, 7 Apr 2021 10:33:44 +0300 Message-ID: Subject: Re: [PATCH v1 1/1] kernel.h: Split out panic and oops helpers To: Luis Chamberlain 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > Seems like a very > small file. If it is an argument, it's kinda strange. We have much smaller headers. -- With Best Regards, Andy Shevchenko