From 26c47ffc4ecf5610946361376a079d1ad52a0793 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 13 Jan 2019 21:10:46 +0000 Subject: [PATCH] scst: Provide a definition for bdev_io_opt() for kernel versions < v2.6.32 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7878 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 4ed3cc485..26604c190 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)