[PATCH v2 4/6] riscv: checksum: Fix CC_HAS_ASM_GOTO_TIED_OUTPUT check
Nathan Chancellor
nathan at kernel.org
Wed Nov 11 16:52:06 PST 2026
The defined symbol is CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT, not
CC_HAS_ASM_GOTO_TIED_OUTPUT.
Fixes: 4525462dd0db ("riscv: lib: Check if output in asm goto supported")
Signed-off-by: Nathan Chancellor <nathan at kernel.org>
---
Cc: Charlie Jenkins <thecharlesjenkins at gmail.com>
Cc: Paul Walmsley <pjw at kernel.org>
Cc: Palmer Dabbelt <palmer at dabbelt.com>
Cc: linux-riscv at lists.infradead.org
---
arch/riscv/lib/csum.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/lib/csum.c b/arch/riscv/lib/csum.c
index 5d4379768e5d..c2b8986a0d39 100644
--- a/arch/riscv/lib/csum.c
+++ b/arch/riscv/lib/csum.c
@@ -142,7 +142,7 @@ do_csum_with_alignment(const unsigned char *buff, int len)
end = (const unsigned long *)(buff + len);
csum = do_csum_common(ptr, end, data);
-#ifdef CC_HAS_ASM_GOTO_TIED_OUTPUT
+#ifdef CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT
if (IS_ENABLED(CONFIG_RISCV_ISA_ZBB) &&
IS_ENABLED(CONFIG_TOOLCHAIN_HAS_ZBB) &&
riscv_has_extension_likely(RISCV_ISA_EXT_ZBB)) {
@@ -186,7 +186,7 @@ do_csum_with_alignment(const unsigned char *buff, int len)
return csum >> 16;
}
-#endif /* CC_HAS_ASM_GOTO_TIED_OUTPUT */
+#endif /* CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT */
#ifndef CONFIG_32BIT
csum += ror64(csum, 32);
csum >>= 32;
--
2.56.0
More information about the linux-riscv
mailing list