]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Fri, 2 May 2025 09:45:34 +0000 (18:45 +0900)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 22 Jul 2025 22:04:53 +0000 (00:04 +0200)
commit8ad470d4e3dcd3db95d8bda6d35909a2ce897ca7
tree8cd1c6b240c7e4b0400227164f7c862707975a83
parent8c8efa93db68bb9fbdb46b93d5b66ff18bdf3d18
riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust

Add new ARCH_WARN_ASM macro for BUG/WARN assembly code sharing with
Rust to avoid the duplication.

No functional changes.

Acked-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Link: https://lore.kernel.org/r/20250502094537.231725-3-fujita.tomonori@gmail.com
[ Remove ending newline in `ARCH_WARN_ASM` content to be closer to the
  original. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
arch/riscv/include/asm/bug.h