spinlock: macroize assert_spin_locked to avoid bug.h dependency
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 20 Jan 2012 23:20:37 +0000 (18:20 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 28 Feb 2012 22:49:26 +0000 (17:49 -0500)
commit4ebc1b4b0004b45e280940db81888a7863d3a01d
tree5b76edad0f1ee03911d7f699f5d71027d4038573
parentf649e9388cd46ad1634164e56f96ae092ca59e4a
spinlock: macroize assert_spin_locked to avoid bug.h dependency

In spinlock_api_smp.h we find a define for assert_raw_spin_locked
[which uses BUG_ON].   Then assert_spin_locked (as an inline) uses
it, meaning we need bug.h  But rather than put linux/bug.h in such
a highly used file like spinlock.h, we can just make the un-raw
version also a macro.  Then the required bug.h presence is limited
just to those few files who are actually doing the assert testing.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
CC: Thomas Gleixner <tglx@linutronix.de>
include/linux/spinlock.h