tools/liblockdep: Fix compilation error
authorEunbong Song <eunb.song@samsung.com>
Wed, 13 May 2015 10:02:32 +0000 (06:02 -0400)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 13 May 2015 10:12:20 +0000 (06:12 -0400)
Recent changes to kernel/locking/lockdep.c broke the liblockdep build. Fix
that.

Signed-off-by: Eunbong Song <eunb.song@samsung.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
tools/lib/lockdep/uinclude/linux/kernel.h

index a11e3c357be7f8fb00720694324f26adae0402c5..cd2cc59a5da7900e53084fe19e650438e13af0a2 100644 (file)
@@ -28,6 +28,9 @@
 #define __init
 #define noinline
 #define list_add_tail_rcu list_add_tail
+#define list_for_each_entry_rcu list_for_each_entry
+#define barrier() 
+#define synchronize_sched()
 
 #ifndef CALLER_ADDR0
 #define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0))