From db35095aa195afe41e8ebce18cf8499ce65eb732 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 26 Nov 2010 08:46:16 +0000 Subject: [PATCH] Fixed a recently introduced sparse warning that was triggered against kernel 2.6.28 and before. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2833 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index 2b8fd7661..e6eeb0a6c 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -146,11 +146,13 @@ struct list_head scst_sess_shut_list; wait_queue_head_t scst_dev_cmd_waitQ; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) #ifdef CONFIG_DEBUG_LOCK_ALLOC static struct lockdep_map scst_suspend_dep_map = { .name = "scst_suspend_activity" }; #endif +#endif static struct mutex scst_suspend_mutex; /* protected by scst_suspend_mutex */ static struct list_head scst_cmd_threads_list;