aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorAndrew Jones <[email protected]>2024-01-17 13:09:34 +0000
committerPalmer Dabbelt <[email protected]>2024-01-18 01:46:55 +0000
commit0de65288d75ff96c30e216557d979fb9342c4323 (patch)
tree10380166d863c2625a28adeef32014189a031ea7 /drivers/fpga/fpga-bridge.c
parentMerge patch series "riscv: support kernel-mode Vector" (diff)
downloadkernel-0de65288d75ff96c30e216557d979fb9342c4323.tar.gz
kernel-0de65288d75ff96c30e216557d979fb9342c4323.zip
RISC-V: selftests: cbo: Ensure asm operands match constraints
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. Reported-by: Yunhui Cui <[email protected]> Closes: https://lore.kernel.org/all/[email protected] Fixes: a29e2a48afe3 ("RISC-V: selftests: Add CBO tests") Signed-off-by: Andrew Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions