Thread (2 messages) 2 messages, 2 authors, 2021-05-11

Re: [PATCH v3 1/1] kernel.h: Split out panic and oops helpers

From: Alex Elder <hidden>
Date: 2021-05-11 14:36:03
Also in: dri-devel, kexec, linux-alpha, linux-arch, linux-arm-kernel, linux-clk, linux-edac, linux-fbdev, linux-fsdevel, linux-hyperv, linux-leds, linux-pm, linux-remoteproc, linux-s390, linux-staging, linux-um, linuxppc-dev, lkml, netdev, rcu, sparclinux, xen-devel

On 5/11/21 2:41 AM, 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.

There are several purposes of doing this:
- dropping dependency in bug.h
- dropping a loop by moving out panic_notifier.h
- unload kernel.h from something which has its own domain

At the same time convert users tree-wide to use new headers, although
for the time being include new header back to kernel.h to avoid twisted
indirected includes for existing users.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bjorn Andersson <redacted>
Acked-by: Mike Rapoport <redacted>
Acked-by: Corey Minyard <redacted>
Acked-by: Christian Brauner <redacted>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Kees Cook <redacted>
Acked-by: Wei Liu <wei.liu@kernel.org>
Acked-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Co-developed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Acked-by: Helge Deller <deller@gmx.de> # parisc
---
v3: rebased on top of v5.13-rc1, collected a few more tags

Note WRT Andrew's SoB tag above: I have added it since part of the cases
I took from him. Andrew, feel free to amend or tell me how you want me
to do.
Acked-by: Alex Elder <elder@kernel.org>

. . .
quoted hunk ↗ jump to hunk
diff --git a/drivers/net/ipa/ipa_smp2p.c b/drivers/net/ipa/ipa_smp2p.c
index a5f7a79a1923..34b68dc43886 100644
--- a/drivers/net/ipa/ipa_smp2p.c
+++ b/drivers/net/ipa/ipa_smp2p.c
@@ -8,6 +8,7 @@
  #include <linux/device.h>
  #include <linux/interrupt.h>
  #include <linux/notifier.h>
+#include <linux/panic_notifier.h>
  #include <linux/soc/qcom/smem.h>
  #include <linux/soc/qcom/smem_state.h>
  
. . .
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help