]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/lockdep_internals.h
lockdep: Introduce print_shortest_lock_dependencies
[net-next-2.6.git] / kernel / lockdep_internals.h
index c2f6594966f32c25355cff19634bfe7f596acffd..b115aaa0bf35cd53752558757c643b4b6091a1a4 100644 (file)
@@ -219,9 +219,9 @@ static inline struct lock_list *get_lock_parent(struct lock_list *child)
        return child->parent;
 }
 
-static inline unsigned long get_lock_depth(struct lock_list *child)
+static inline int get_lock_depth(struct lock_list *child)
 {
-       unsigned long depth = 0;
+       int depth = 0;
        struct lock_list *parent;
 
        while ((parent = get_lock_parent(child))) {