summaryrefslogtreecommitdiffstats
path: root/tools/lib/lockdep/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/lockdep/common.c')
-rw-r--r--tools/lib/lockdep/common.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/lib/lockdep/common.c b/tools/lib/lockdep/common.c
index 8ef602f18a32..d1c89cc06f5f 100644
--- a/tools/lib/lockdep/common.c
+++ b/tools/lib/lockdep/common.c
@@ -11,14 +11,9 @@ static __thread struct task_struct current_obj;
bool debug_locks = true;
bool debug_locks_silent;
-__attribute__((constructor)) static void liblockdep_init(void)
-{
- lockdep_init();
-}
-
__attribute__((destructor)) static void liblockdep_exit(void)
{
- debug_check_no_locks_held(&current_obj);
+ debug_check_no_locks_held();
}
struct task_struct *__curr(void)
OpenPOWER on IntegriCloud