Commit 0abbb903 authored by Kamal Mostafa's avatar Kamal Mostafa

UBUNTU: SAUCE: hio: blk_queue make_request_fn now returns a blk_qc_t

BugLink: http://bugs.launchpad.net/bugs/1603483Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent a0705c5f
...@@ -8233,10 +8233,12 @@ void ssd_submit_pbio(struct request_queue *q, struct bio *bio) ...@@ -8233,10 +8233,12 @@ void ssd_submit_pbio(struct request_queue *q, struct bio *bio)
return; return;
} }
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0))
static int ssd_make_request(struct request_queue *q, struct bio *bio) static blk_qc_t ssd_make_request(struct request_queue *q, struct bio *bio)
#else #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
static void ssd_make_request(struct request_queue *q, struct bio *bio) static void ssd_make_request(struct request_queue *q, struct bio *bio)
#else
static int ssd_make_request(struct request_queue *q, struct bio *bio)
#endif #endif
{ {
struct ssd_device *dev = q->queuedata; struct ssd_device *dev = q->queuedata;
...@@ -8318,10 +8320,12 @@ static void ssd_make_request(struct request_queue *q, struct bio *bio) ...@@ -8318,10 +8320,12 @@ static void ssd_make_request(struct request_queue *q, struct bio *bio)
} }
out: out:
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0))
return 0; return BLK_QC_T_NONE;
#else #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
return; return;
#else
return 0;
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment