]> git.baikalelectronics.ru Git - kernel.git/commit
mips: traps, add __init to parity_protection_init
authorJiri Slaby <jslaby@suse.cz>
Thu, 23 Jul 2020 09:42:35 +0000 (11:42 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 24 Jul 2020 10:07:36 +0000 (12:07 +0200)
commitb8d97b8ba28ab26ce3dc1cb11785ff8361c4a752
tree721110a8b52b6d9ec373bd312781a0149fc471dd
parent1ea5e3894e03e0c689bbcb51a84b3f6bfd80d366
mips: traps, add __init to parity_protection_init

It references __initdata and is called only from an __init function:
trap_init. This avoids section mismatches (which I am seeing with gcc
10).

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/traps.c