summaryrefslogtreecommitdiff
path: root/tools/lib/lockdep/uinclude
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2015-11-06 15:47:29 -0500
committerSasha Levin <sasha.levin@oracle.com>2015-11-06 16:01:37 -0500
commit2b62c2dbb902625f5c5a30c0209f261b1cf15a2a (patch)
treed513fb82426b741e8bff213edc14942e57f12dc7 /tools/lib/lockdep/uinclude
parente308e942e122f5de1a180f0b2a4002d09a757f45 (diff)
tools/liblockdep: explicitly declare lockdep API we call from liblockdep
It seems that newer gcc complains about lack of explicit declaration for some of the API we use, add it in. Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'tools/lib/lockdep/uinclude')
-rw-r--r--tools/lib/lockdep/uinclude/linux/lockdep.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/lockdep/uinclude/linux/lockdep.h b/tools/lib/lockdep/uinclude/linux/lockdep.h
index c1552c28507e..c808c7d02d21 100644
--- a/tools/lib/lockdep/uinclude/linux/lockdep.h
+++ b/tools/lib/lockdep/uinclude/linux/lockdep.h
@@ -6,7 +6,7 @@
#include <string.h>
#include <limits.h>
#include <linux/utsname.h>
-
+#include <linux/compiler.h>
#define MAX_LOCK_DEPTH 2000UL
@@ -54,5 +54,6 @@ static struct new_utsname *init_utsname(void)
#define static_obj(x) 1
#define debug_show_all_locks()
+extern void debug_check_no_locks_held(void);
#endif