Skip to contentSkip to conversation

make kernel/profile.c:time_hook static

PATCH New Adrian Bunk 1 participant 1 message Aug 14, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make kernel/profile.c:time_hook static

{,un}register_timer_hook() is the API that should be used.

---

 include/linux/profile.h |    3 ---
 kernel/profile.c        |    2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

eb5ee2402ed38bdaa3587d01a0ec3e80d5d1e438

include/linux/profile.h +0 -3
index eec48f5..ff576d1 100644
@@ -78,9 +78,6 @@ int profile_event_unregister(enum profile_type, struct notifier_block * n);
 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
kernel/profile.c +1 -1
index ed407f5..fa3ee33 100644
@@ -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;