All of lore.kernel.org
 help / color / mirror / Atom feed
From: YueHaibing <yuehaibing@huawei.com>
To: <paul.walmsley@sifive.com>, <palmer@dabbelt.com>,
	<aou@eecs.berkeley.edu>, <lizhengyu3@huawei.com>
Cc: <linux-riscv@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
	YueHaibing <yuehaibing@huawei.com>
Subject: [PATCH -next] riscv: kexec: Fix build error without MODULES
Date: Fri, 24 Jun 2022 21:33:05 +0800	[thread overview]
Message-ID: <20220624133305.24080-1-yuehaibing@huawei.com> (raw)

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@huawei.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


WARNING: multiple messages have this Message-ID (diff)
From: YueHaibing <yuehaibing@huawei.com>
To: <paul.walmsley@sifive.com>, <palmer@dabbelt.com>,
	<aou@eecs.berkeley.edu>, <lizhengyu3@huawei.com>
Cc: <linux-riscv@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
	YueHaibing <yuehaibing@huawei.com>
Subject: [PATCH -next] riscv: kexec: Fix build error without MODULES
Date: Fri, 24 Jun 2022 21:33:05 +0800	[thread overview]
Message-ID: <20220624133305.24080-1-yuehaibing@huawei.com> (raw)

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@huawei.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


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

             reply	other threads:[~2022-06-24 13:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24 13:33 YueHaibing [this message]
2022-06-24 13:33 ` [PATCH -next] riscv: kexec: Fix build error without MODULES YueHaibing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220624133305.24080-1-yuehaibing@huawei.com \
    --to=yuehaibing@huawei.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=lizhengyu3@huawei.com \
    --cc=palmer@dabbelt.com \
    --cc=paul.walmsley@sifive.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.