mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user