X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fdebug_locks.h;h=1678a5de7013a91f08f3f352a773ff90166240f1;hb=57eb06e584be3b702d1ba5c39e0b57ddcdabdc66;hp=88dafa246d87a968b61163ad500dd7da2d5bb812;hpb=2b8ae728a8bada0cca10f30d3e7c52d384e8d5ad;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h index 88dafa246d8..1678a5de701 100644 --- a/include/linux/debug_locks.h +++ b/include/linux/debug_locks.h @@ -24,7 +24,7 @@ extern int debug_locks_off(void); int __ret = 0; \ \ if (unlikely(c)) { \ - if (debug_locks_off()) \ + if (debug_locks_off() && !debug_locks_silent) \ WARN_ON(1); \ __ret = 1; \ } \ @@ -43,6 +43,8 @@ extern int debug_locks_off(void); # define locking_selftest() do { } while (0) #endif +struct task_struct; + #ifdef CONFIG_LOCKDEP extern void debug_show_all_locks(void); extern void debug_show_held_locks(struct task_struct *task);