]> git.baikalelectronics.ru Git - kernel.git/commit
kernel.h: split out panic and oops helpers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 1 Jul 2021 01:54:59 +0000 (18:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Jul 2021 18:06:04 +0000 (11:06 -0700)
commitf8c3e738efc9dcfc80d07cb6bb0b39cb0ce1846b
tree6dd795500486f4d8cf3f3e834eb644114edca2e0
parent1a2e5d7465d3fa727063971c2fbcf440d4d08ffd
kernel.h: split out panic and oops helpers

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.

[akpm@linux-foundation.org: thread_info.h needs limits.h]
[andriy.shevchenko@linux.intel.com: ia64 fix]
Link: https://lkml.kernel.org/r/20210520130557.55277-1-andriy.shevchenko@linux.intel.com
Link: https://lkml.kernel.org/r/20210511074137.33666-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Co-developed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Wei Liu <wei.liu@kernel.org>
Acked-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
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
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
55 files changed:
arch/alpha/kernel/setup.c
arch/arm64/kernel/setup.c
arch/ia64/include/asm/pal.h
arch/mips/kernel/relocate.c
arch/mips/sgi-ip22/ip22-reset.c
arch/mips/sgi-ip32/ip32-reset.c
arch/parisc/kernel/pdc_chassis.c
arch/powerpc/kernel/setup-common.c
arch/s390/kernel/ipl.c
arch/sparc/kernel/sstate.c
arch/um/drivers/mconsole_kern.c
arch/um/kernel/um_arch.c
arch/x86/include/asm/desc.h
arch/x86/kernel/cpu/mshyperv.c
arch/x86/kernel/setup.c
arch/x86/purgatory/purgatory.c
arch/x86/xen/enlighten.c
arch/xtensa/platforms/iss/setup.c
drivers/bus/brcmstb_gisb.c
drivers/char/ipmi/ipmi_msghandler.c
drivers/clk/analogbits/wrpll-cln28hpc.c
drivers/edac/altera_edac.c
drivers/firmware/google/gsmi.c
drivers/hv/vmbus_drv.c
drivers/hwtracing/coresight/coresight-cpu-debug.c
drivers/leds/trigger/ledtrig-activity.c
drivers/leds/trigger/ledtrig-heartbeat.c
drivers/leds/trigger/ledtrig-panic.c
drivers/misc/bcm-vk/bcm_vk_dev.c
drivers/misc/ibmasm/heartbeat.c
drivers/misc/pvpanic/pvpanic.c
drivers/net/ipa/ipa_smp2p.c
drivers/parisc/power.c
drivers/power/reset/ltc2952-poweroff.c
drivers/remoteproc/remoteproc_core.c
drivers/s390/char/con3215.c
drivers/s390/char/con3270.c
drivers/s390/char/sclp.c
drivers/s390/char/sclp_con.c
drivers/s390/char/sclp_vt220.c
drivers/s390/char/zcore.c
drivers/soc/bcm/brcmstb/pm/pm-arm.c
drivers/staging/olpc_dcon/olpc_dcon.c
drivers/video/fbdev/hyperv_fb.c
include/asm-generic/bug.h
include/linux/kernel.h
include/linux/panic.h [new file with mode: 0644]
include/linux/panic_notifier.h [new file with mode: 0644]
include/linux/thread_info.h
kernel/hung_task.c
kernel/kexec_core.c
kernel/panic.c
kernel/rcu/tree.c
kernel/sysctl.c
kernel/trace/trace.c