* [PATCH 0/8] liblockdep fixes for 3.8
@ 2016-07-30 2:55 Levin, Alexander
2016-07-30 2:55 ` [PATCH 1/8] liblockdep: Fix undefined symbol prandom_u32 Levin, Alexander
0 siblings, 1 reply; 2+ messages in thread
From: Levin, Alexander @ 2016-07-30 2:55 UTC (permalink / raw)
To: mingo, peterz; +Cc: linux-kernel, Levin, Alexander
Hi Ingo,
A bunch of fixes that I dropped the ball on back in 3.7.
Mostly compilation fixes for errors that have happened
due to changes on the kernel side in 3.7.
Ben Hutchings (7):
liblockdep: Fix undefined symbol prandom_u32
liblockdep: Reduce MAX_LOCK_DEPTH to avoid overflowing
lock_chain::depth
liblockdep: Define the ARRAY_SIZE() macro
liblockdep: Enable -Wall by default
liblockdep: Fix 'unused value' warnings
liblockdep: Fix 'set but not used' warnings
liblockdep: Fix 'defined but not used' warning for init_utsname()
Vishal Thanki (1):
liblockdep: Remove -lpthread compiler option
tools/lib/lockdep/Makefile | 1 +
tools/lib/lockdep/lockdep.c | 17 +++++++++++++++++
tools/lib/lockdep/run_tests.sh | 4 ++--
tools/lib/lockdep/uinclude/linux/debug_locks.h | 2 +-
tools/lib/lockdep/uinclude/linux/irqflags.h | 8 ++++----
tools/lib/lockdep/uinclude/linux/kernel.h | 14 +++++++++++---
tools/lib/lockdep/uinclude/linux/lockdep.h | 18 ++++++------------
7 files changed, 42 insertions(+), 22 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/8] liblockdep: Fix undefined symbol prandom_u32
2016-07-30 2:55 [PATCH 0/8] liblockdep fixes for 3.8 Levin, Alexander
@ 2016-07-30 2:55 ` Levin, Alexander
0 siblings, 0 replies; 2+ messages in thread
From: Levin, Alexander @ 2016-07-30 2:55 UTC (permalink / raw)
To: mingo, peterz; +Cc: linux-kernel, Ben Hutchings, Sasha Levin
From: Ben Hutchings <ben@decadent.org.uk>
__lock_pin_lock() now calls prandom_u32() which is not defined in
liblockdep. __lock_pin_lock() and its caller lock_pin_lock() are dead
code in liblockdep, but we still need to provide a definition of
prandom_u32() in case lazy binding is disabled.
Fixes: e7904a28f533 ("locking/lockdep, sched/core: Implement a better ...")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
---
tools/lib/lockdep/lockdep.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tools/lib/lockdep/lockdep.c b/tools/lib/lockdep/lockdep.c
index a0a2e3a..443acb1 100644
--- a/tools/lib/lockdep/lockdep.c
+++ b/tools/lib/lockdep/lockdep.c
@@ -1,8 +1,15 @@
#include <linux/lockdep.h>
+#include <stdlib.h>
/* Trivial API wrappers, we don't (yet) have RCU in user-space: */
#define hlist_for_each_entry_rcu hlist_for_each_entry
#define hlist_add_head_rcu hlist_add_head
#define hlist_del_rcu hlist_del
+u32 prandom_u32(void)
+{
+ /* Used only by lock_pin_lock() which is dead code */
+ abort();
+}
+
#include "../../../kernel/locking/lockdep.c"
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-30 3:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-30 2:55 [PATCH 0/8] liblockdep fixes for 3.8 Levin, Alexander
2016-07-30 2:55 ` [PATCH 1/8] liblockdep: Fix undefined symbol prandom_u32 Levin, Alexander
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.