From: Shane McDonald <mcdonald.shane@gmail.com>
To: linux-mips@linux-mips.org
Subject: [MIPS] Correct section mismatch in arch/mips/mm/sc-rm7k.c
Date: Sat, 21 Jun 2008 11:22:58 -0600 [thread overview]
Message-ID: <E1KA6ni-00081s-W8@localhost> (raw)
From: Shane McDonald <mcdonald.shane@gmail.com>
There is a section mismatch in the arch/mips/mm/sc-rm7k.c file.
The function rm7k_sc_init, defined with attribute __cpuinit,
calls rm7k_sc_enable, which is defined with attribute __init.
This patch defines them both as __cpuinit, as well as the function
__rm7k_sc_enable which is called by rm7k_sc_enable.
Signed-off-by: Shane McDonald <mcdonald.shane@gmail.com>
---
arch/mips/mm/sc-rm7k.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -uprN -X orig/Documentation/dontdiff orig/arch/mips/mm/sc-rm7k.c patched/arch/mips/mm/sc-rm7k.c
--- orig/arch/mips/mm/sc-rm7k.c 2008-06-21 05:37:08.000000000 -0600
+++ patched/arch/mips/mm/sc-rm7k.c 2008-06-21 05:40:06.000000000 -0600
@@ -86,7 +86,7 @@ static void rm7k_sc_inv(unsigned long ad
/*
* This function is executed in uncached address space.
*/
-static __init void __rm7k_sc_enable(void)
+static __cpuinit void __rm7k_sc_enable(void)
{
int i;
@@ -107,7 +107,7 @@ static __init void __rm7k_sc_enable(void
}
}
-static __init void rm7k_sc_enable(void)
+static __cpuinit void rm7k_sc_enable(void)
{
if (read_c0_config() & RM7K_CONF_SE)
return;
reply other threads:[~2008-06-21 17:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1KA6ni-00081s-W8@localhost \
--to=mcdonald.shane@gmail.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox