From: Matthias Rosenfelder <rosenfelder.lkml@googlemail.com>
To: sparclinux@vger.kernel.org
Subject: [PATCH] sparc32,leon: Added __init declaration to leon_flush_needed()
Date: Wed, 11 May 2011 12:10:52 +0000 [thread overview]
Message-ID: <4DCA7CCC.7050404@googlemail.com> (raw)
The function leon_flush_needed() is called only during bootup
from another __init function. Therefore, we can add
__init to leon_flush_needed().
Signed-off-by: Matthias Rosenfelder <rosenfelder.lkml@googlemail.com>
Acked-by: Daniel Hellstrom <daniel@gaisler.com>
---
arch/sparc/mm/leon_mm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/sparc/mm/leon_mm.c b/arch/sparc/mm/leon_mm.c
index c0e0129..e485a68 100644
--- a/arch/sparc/mm/leon_mm.c
+++ b/arch/sparc/mm/leon_mm.c
@@ -226,7 +226,7 @@ void leon3_getCacheRegs(struct leon3_cacheregs *regs)
* Leon2 and Leon3 differ in their way of telling cache information
*
*/
-int leon_flush_needed(void)
+int __init leon_flush_needed(void)
{
int flush_needed = -1;
unsigned int ssize, sets;
--
1.6.4.2
next reply other threads:[~2011-05-11 12:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-11 12:10 Matthias Rosenfelder [this message]
2011-05-16 20:33 ` [PATCH] sparc32,leon: Added __init declaration to David Miller
2011-06-06 23:24 ` [PATCH] sparc32,leon: Added __init declaration to leon_flush_needed() Matthias Rosenfelder
2011-06-06 23:29 ` [PATCH] sparc32,leon: Added __init declaration to David Miller
2011-06-13 17:04 ` [PATCH] sparc32,leon: Added __init declaration to leon_flush_needed() Matthias Rosenfelder
2011-06-13 17:08 ` Matthias Rosenfelder
2011-07-06 15:02 ` [PATCH] sparc32,leon: Added __init declaration to David Miller
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=4DCA7CCC.7050404@googlemail.com \
--to=rosenfelder.lkml@googlemail.com \
--cc=sparclinux@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.