Re: [PATCH v4 2/3] s390: Implement arch_do_panic()

From: Heiko Carstens

Date: Wed Aug 05 2026 - 06:07:10 EST


On Wed, Aug 05, 2026 at 11:48:37AM +0200, Mete Durlu wrote:
> Implement s390 specific arch_do_panic() instead of using s390 specific
> ifdef sections in vpanic() code.
> No functional changes.
>
> Signed-off-by: Mete Durlu <meted@xxxxxxxxxxxxx>
> ---
> arch/s390/kernel/ipl.c | 6 ++++++
> kernel/panic.c | 3 ---
> 2 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c
> index 3c346b02ceb9..31ff7c12c354 100644
> --- a/arch/s390/kernel/ipl.c
> +++ b/arch/s390/kernel/ipl.c
> @@ -13,6 +13,7 @@
> #include <linux/device.h>
> #include <linux/delay.h>
> #include <linux/kstrtox.h>
> +#include <linux/panic.h>
> #include <linux/panic_notifier.h>
> #include <linux/reboot.h>
> #include <linux/ctype.h>
> @@ -2343,6 +2344,11 @@ static struct notifier_block on_panic_nb = {
> .priority = INT_MIN,
> };
>
> +void arch_do_panic(void)
> +{
> + disabled_wait();
> +}
> +

Please move this to arch/s390/kernel/traps.c somewhere near
kernel_stack_invalid() and monitor_event_exception().