timer: Relocate declarations of init_timer_on_stack_key()
[deliverable/linux.git] / include / linux / timer.h
index cbd32ec4dd15a20d6f68bdad546f9884d8a36446..1d364aed18023db094aa104e2613af15b271f092 100644 (file)
@@ -97,6 +97,21 @@ void init_timer_deferrable_key(struct timer_list *timer,
                               const char *name,
                               struct lock_class_key *key);
 
+#ifdef CONFIG_DEBUG_OBJECTS_TIMERS
+extern void init_timer_on_stack_key(struct timer_list *timer,
+                                   const char *name,
+                                   struct lock_class_key *key);
+extern void destroy_timer_on_stack(struct timer_list *timer);
+#else
+static inline void destroy_timer_on_stack(struct timer_list *timer) { }
+static inline void init_timer_on_stack_key(struct timer_list *timer,
+                                          const char *name,
+                                          struct lock_class_key *key)
+{
+       init_timer_key(timer, name, key);
+}
+#endif
+
 #ifdef CONFIG_LOCKDEP
 #define init_timer(timer)                                              \
        do {                                                            \
@@ -150,21 +165,6 @@ void init_timer_deferrable_key(struct timer_list *timer,
        setup_deferrable_timer_on_stack_key((timer), NULL, NULL, (fn), (data))
 #endif
 
-#ifdef CONFIG_DEBUG_OBJECTS_TIMERS
-extern void init_timer_on_stack_key(struct timer_list *timer,
-                                   const char *name,
-                                   struct lock_class_key *key);
-extern void destroy_timer_on_stack(struct timer_list *timer);
-#else
-static inline void destroy_timer_on_stack(struct timer_list *timer) { }
-static inline void init_timer_on_stack_key(struct timer_list *timer,
-                                          const char *name,
-                                          struct lock_class_key *key)
-{
-       init_timer_key(timer, name, key);
-}
-#endif
-
 static inline void setup_timer_key(struct timer_list * timer,
                                const char *name,
                                struct lock_class_key *key,
This page took 0.029513 seconds and 5 git commands to generate.