From: Ingo Molnar Date: Tue, 25 Nov 2008 07:44:24 +0000 (+0100) Subject: lockdep: fix unused function warning in kernel/lockdep.c X-Git-Tag: v2.6.29-rc1~572^2^4~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7807fafa52b990abb321f1212416c71e64523ecb;p=pandora-kernel.git 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 --- Reading git-diff-tree failed