[PW_SID:959015] rust: Add bug/warn abstractions#366
Conversation
Add new ARCH_WARN_ASM macro for BUG/WARN assembly code sharing with Rust to avoid the duplication. No functional changes. Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
… 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> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
… Rust Add new ARCH_WARN_ASM macro for BUG/WARN assembly code sharing with Rust to avoid the duplication. No functional changes. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Add warn_on macro, uses the BUG/WARN feature (lib/bug.c) via assembly for x86_64/arm64/riscv. The current Rust code simply wraps BUG() macro but doesn't provide the proper debug information. The BUG/WARN feature can only be used from assembly. This uses the assembly code exported by the C side via ARCH_WARN_ASM macro. To avoid duplicating the assembly code, this approach follows the same strategy as the static branch code: it generates the assembly code for Rust using the C preprocessor at compile time. Similarly, ARCH_WARN_REACHABLE is also used at compile time to generate the assembly code; objtool's reachable annotation code. It's used for only architectures that use objtool. For now, Loongarch and arm just use a wrapper for WARN macro. UML doesn't use the assembly BUG/WARN feature; just wrapping generic BUG/WARN functions implemented in C works. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 1: "[v6,1/4] x86/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 2: "[v6,2/4] riscv/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 3: "[v6,3/4] arm64/bug: Add ARCH_WARN_ASM macro for BUG/WARN asm code sharing with Rust" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
|
Patch 4: "[v6,4/4] rust: Add warn_on macro" |
625be03 to
472f050
Compare
PR for series 959015 applied to workflow__riscv__fixes
Name: rust: Add bug/warn abstractions
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=959015
Version: 6