scst_disk builds again on kernel 2.6.30 and before (was broken by r2836).

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2965 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-12-07 17:30:09 +00:00
parent 17cb105213
commit 3fb6b9e6e7
2 changed files with 7 additions and 7 deletions
+7
View File
@@ -132,6 +132,13 @@ static inline int set_cpus_allowed_ptr(struct task_struct *p,
}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
static inline unsigned int queue_max_hw_sectors(struct request_queue *q)
{
return q->max_hw_sectors;
}
#endif
/*
* Version numbers, the same as for the kernel.
*
-7
View File
@@ -2441,13 +2441,6 @@ static struct scst_cmd *scst_post_exec_sn(struct scst_cmd *cmd,
return res;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
static inline unsigned int queue_max_hw_sectors(struct request_queue *q)
{
return q->max_hw_sectors;
}
#endif
/* cmd must be additionally referenced to not die inside */
static int scst_do_real_exec(struct scst_cmd *cmd)
{