[PATCH] riscv: hwprobe: use _BITULL() rather than BIT() in MIPS vendor uapi header

Paul Walmsley pjw at kernel.org
Fri Sep 18 17:47:02 PDT 2026


On Thu, 17 Sep 2026, Zongmin Zhou wrote:

> From: Zongmin Zhou <zhouzongmin at kylinos.cn>
> 
> BIT() is a kernel-internal macro that is not available to userspace, but
> the MIPS vendor extension uapi header uses it without defining or
> including it. Any userspace program that includes this header and uses
> RISCV_HWPROBE_VENDOR_EXT_XMIPSEXECTL fails to build.
> 
> Use _BITULL(0) from linux/const.h instead, which keeps the value at 1,
> so there is no ABI change.
> 
> Fixes: bb4b0f8a1bcb ("riscv: hwprobe: Add MIPS vendor extension probing")
> Signed-off-by: Zongmin Zhou <zhouzongmin at kylinos.cn>

Thanks, queued for v7.3-rc.


- Paul



More information about the linux-riscv mailing list