diff options
Diffstat (limited to 'kernel/locking/lockdep.c')
-rw-r--r-- | kernel/locking/lockdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 576ba756a32d..eb8a54783fa0 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c | |||
@@ -590,6 +590,7 @@ static int very_verbose(struct lock_class *class) | |||
590 | /* | 590 | /* |
591 | * Is this the address of a static object: | 591 | * Is this the address of a static object: |
592 | */ | 592 | */ |
593 | #ifdef __KERNEL__ | ||
593 | static int static_obj(void *obj) | 594 | static int static_obj(void *obj) |
594 | { | 595 | { |
595 | unsigned long start = (unsigned long) &_stext, | 596 | unsigned long start = (unsigned long) &_stext, |
@@ -616,6 +617,7 @@ static int static_obj(void *obj) | |||
616 | */ | 617 | */ |
617 | return is_module_address(addr) || is_module_percpu_address(addr); | 618 | return is_module_address(addr) || is_module_percpu_address(addr); |
618 | } | 619 | } |
620 | #endif | ||
619 | 621 | ||
620 | /* | 622 | /* |
621 | * To make lock name printouts unique, we calculate a unique | 623 | * To make lock name printouts unique, we calculate a unique |
@@ -4115,6 +4117,7 @@ void debug_check_no_locks_held(void) | |||
4115 | } | 4117 | } |
4116 | EXPORT_SYMBOL_GPL(debug_check_no_locks_held); | 4118 | EXPORT_SYMBOL_GPL(debug_check_no_locks_held); |
4117 | 4119 | ||
4120 | #ifdef __KERNEL__ | ||
4118 | void debug_show_all_locks(void) | 4121 | void debug_show_all_locks(void) |
4119 | { | 4122 | { |
4120 | struct task_struct *g, *p; | 4123 | struct task_struct *g, *p; |
@@ -4172,6 +4175,7 @@ retry: | |||
4172 | read_unlock(&tasklist_lock); | 4175 | read_unlock(&tasklist_lock); |
4173 | } | 4176 | } |
4174 | EXPORT_SYMBOL_GPL(debug_show_all_locks); | 4177 | EXPORT_SYMBOL_GPL(debug_show_all_locks); |
4178 | #endif | ||
4175 | 4179 | ||
4176 | /* | 4180 | /* |
4177 | * Careful: only use this function if you are sure that | 4181 | * Careful: only use this function if you are sure that |