[PATCH] riscv: ptrace: avoid BIT() in UAPI header

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Fri Apr 3 01:06:50 PDT 2026


Hello:

This patch was applied to riscv/linux.git (fixes)
by Paul Walmsley <pjw at kernel.org>:

On Mon, 30 Mar 2026 02:42:48 +0000 you wrote:
> BIT() is not available in UAPI headers — the installed linux/bits.h
> (UAPI version) does not define it. Replace BIT() with open-coded
> (1UL << x) which is the standard practice for UAPI headers, and drop
> the linux/bits.h include that was added by commit 98545620b0 ("riscv:
> ptrace: Fix BIT() compilation issues").
> 
> Fixes: 98545620b0 ("riscv: ptrace: Fix BIT() compilation issues")
> Signed-off-by: Michael Neuling <mikey at neuling.org>
> Assisted-by: Claude Opus 4.6 (1M context) <noreply at anthropic.com>
> 
> [...]

Here is the summary with links:
  - riscv: ptrace: avoid BIT() in UAPI header
    https://git.kernel.org/riscv/c/640dc01a97f9

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the linux-riscv mailing list