aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorGravatar Andrew Jones <ajones@ventanamicro.com> 2024-03-22 14:47:28 +0100
committerGravatar Palmer Dabbelt <palmer@rivosinc.com> 2024-04-26 10:21:56 -0700
commit49408400d683ae4f41e414dfcb615166cc93be5c (patch)
tree0207f9fcdcaafebd27c246aeb194d088b3351f73 /Documentation
parentperf riscv: Fix the warning due to the incompatible type (diff)
downloadlinux-49408400d683ae4f41e414dfcb615166cc93be5c.tar.gz
linux-49408400d683ae4f41e414dfcb615166cc93be5c.tar.bz2
linux-49408400d683ae4f41e414dfcb615166cc93be5c.zip
RISC-V: selftests: cbo: Ensure asm operands match constraints, take 2
Commit 0de65288d75f ("RISC-V: selftests: cbo: Ensure asm operands match constraints") attempted to ensure MK_CBO() would always provide to a compile-time constant when given a constant, but cpu_to_le32() isn't necessarily going to do that. Switch to manually shifting the bytes, when needed, to finally get this right. Reported-by: Woodrow Shen <woodrow.shen@sifive.com> Closes: https://lore.kernel.org/all/CABquHATcBTUwfLpd9sPObBgNobqQKEAZ2yxk+TWSpyO5xvpXpg@mail.gmail.com/ Fixes: a29e2a48afe3 ("RISC-V: selftests: Add CBO tests") Fixes: 0de65288d75f ("RISC-V: selftests: cbo: Ensure asm operands match constraints") Signed-off-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20240322134728.151255-2-ajones@ventanamicro.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions