From 8631584f47951ecede9a7572bfa9d6dfcba0644b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 14 Oct 2018 21:53:22 +0000 Subject: [PATCH] scst_local: Fix a build regression for older kernels in the scsi-mq support code git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7515 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst_local/scst_local.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index 0528af537..5ce4c1a53 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -11,7 +11,7 @@ */ #include - +#include #include #include #include @@ -24,7 +24,15 @@ #include #include #include - +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) +#include +#else +#include +static inline u32 blk_mq_unique_tag(struct request *rq) +{ + return rq->tag; +} +#endif #include #include #include