sparc: fix sparse warnings in smp_32.c + smp_64.c
authorSam Ravnborg <sam@ravnborg.org>
Fri, 16 May 2014 21:26:05 +0000 (23:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 May 2014 02:01:33 +0000 (19:01 -0700)
Fix following warnings:
smp_32.c:177:5: warning: symbol 'setup_profiling_timer' was not declared. Should it be static?
smp_64.c:1202:5: warning: symbol 'setup_profiling_timer' was not declared. Should it be static?
smp_64.c:989:6: warning: symbol 'kgdb_roundup_cpus' was not declared. Should it be static?

Add prototype to include/linux/profile.h of setup_profiling_timer
Add missing include to smp_64.c

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/smp_32.c
arch/sparc/kernel/smp_64.c
include/linux/profile.h

index 9d3297d8d7308a23fa9e0674d764f30916e9fa4d..7958242d63c59203105bbfe14918b55bda1807f0 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/seq_file.h>
 #include <linux/cache.h>
 #include <linux/delay.h>
+#include <linux/profile.h>
 #include <linux/cpu.h>
 
 #include <asm/ptrace.h>
index df91e78dbd95c23e1c78a49f8f5c7bd58b57fab0..afc71bf719b1208013fca07bca6c0d58a88b1597 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/ftrace.h>
 #include <linux/cpu.h>
 #include <linux/slab.h>
+#include <linux/kgdb.h>
 
 #include <asm/head.h>
 #include <asm/ptrace.h>
index aaad3861beb875bd498dd07c7672affab50e0c92..b537a25ffa17215996577b65ac88539c959595c9 100644 (file)
@@ -44,6 +44,7 @@ extern int prof_on __read_mostly;
 int profile_init(void);
 int profile_setup(char *str);
 void profile_tick(int type);
+int setup_profiling_timer(unsigned int multiplier);
 
 /*
  * Add multiple profiler hits to a given address: