From: Adrian Bunk {,un}register_timer_hook() is the API that should be used. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- include/linux/profile.h | 3 --- kernel/profile.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff -puN include/linux/profile.h~make-kernel-profilectime_hook-static include/linux/profile.h --- a/include/linux/profile.h~make-kernel-profilectime_hook-static +++ a/include/linux/profile.h @@ -78,9 +78,6 @@ int profile_event_unregister(enum profil int register_timer_hook(int (*hook)(struct pt_regs *)); void unregister_timer_hook(int (*hook)(struct pt_regs *)); -/* Timer based profiling hook */ -extern int (*timer_hook)(struct pt_regs *); - struct pt_regs; #else diff -puN kernel/profile.c~make-kernel-profilectime_hook-static kernel/profile.c --- a/kernel/profile.c~make-kernel-profilectime_hook-static +++ a/kernel/profile.c @@ -37,7 +37,7 @@ struct profile_hit { #define NR_PROFILE_GRP (NR_PROFILE_HIT/PROFILE_GRPSZ) /* Oprofile timer tick hook */ -int (*timer_hook)(struct pt_regs *) __read_mostly; +static int (*timer_hook)(struct pt_regs *) __read_mostly; static atomic_t *prof_buffer; static unsigned long prof_len, prof_shift; _