summaryrefslogtreecommitdiff
path: root/arch/mips/kernel/traps.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-07-23 11:42:35 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-07-24 12:07:36 +0200
commita2eec1099bc34557cab59edb6821404272b9b3d8 (patch)
tree721110a8b52b6d9ec373bd312781a0149fc471dd /arch/mips/kernel/traps.c
parente27e1cc9d360a347dbd5a398e9df21cfb4e60e3c (diff)
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>
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r--arch/mips/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 7c32c956156a..06aba49d37c9 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1678,7 +1678,7 @@ __setup("nol2par", nol2parity);
* Some MIPS CPUs can enable/disable for cache parity detection, but do
* it different ways.
*/
-static inline void parity_protection_init(void)
+static inline __init void parity_protection_init(void)
{
#define ERRCTL_PE 0x80000000
#define ERRCTL_L2P 0x00800000