From e712d32d7934dd328e10ceff6f008269fc61e346 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 13 Jan 2019 21:31:05 +0000 Subject: [PATCH] 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 --- scst/include/backport.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index f92d9e8c0..3348bd080 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -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 + /* */ static inline unsigned int scst_blk_rq_cpu(struct request *rq)