Commit d6672c501852d577097f6757c311d937aca0b04b
1 parent
c2fc11985d
Exists in
master
and in
4 other branches
lockdep: build fix
fix: kernel/built-in.o: In function `lockdep_stats_show': lockdep_proc.c:(.text+0x3cb2f): undefined reference to `lockdep_count_forward_deps' kernel/built-in.o: In function `l_show': lockdep_proc.c:(.text+0x3d02b): undefined reference to `lockdep_count_forward_deps' lockdep_proc.c:(.text+0x3d047): undefined reference to `lockdep_count_backward_deps' Signed-off-by: Ingo Molnar <mingo@elte.hu>
Showing 1 changed file with 13 additions and 0 deletions Side-by-side Diff
kernel/lockdep_internals.h
... | ... | @@ -50,8 +50,21 @@ |
50 | 50 | extern unsigned int max_lockdep_depth; |
51 | 51 | extern unsigned int max_recursion_depth; |
52 | 52 | |
53 | +#ifdef CONFIG_PROVE_LOCKING | |
53 | 54 | extern unsigned long lockdep_count_forward_deps(struct lock_class *); |
54 | 55 | extern unsigned long lockdep_count_backward_deps(struct lock_class *); |
56 | +#else | |
57 | +static inline unsigned long | |
58 | +lockdep_count_forward_deps(struct lock_class *class) | |
59 | +{ | |
60 | + return 0; | |
61 | +} | |
62 | +static inline unsigned long | |
63 | +lockdep_count_backward_deps(struct lock_class *class) | |
64 | +{ | |
65 | + return 0; | |
66 | +} | |
67 | +#endif | |
55 | 68 | |
56 | 69 | #ifdef CONFIG_DEBUG_LOCKDEP |
57 | 70 | /* |