Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc: fix sparse warnings in smp_32.c + smp_64.c

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>

authored by

Sam Ravnborg and committed by
David S. Miller
d3091298 265c1ffa

+3
+1
arch/sparc/kernel/smp_32.c
··· 20 20 #include <linux/seq_file.h> 21 21 #include <linux/cache.h> 22 22 #include <linux/delay.h> 23 + #include <linux/profile.h> 23 24 #include <linux/cpu.h> 24 25 25 26 #include <asm/ptrace.h>
+1
arch/sparc/kernel/smp_64.c
··· 25 25 #include <linux/ftrace.h> 26 26 #include <linux/cpu.h> 27 27 #include <linux/slab.h> 28 + #include <linux/kgdb.h> 28 29 29 30 #include <asm/head.h> 30 31 #include <asm/ptrace.h>
+1
include/linux/profile.h
··· 44 44 int profile_init(void); 45 45 int profile_setup(char *str); 46 46 void profile_tick(int type); 47 + int setup_profiling_timer(unsigned int multiplier); 47 48 48 49 /* 49 50 * Add multiple profiler hits to a given address: