]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mips: fix Section mismatch in reference
authorAnders Roxell <anders.roxell@linaro.org>
Fri, 27 Nov 2020 08:39:43 +0000 (09:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:26:12 +0000 (18:26 +0100)
commitbda45bbc8e033b1d4ee050b3f7bcb1d5cc3aff23
treed6d73d758c5620bed7aefabca1958ed34a1df5f0
parentaeb64ef1f4297cfeb7507a7c57061d03584c8963
mips: fix Section mismatch in reference

commit ad4fddef5f2345aa9214e979febe2f47639c10d9 upstream.

When building mips tinyconfig with clang the following error show up:

WARNING: modpost: vmlinux.o(.text+0x1940c): Section mismatch in reference from the function r4k_cache_init() to the function .init.text:loongson3_sc_init()
The function r4k_cache_init() references
the function __init loongson3_sc_init().
This is often because r4k_cache_init lacks a __init
annotation or the annotation of loongson3_sc_init is wrong.

Remove marked __init from function loongson3_sc_init(),
mips_sc_probe_cm3(), and mips_sc_probe().

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/mm/c-r4k.c
arch/mips/mm/sc-mips.c