lkml.org 
[lkml]   [2017]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] usb: Fix microtek driver compilation errors
Date
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@intel.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.
\
 
 \ /
  Last update: 2017-06-12 00:23    [W:0.020 / U:1.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site