From 10bc776195c4a1d6fe99741811483d264e12971c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 18 Dec 2015 12:39:16 +0000 Subject: [PATCH] scst: Fix a procfs compiler warning git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6773 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_priv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scst/src/scst_priv.h b/scst/src/scst_priv.h index f0f87d8e3..df240b1fc 100644 --- a/scst/src/scst_priv.h +++ b/scst/src/scst_priv.h @@ -931,7 +931,11 @@ static inline int scst_cm_rcv_copy_res_exec(struct scst_cmd *cmd) return SCST_EXEC_NOT_COMPLETED; } +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) +static inline void sess_cm_list_id_cleanup_work_fn(void *p) {} +#else static inline void sess_cm_list_id_cleanup_work_fn(struct work_struct *work) {} +#endif static inline void scst_cm_free_pending_list_ids(struct scst_session *sess) {} static inline bool scst_cm_check_block_all_devs(struct scst_cmd *cmd) { return false; }