]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: fix duplicate definitions for exported symbols
authorRongwei Zhang <pudh4418@gmail.com>
Wed, 2 Nov 2022 12:27:39 +0000 (20:27 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 11 Nov 2022 14:44:44 +0000 (15:44 +0100)
commit17e1557812bc073c1a993f505073696f5cbb5296
treef2d4bc3f93c6e34e16a175a93c208e46ca4bf75f
parent60110899320bb8dce3c6cd0767c3c57ede3e0d95
MIPS: fix duplicate definitions for exported symbols

Building with clang-14 fails with:

AS      arch/mips/kernel/relocate_kernel.o
<unknown>:0: error: symbol 'kexec_args' is already defined
<unknown>:0: error: symbol 'secondary_kexec_args' is already defined
<unknown>:0: error: symbol 'kexec_start_address' is already defined
<unknown>:0: error: symbol 'kexec_indirection_page' is already defined
<unknown>:0: error: symbol 'relocate_new_kernel_size' is already defined

It turns out EXPORT defined in asm/asm.h expands to a symbol definition,
so there is no need to define these symbols again. Remove duplicated
symbol definitions.

Fixes: 4eb47cb9d5fb ("MIPS: kdump: Add support")
Signed-off-by: Rongwei Zhang <pudh4418@gmail.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/relocate_kernel.S