Skip to content

Commit 858cf86

Browse files
vwoolpalmer-dabbelt
authored andcommitted
riscv: alternative: fix typo in macro name
alternative-macros.h defines ALT_NEW_CONTENT in its assembly part and ALT_NEW_CONSTENT in the C part. Most likely it is the latter that is wrong. Fixes: 6f4eea9 (riscv: Introduce alternative mechanism to apply errata solution) Signed-off-by: Vitaly Wool <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 42e0e0b commit 858cf86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/riscv/include/asm/alternative-macros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
REG_ASM " " newlen "\n" \
5252
".word " errata_id "\n"
5353

54-
#define ALT_NEW_CONSTENT(vendor_id, errata_id, enable, new_c) \
54+
#define ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c) \
5555
".if " __stringify(enable) " == 1\n" \
5656
".pushsection .alternative, \"a\"\n" \
5757
ALT_ENTRY("886b", "888f", __stringify(vendor_id), __stringify(errata_id), "889f - 888f") \
@@ -69,7 +69,7 @@
6969
"886 :\n" \
7070
old_c "\n" \
7171
"887 :\n" \
72-
ALT_NEW_CONSTENT(vendor_id, errata_id, enable, new_c)
72+
ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c)
7373

7474
#define _ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, CONFIG_k) \
7575
__ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, IS_ENABLED(CONFIG_k))

0 commit comments

Comments
 (0)