Skip to content

Commit

Permalink
sparc32: fix sparse warnings in windows.c
Browse files Browse the repository at this point in the history
Fix following warnings:
windows.c:16:6: warning: symbol 'flush_user_windows' was not declared. Should it be static?
windows.c:109:6: warning: symbol 'try_to_clear_window_buffer' was not declared. Should it be static?

Add missing include of cacheflush.h + add declaration of try_to_clear_window_buffer in kernel.h

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Apr 29, 2014
1 parent d191723 commit 7c8ee36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/sparc/kernel/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ void do_notify_resume(struct pt_regs *regs, unsigned long orig_i0,
asmlinkage int do_sys_sigstack(struct sigstack __user *ssptr,
struct sigstack __user *ossptr,
unsigned long sp);

/* windows.c */
void try_to_clear_window_buffer(struct pt_regs *regs, int who);

#else /* CONFIG_SPARC32 */
#endif /* CONFIG_SPARC32 */
#endif /* !(__SPARC_KERNEL_H) */
3 changes: 3 additions & 0 deletions arch/sparc/kernel/windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
#include <linux/mm.h>
#include <linux/smp.h>

#include <asm/cacheflush.h>
#include <asm/uaccess.h>

#include "kernel.h"

/* Do save's until all user register windows are out of the cpu. */
void flush_user_windows(void)
{
Expand Down

0 comments on commit 7c8ee36

Please sign in to comment.