[PATCH] riscv: alternative: fix typo in macro name

Palmer Dabbelt palmerdabbelt at google.com
Fri Jun 11 08:59:14 PDT 2021


On Mon, 31 May 2021 02:33:10 PDT (-0700), vitaly.wool at konsulko.com wrote:
> 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: 6f4eea90465ad
> 	(riscv: Introduce alternative mechanism to apply errata solution)
> Signed-off-by: Vitaly Wool <vitaly.wool at konsulko.com>
> ---
>  arch/riscv/include/asm/alternative-macros.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/riscv/include/asm/alternative-macros.h b/arch/riscv/include/asm/alternative-macros.h
> index 88c08705f64a..67406c376389 100644
> --- a/arch/riscv/include/asm/alternative-macros.h
> +++ b/arch/riscv/include/asm/alternative-macros.h
> @@ -51,7 +51,7 @@
>  	REG_ASM " " newlen "\n" \
>  	".word " errata_id "\n"
>
> -#define ALT_NEW_CONSTENT(vendor_id, errata_id, enable, new_c) \
> +#define ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c) \
>  	".if " __stringify(enable) " == 1\n"				\
>  	".pushsection .alternative, \"a\"\n"				\
>  	ALT_ENTRY("886b", "888f", __stringify(vendor_id), __stringify(errata_id), "889f - 888f") \
> @@ -69,7 +69,7 @@
>  	"886 :\n"	\
>  	old_c "\n"	\
>  	"887 :\n"	\
> -	ALT_NEW_CONSTENT(vendor_id, errata_id, enable, new_c)
> +	ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c)
>
>  #define _ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, CONFIG_k)	\
>  	__ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, IS_ENABLED(CONFIG_k))

Thanks, this is on fixes.



More information about the linux-riscv mailing list