From 8b9d2a64fe7e13308e598ec85b4452c05da085a4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 27 Aug 2017 09:06:47 -0700 Subject: [PATCH] scst/src/scst_lib.c: Port to Linux kernel v4.12 --- scst/src/scst_lib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 64d4c3ba8..5e394d01e 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -8366,8 +8366,12 @@ static void scsi_end_async(struct request *req, int error) struct scsi_io_context *sioc = req->end_io_data; int result; +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) TRACE_DBG("sioc %p, cmd %p, error %d / %d", sioc, sioc->data, error, req->errors); +#else + TRACE_DBG("sioc %p, cmd %p, error %d", sioc, sioc->data, error); +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) lockdep_assert_held(req->q->queue_lock);