Message ID | 20230925153844.26820-1-prabhakar.mahadev-lad.rj@bp.renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 5abb5c3cd4b38ec32c38a852c83ea04255cecf25 |
Headers | show |
Series | riscv: errata: andes: Makefile: Fix randconfig build issue | expand |
Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt <palmer@rivosinc.com>: On Mon, 25 Sep 2023 16:38:44 +0100 you wrote: > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> > > Compile the andes errata with cflags set to " -mcmodel=medany" > when CONFIG_RISCV_ALTERNATIVE_EARLY is enabled. > > Reported-by: kernel test robot <lkp@intel.com> > Closes: https://lore.kernel.org/oe-kbuild-all/202309111311.8tcq3KVc-lkp@intel.com/ > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> > > [...] Here is the summary with links: - riscv: errata: andes: Makefile: Fix randconfig build issue https://git.kernel.org/riscv/c/5abb5c3cd4b3 You are awesome, thank you!
diff --git a/arch/riscv/errata/andes/Makefile b/arch/riscv/errata/andes/Makefile index 2d644e19caef..6278c389b801 100644 --- a/arch/riscv/errata/andes/Makefile +++ b/arch/riscv/errata/andes/Makefile @@ -1 +1,5 @@ +ifdef CONFIG_RISCV_ALTERNATIVE_EARLY +CFLAGS_errata.o := -mcmodel=medany +endif + obj-y += errata.o