From 3bb41e9ecaec2e8e48227fd4d84a3a001a56895d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 21 Jan 2015 13:11:56 +0000 Subject: [PATCH] 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 --- scst/include/scst.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 36207ed32..51b84bc59 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -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