Levin, Alexander (Sasha Levin)
e58e871bec
tools/lib/lockdep: Remove private kernel headers
...
Move to using tools/include/ instead.
Signed-off-by: Sasha Levin <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-06-05 09:28:14 +02:00
Ben Hutchings
1baa75406e
tools/lib/lockdep: Fix 'defined but not used' warning for init_utsname()
...
We define init_utsname() as static but not inline, resulting
in a warning for every source file that includes lockdep.h but
doesn't call it.
Since it is only used by lockdep.c, define it in there.
Signed-off-by: Ben Hutchings <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-06-05 09:28:06 +02:00
Ben Hutchings
3752466b6b
tools/lib/lockdep: Fix undefined symbol prandom_u32
...
__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.
Signed-off-by: Ben Hutchings <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: [email protected]
Fixes: e7904a28f5 ("locking/lockdep, sched/core: Implement a better ...")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-06-05 09:28:02 +02:00
Ingo Molnar
b2ed0998f6
tools/lib/lockdep: Fix the build on recent kernels
...
The following upstream commit:
4a389810bc ("kernel/locking/lockdep.c: convert hash tables to hlists")
broke the tools/lib/lockdep build. Add trivial RCU wrappers to fix it.
These wrappers should probably be moved into their own header file.
Cc: Andrew Morton <[email protected] >
Cc: Andrey Ryabinin <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Mike Krinkin <[email protected] >
Cc: Paul E. McKenney <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Sasha Levin <[email protected] >
Signed-off-by: Ingo Molnar <[email protected] >
2016-02-29 10:29:26 +01:00
Sasha Levin
5634bd7d2a
liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace
...
kernel/locking/lockdep.c deals with validating locking scenarios for
various architectures supported by the kernel. There isn't
anything kernel specific going on in lockdep, and when we
compare userspace to other architectures that don't have to deal
with irqs such as s390, they become all too similar.
We wrap kernel/locking/lockdep.c and include/linux/lockdep.h with
several headers which allow us to build and use lockdep from
userspace. We don't touch the kernel code itself which means
that any work done on lockdep in the kernel will automatically
benefit userspace lockdep as well!
Signed-off-by: Sasha Levin <[email protected] >
Signed-off-by: Peter Zijlstra <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2013-11-27 11:55:21 +01:00