scst: Provide a definition for bdev_io_opt() for kernel versions < v2.6.32 (merge r7878 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7890 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-01-13 21:31:05 +00:00
parent 3838f3912a
commit e712d32d79

View File

@@ -119,6 +119,14 @@ static inline unsigned int queue_max_hw_sectors(struct request_queue *q)
}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 32)
/* See also commit ac481c20ef8f ("block: Topology ioctls") # v2.6.32 */
static inline int bdev_io_opt(struct block_device *bdev)
{
return 0;
}
#endif
/* <linux/blk-mq.h> */
static inline unsigned int scst_blk_rq_cpu(struct request *rq)