[PATCH] RISC-V: selftests: cbo: Ensure asm operands match constraints

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Sat Jan 20 13:09:59 PST 2024


Hello:

This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer at rivosinc.com>:

On Wed, 17 Jan 2024 14:09:34 +0100 you wrote:
> The 'i' constraint expects a constant operand, which fn and its
> constant derivative MK_CBO(fn) are, but passing fn through a function
> as a parameter and using a local variable for MK_CBO(fn) allow the
> compiler to lose sight of that when no optimization is done. Use
> a macro instead of a function and skip the local variable to ensure
> the compiler uses constants, matching the asm constraints.
> 
> [...]

Here is the summary with links:
  - RISC-V: selftests: cbo: Ensure asm operands match constraints
    https://git.kernel.org/riscv/c/0de65288d75f

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