]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: Provide all alternative macros all the time
authorAndrew Jones <ajones@ventanamicro.com>
Mon, 14 Apr 2025 12:09:48 +0000 (14:09 +0200)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Mon, 14 Apr 2025 13:07:08 +0000 (13:07 +0000)
commitfb53a9aa5f5b8bf302f3260a7f1f5a24345ce62a
tree4abb3370e46a44227383dfcf99d567c91ed2a3f8
parent1ee1313f4722e6d67c6e9447ee81d24d6e3ff4ad
riscv: Provide all alternative macros all the time

We need to provide all six forms of the alternative macros
(ALTERNATIVE, ALTERNATIVE_2, _ALTERNATIVE_CFG, _ALTERNATIVE_CFG_2,
__ALTERNATIVE_CFG, __ALTERNATIVE_CFG_2) for all four cases derived
from the two ifdefs (RISCV_ALTERNATIVE, __ASSEMBLY__) in order to
ensure all configs can compile. Define this missing ones and ensure
all are defined to consume all parameters passed.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504130710.3IKz6Ibs-lkp@intel.com/
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250414120947.135173-2-ajones@ventanamicro.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/include/asm/alternative-macros.h