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;