[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1496673113-6678-1-git-send-email-mariuszx.skamra@intel.com>
Date: Mon, 5 Jun 2017 16:31:53 +0200
From: Mariusz Skamra <mariuszx.skamra@...el.com>
To: linux-kernel@...r.kernel.org
Cc: oliver@...kum.org, Mariusz Skamra <mariuszx.skamra@...el.com>
Subject: [PATCH] usb: Fix microtek driver compilation errors
This fixes compilation errors due to missing scsi_cmnd.h include.
usb/image/microtek.c: In function ‘mts_slave_alloc’:
usb/image/microtek.c:326:3: error: dereferencing pointer to incomplete type
s->inquiry_len = 0x24;
^
usb/image/microtek.c: In function ‘mts_slave_configure’:
usb/image/microtek.c:332:27: error: dereferencing pointer to incomplete type
blk_queue_dma_alignment(s->request_queue, (512 - 1));
^
usb/image/microtek.c: In function ‘mts_scsi_abort’:
usb/image/microtek.c:338:48: error: dereferencing pointer to incomplete type
struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]);
^
etc.
Signed-off-by: Mariusz Skamra <mariuszx.skamra@...el.com>
---
drivers/usb/image/microtek.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c
index a4dbb0c..3622404 100644
--- a/drivers/usb/image/microtek.c
+++ b/drivers/usb/image/microtek.c
@@ -133,6 +133,7 @@
#include <linux/atomic.h>
#include <linux/blkdev.h>
#include "../../scsi/scsi.h"
+#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_host.h>
#include "microtek.h"
--
2.1.4
--------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by
others is strictly prohibited.
Powered by blists - more mailing lists