Re: [PATCH v3 1/4] s390/bug: Provide ARCH_WARN_ASM for Rust WARN/BUG support

From: Gary Guo

Date: Wed May 27 2026 - 06:54:43 EST


On Thu May 21, 2026 at 5:56 PM BST, Jan Polensky wrote:
> Rust WARN and BUG support relies on ARCH_WARN_ASM to emit __bug_table
> entries. On s390 the macro is missing, so Rust code cannot generate
> proper WARN/BUG metadata for the kernel's bug reporting infrastructure.
>
> Define ARCH_WARN_ASM to produce the same assembly sequence and
> __bug_table entry format as the existing s390 BUG handling, including
> the monitor call. Define ARCH_WARN_REACHABLE as empty since s390 does
> not provide reachability analysis for warning paths.
>
> Signed-off-by: Jan Polensky <japo@xxxxxxxxxxxxx>

Acked-by: Gary Guo <gary@xxxxxxxxxxx>

> ---
> arch/s390/include/asm/bug.h | 12 ++++++++++++
> 1 file changed, 12 insertions(+)