]> 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)
commit612d80784fdc0c2e2ee2e2d901a55ef2f72ebf4b
treef2d4bc3f93c6e34e16a175a93c208e46ca4bf75f
parent62776e4378ae9086115ffd6f8bd9b9c0fe6e6809
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: 7aa1c8f47e7e ("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