Skip to content

Commit 7c8ee36

Browse files
sravnborgdavem330
authored andcommitted
sparc32: fix sparse warnings in windows.c
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>
1 parent d191723 commit 7c8ee36

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎arch/sparc/kernel/kernel.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ void do_notify_resume(struct pt_regs *regs, unsigned long orig_i0,
109109
asmlinkage int do_sys_sigstack(struct sigstack __user *ssptr,
110110
struct sigstack __user *ossptr,
111111
unsigned long sp);
112+
113+
/* windows.c */
114+
void try_to_clear_window_buffer(struct pt_regs *regs, int who);
115+
112116
#else /* CONFIG_SPARC32 */
113117
#endif /* CONFIG_SPARC32 */
114118
#endif /* !(__SPARC_KERNEL_H) */

‎arch/sparc/kernel/windows.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@
1010
#include <linux/mm.h>
1111
#include <linux/smp.h>
1212

13+
#include <asm/cacheflush.h>
1314
#include <asm/uaccess.h>
1415

16+
#include "kernel.h"
17+
1518
/* Do save's until all user register windows are out of the cpu. */
1619
void flush_user_windows(void)
1720
{

0 commit comments

Comments
 (0)