scst.h: Fix a sparse warning for kernels 2.6.29..2.6.31

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5983 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-01-21 13:11:56 +00:00
parent eb824e0038
commit 3bb41e9eca

View File

@@ -4381,9 +4381,12 @@ static inline int cancel_delayed_work_sync(struct delayed_work *work)
#endif
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) && defined(CONFIG_LOCKDEP)
extern struct lockdep_map scst_suspend_dep_map;
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32) && \
defined(CONFIG_DEBUG_LOCK_ALLOC)
extern struct lockdep_map scst_suspend_dep_map;
#define scst_assert_activity_suspended() \
WARN_ON(debug_locks && !lock_is_held(&scst_suspend_dep_map))
#else