liblockdep fixes for v4.12
cover liblockdep fixes for v4.12
The following changes since commit 56fff1bb0f31358bf81a3c64a8dcd6da0dc44263:
Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux (2017-05-23 09:57:39 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux.git liblockdep-fixes
for you to fetch changes up to 9e6d473e27d81ed1d0e3849d2ef9f35a94a64cd5:
tools: liblockdep: hide liblockdep output from test results (2017-05-25 08:27:54 -0400)
----------------------------------------------------------------
Alexander Sverdlin (2):
tools: add install make target for liblockdep
tools: liblockdep: Don't mix fd-based and stream IO
Ben Hutchings (10):
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()
tools: liblockdep: Fix object file paths used in an out-of-tree build
tools: liblockdep: Remove double-quotes from soname
tools: liblockdep: Use LDFLAGS
Sasha Levin (8):
MAINTAINERS: update email for Sasha Levin
tools: liblockdep: fix compilation for 4.11
tools include: add empty include/linux/sched/mm.h
tools: liblockdep: include err.h
tools: liblockdep: add empty __is_[module,kernel]_percpu_address tools include: add IS_ERR_OR_NULL to err.h
tools: liblockdep: add dummy current_gfp_context()
tools: liblockdep: hide liblockdep output from test results
Vishal Thanki (1):
liblockdep: Remove -lpthread compiler option
MAINTAINERS | 2 +- tools/Makefile | 8 +++-- tools/include/linux/bitops.h | 10 ++++++ tools/include/linux/err.h | 5 +++ tools/include/linux/jhash.h | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/include/linux/sched/clock.h | 0 tools/include/linux/sched/mm.h | 0 tools/include/linux/sched/task.h | 0 tools/include/linux/unaligned/packed_struct.h | 46 +++++++++++++++++++++++++++ tools/lib/lockdep/Makefile | 9 +++--- tools/lib/lockdep/lockdep.c | 17 ++++++++++ tools/lib/lockdep/preload.c | 3 +- tools/lib/lockdep/run_tests.sh | 8 ++--- tools/lib/lockdep/uinclude/linux/bitops.h | 3 -- tools/lib/lockdep/uinclude/linux/compiler.h | 2 ++ tools/lib/lockdep/uinclude/linux/debug_locks.h | 2 +- tools/lib/lockdep/uinclude/linux/irqflags.h | 8 ++--- tools/lib/lockdep/uinclude/linux/kallsyms.h | 3 +- tools/lib/lockdep/uinclude/linux/kernel.h | 20 ++++++++++-- tools/lib/lockdep/uinclude/linux/lockdep.h | 26 ++++++++-------- tools/lib/lockdep/uinclude/linux/module.h | 5 +++ tools/lib/lockdep/uinclude/linux/rcu.h | 2 ++ 22 files changed, 317 insertions(+), 37 deletions(-) create mode 100644 tools/include/linux/jhash.h create mode 100644 tools/include/linux/sched/clock.h create mode 100644 tools/include/linux/sched/mm.h create mode 100644 tools/include/linux/sched/task.h create mode 100644 tools/include/linux/unaligned/packed_struct.h delete mode 100644 tools/lib/lockdep/uinclude/linux/bitops.h
Alexander Sverdlin (2):
tools: add install make target for liblockdep
tools: liblockdep: Don't mix fd-based and stream IO
Ben Hutchings (10):
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()
tools: liblockdep: Fix object file paths used in an out-of-tree build
tools: liblockdep: Remove double-quotes from soname
tools: liblockdep: Use LDFLAGS
Sasha Levin (8):
MAINTAINERS: update email for Sasha Levin
tools: liblockdep: fix compilation for 4.11
tools include: add empty include/linux/sched/mm.h
tools: liblockdep: include err.h
tools: liblockdep: add empty __is_[module,kernel]_percpu_address tools include: add IS_ERR_OR_NULL to err.h
tools: liblockdep: add dummy current_gfp_context()
tools: liblockdep: hide liblockdep output from test results
Vishal Thanki (1):
liblockdep: Remove -lpthread compiler option
MAINTAINERS | 2 +- tools/Makefile | 8 +- tools/include/linux/bitops.h | 10 ++ tools/include/linux/err.h | 5 + tools/include/linux/jhash.h | 175 +++++++++++++++++++++++++ tools/include/linux/sched/clock.h | 0 tools/include/linux/sched/mm.h | 0 tools/include/linux/sched/task.h | 0 tools/include/linux/unaligned/packed_struct.h | 46 +++++++ tools/lib/lockdep/Makefile | 9 +- tools/lib/lockdep/lockdep.c | 17 +++ tools/lib/lockdep/preload.c | 3 +- tools/lib/lockdep/run_tests.sh | 8 +- tools/lib/lockdep/uinclude/linux/bitops.h | 3 - tools/lib/lockdep/uinclude/linux/compiler.h | 2 + tools/lib/lockdep/uinclude/linux/debug_locks.h | 2 +- tools/lib/lockdep/uinclude/linux/irqflags.h | 8 +- tools/lib/lockdep/uinclude/linux/kallsyms.h | 3 +- tools/lib/lockdep/uinclude/linux/kernel.h | 20 ++- tools/lib/lockdep/uinclude/linux/lockdep.h | 26 ++-- tools/lib/lockdep/uinclude/linux/module.h | 5 + tools/lib/lockdep/uinclude/linux/rcu.h | 2 + 22 files changed, 317 insertions(+), 37 deletions(-) create mode 100644 tools/include/linux/jhash.h create mode 100644 tools/include/linux/sched/clock.h create mode 100644 tools/include/linux/sched/mm.h create mode 100644 tools/include/linux/sched/task.h create mode 100644 tools/include/linux/unaligned/packed_struct.h delete mode 100644 tools/lib/lockdep/uinclude/linux/bitops.h
Signature · 1 line
2.11.0
PATCH 1/21 liblockdep: Fix undefined symbol prandom_u32
From: Ben Hutchings <[email protected]>
__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.
--- tools/lib/lockdep/lockdep.c | 7 +++++++ 1 file changed, 7 insertions(+)
tools/lib/lockdep/lockdep.c +7 -0
@@ -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"
Signature · 1 line
2.11.0