[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220624133305.24080-1-yuehaibing@huawei.com>
Date: Fri, 24 Jun 2022 21:33:05 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <paul.walmsley@...ive.com>, <palmer@...belt.com>,
<aou@...s.berkeley.edu>, <lizhengyu3@...wei.com>
CC: <linux-riscv@...ts.infradead.org>, <linux-kernel@...r.kernel.org>,
YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH -next] riscv: kexec: Fix build error without MODULES
arch/riscv/kernel/elf_kexec.c: In function ‘arch_kexec_apply_relocations_add’:
arch/riscv/kernel/elf_kexec.c:352:2: error: unknown type name ‘Elf_Rela’; did you mean ‘Elf64_Rela’?
Elf_Rela *relas;
^~~~~~~~
Elf64_Rela
Always select MODULES_USE_ELF_RELA to fix this.
Fixes: 838b3e28488f ("RISC-V: Load purgatory in kexec_file")
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
arch/riscv/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index d6a07b9add05..a116c9f146a8 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -111,7 +111,7 @@ config RISCV
select HAVE_RSEQ
select IRQ_DOMAIN
select IRQ_FORCED_THREADING
- select MODULES_USE_ELF_RELA if MODULES
+ select MODULES_USE_ELF_RELA
select MODULE_SECTIONS if MODULES
select OF
select OF_EARLY_FLATTREE
--
2.17.1
Powered by blists - more mailing lists