Skip to content

Commit

Permalink
sparc32,leon: Added __init declaration to leon_flush_needed()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthias Rosenfelder authored and David S. Miller committed Jul 6, 2011
1 parent 18d85bc commit 6d999da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/mm/leon_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6d999da

Please sign in to comment.