From: Lad Prabhakar <[email protected]>
Compile the andes errata with cflags set to " -mcmodel=medany"
when CONFIG_RISCV_ALTERNATIVE_EARLY is enabled.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Lad Prabhakar <[email protected]>
---
arch/riscv/errata/andes/Makefile | 4 ++++
1 file changed, 4 insertions(+)
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
--
2.34.1
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <[email protected]>:
On Mon, 25 Sep 2023 16:38:44 +0100 you wrote:
> From: Lad Prabhakar <[email protected]>
>
> Compile the andes errata with cflags set to " -mcmodel=medany"
> when CONFIG_RISCV_ALTERNATIVE_EARLY is enabled.
>
> Reported-by: kernel test robot <[email protected]>
> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
> Signed-off-by: Lad Prabhakar <[email protected]>
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html