Re: [PATCH] lockdep: Include print_collision and helper functions in DEBUG_LOCKDEP

2016-04-15 Thread Kees Cook
On Wed, Apr 13, 2016 at 5:57 PM, Yang Shi wrote: > pint_collosion and helper functions are just used when DEBUG_LOCKDEP is > selected, so include them in #ifdef CONFIG_DEBUG_LOCKDEP to avoid the below > "defined but not used" warning when DEBUG_LOCKDEP is off: > > kernel/locking/lockdep.c:2051:13:

[PATCH] lockdep: Include print_collision and helper functions in DEBUG_LOCKDEP

2016-04-13 Thread Yang Shi
pint_collosion and helper functions are just used when DEBUG_LOCKDEP is selected, so include them in #ifdef CONFIG_DEBUG_LOCKDEP to avoid the below "defined but not used" warning when DEBUG_LOCKDEP is off: kernel/locking/lockdep.c:2051:13: warning: 'print_collision' defined but not used [-Wunused