]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sparc64: fix sparse warning in tsb.c
authorSam Ravnborg <sam@ravnborg.org>
Fri, 16 May 2014 21:26:02 +0000 (23:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 May 2014 02:01:32 +0000 (19:01 -0700)
Fix following warning:
tsb.c:290:5: warning: symbol 'sysctl_tsb_ratio' was not declared. Should it be static?

Add extern declaration in asm/setup.h and remove local declaration
in kernel/sysctl.c

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/setup.h
arch/sparc/mm/tsb.c
kernel/sysctl.c

index b5f5686ca57eff1d4fc15a3334a755d7732b3b0c..0c4f69528d0d3e35eb44eabc7d2edff4cd212acb 100644 (file)
@@ -52,6 +52,7 @@ unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int);
 int handle_ldf_stq(u32 insn, struct pt_regs *regs);
 void handle_ld_nf(u32 insn, struct pt_regs *regs);
 
+extern int sysctl_tsb_ratio;
 #endif
 
 void sun_do_break(void);
index f5d506fdddad3dea459aa97308e9a8872f34ffe8..33ca9360f5919bffd94fb0913460aa30c722adfe 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/page.h>
 #include <asm/pgtable.h>
 #include <asm/mmu_context.h>
+#include <asm/setup.h>
 #include <asm/tsb.h>
 #include <asm/tlb.h>
 #include <asm/oplib.h>
index 74f5b580fe34904fa4d9bcb2790545a323367773..3c202d00f6e899eec32c0a0a80e5ad7b2bb7be48 100644 (file)
@@ -152,10 +152,6 @@ static unsigned long hung_task_timeout_max = (LONG_MAX/HZ);
 #ifdef CONFIG_SPARC
 #endif
 
-#ifdef CONFIG_SPARC64
-extern int sysctl_tsb_ratio;
-#endif
-
 #ifdef __hppa__
 extern int pwrsw_enabled;
 #endif