aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-11-25 02:44:24 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-25 03:07:03 -0500
commit7807fafa52b990abb321f1212416c71e64523ecb (patch)
tree8110bb5b8f34f70e532e25a42b596d119ea6193e /kernel
parent7918baa555140989eeee1270f48533987d48fdba (diff)
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 'kernel')
-rw-r--r--kernel/lockdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index a42858303233..c137953420e0 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -580,7 +580,8 @@ static void print_lock_class_header(struct lock_class *class, int depth)
580/* 580/*
581 * printk all lock dependencies starting at <entry>: 581 * printk all lock dependencies starting at <entry>:
582 */ 582 */
583static void print_lock_dependencies(struct lock_class *class, int depth) 583static void __used
584print_lock_dependencies(struct lock_class *class, int depth)
584{ 585{
585 struct lock_list *entry; 586 struct lock_list *entry;
586 587