archive mirror
 help / color / mirror / Atom feed
From: Nathan Chancellor <>
To: Thomas Bogendoerfer <>
Cc: Nick Desaulniers <>,,,,
	Nathan Chancellor <>
Subject: [PATCH] MIPS: c-r4k: Fix section mismatch for loongson2_sc_init
Date: Tue,  5 Jan 2021 13:34:56 -0700	[thread overview]
Message-ID: <> (raw)

When building with clang, the following section mismatch warning occurs:

WARNING: modpost: vmlinux.o(.text+0x24490): Section mismatch in
reference from the function r4k_cache_init() to the function

This should have been fixed with commit ad4fddef5f23 ("mips: fix Section
mismatch in reference") but it was missed. Remove the improper __init
annotation like that commit did.

Fixes: 078a55fc824c ("MIPS: Delete __cpuinit/__CPUINIT usage from MIPS code")
Signed-off-by: Nathan Chancellor <>
 arch/mips/mm/c-r4k.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c
index 4f976d687ab0..f67297b3175f 100644
--- a/arch/mips/mm/c-r4k.c
+++ b/arch/mips/mm/c-r4k.c
@@ -1593,7 +1593,7 @@ static int probe_scache(void)
 	return 1;
-static void __init loongson2_sc_init(void)
+static void loongson2_sc_init(void)
 	struct cpuinfo_mips *c = &current_cpu_data;

base-commit: 36bbbd0e234d817938bdc52121a0f5473b3e58f5

             reply	other threads:[~2021-01-05 20:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-05 20:34 Nathan Chancellor [this message]
2021-01-06  0:27 ` Huacai Chen
2021-01-07 16:27 ` Thomas Bogendoerfer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] MIPS: c-r4k: Fix section mismatch for loongson2_sc_init' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
on how to clone and mirror all data and code used for this inbox