lkml.org 
[lkml]   [2021]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v1 1/1] kernel.h: Split out panic and oops helpers
    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 <linux/notifier.h>
    > +#include <linux/types.h>
    > +
    > +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? Seems like a very
    small file.

    Luis

    \
     
     \ /
      Last update: 2021-04-06 18:51    [W:4.701 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site