diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 08:44:24 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-25 09:07:03 +0100 |
commit | 7807fafa52b990abb321f1212416c71e64523ecb (patch) | |
tree | 8110bb5b8f34f70e532e25a42b596d119ea6193e /net/netrom | |
parent | mutex: __used is needed for function referenced only from inline asm (diff) | |
download | linux-7807fafa52b990abb321f1212416c71e64523ecb.tar.xz linux-7807fafa52b990abb321f1212416c71e64523ecb.zip |
lockdep: fix unused function warning in kernel/lockdep.c
Impact: fix build warning
this warning:
kernel/lockdep.c:584: warning: ‘print_lock_dependencies’ defined but not used
triggers because print_lock_dependencies() is only used if both
CONFIG_TRACE_IRQFLAGS and CONFIG_PROVE_LOCKING are enabled.
But adding #ifdefs is not an option here - it would spread out to 4-5
other helper functions and uglify the file. So mark this function
as __used - it's static and the compiler can eliminate it just fine.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'net/netrom')
0 files changed, 0 insertions, 0 deletions