Re: [PATCH v2] irqchip/sifive-plic: Avoid signed shift in interrupt enable mask
From: patchwork-bot+linux-riscv
Date: Sun Nov 01 2026 - 17:25:01 EST
Hello:
This patch was applied to riscv/linux.git (fixes)
by Thomas Gleixner <tglx@xxxxxxxxxx>:
On Sun, 20 Sep 2026 21:06:53 +0800 you wrote:
> __plic_toggle() builds a 32-bit interrupt enable mask using a signed
> integer literal. A valid interrupt selecting bit 31 evaluates 1 << 31,
> which shifts a signed int into its sign bit.
>
> Use BIT(), matching the equivalent mask construction in plic_irq_eoi().
> The resulting mask remains representable in u32 on both RV32 and RV64.
>
> [...]
Here is the summary with links:
- [v2] irqchip/sifive-plic: Avoid signed shift in interrupt enable mask
https://git.kernel.org/riscv/c/0f214e5bbee5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html