From: Matthias Rosenfelder Date: Mon, 13 Jun 2011 07:04:05 +0000 (+0000) Subject: sparc32,leon: Added __init declaration to leon_flush_needed() X-Git-Tag: v3.12-rc1~5374^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d999da4d2610460fc5f5ce498f1483b40cc6679;p=kernel%2Fkernel-generic.git sparc32,leon: Added __init declaration to leon_flush_needed() 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 Acked-by: Daniel Hellstrom Signed-off-by: David S. Miller --- 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;