sparc32,leon: Added __init declaration to leon_flush_needed()
authorMatthias Rosenfelder <rosenfelder.lkml@googlemail.com>
Mon, 13 Jun 2011 07:04:05 +0000 (07:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2011 15:01:52 +0000 (08:01 -0700)
The function leon_flush_needed() is called only during bootup from another
__init function. Therefore, we can also add __init to leon_flush_needed().

Signed-off-by: Matthias Rosenfelder <rosenfelder.lkml@googlemail.com>
Acked-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/leon_mm.c

index c0e01297e64eb84a03b8582e135c616b7c129ba0..e485a680499824319b5e9bd6fb750806d99a9429 100644 (file)
@@ -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;