* [PATCH] scsi_lib: Add #include <scsi/scsi_transport.h>
@ 2017-05-02 17:45 Bart Van Assche
2017-05-08 7:35 ` Johannes Thumshirn
2017-05-09 1:44 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: Bart Van Assche @ 2017-05-02 17:45 UTC (permalink / raw)
To: Martin K . Petersen, James Bottomley
Cc: linux-scsi, Bart Van Assche, Christoph Hellwig, Hannes Reinecke,
Johannes Thumshirn
This patch avoids that when building with W=1 the compiler
complains that __scsi_init_queue() has not been declared.
See also commit d48777a633d6 ("scsi: remove __scsi_alloc_queue").
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
---
drivers/scsi/scsi_lib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index d698364df072..b7b340c494ab 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -30,6 +30,7 @@
#include <scsi/scsi_driver.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
+#include <scsi/scsi_transport.h> /* __scsi_init_queue() */
#include <scsi/scsi_dh.h>
#include <trace/events/scsi.h>
--
2.12.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi_lib: Add #include <scsi/scsi_transport.h>
2017-05-02 17:45 [PATCH] scsi_lib: Add #include <scsi/scsi_transport.h> Bart Van Assche
@ 2017-05-08 7:35 ` Johannes Thumshirn
2017-05-09 1:44 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Thumshirn @ 2017-05-08 7:35 UTC (permalink / raw)
To: Bart Van Assche
Cc: Martin K . Petersen, James Bottomley, linux-scsi,
Christoph Hellwig, Hannes Reinecke
On Tue, May 02, 2017 at 10:45:03AM -0700, Bart Van Assche wrote:
> This patch avoids that when building with W=1 the compiler
> complains that __scsi_init_queue() has not been declared.
> See also commit d48777a633d6 ("scsi: remove __scsi_alloc_queue").
>
> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
> Cc: Christoph Hellwig <hch@lst.de>
> Cc: Hannes Reinecke <hare@suse.com>
> Cc: Johannes Thumshirn <jthumshirn@suse.de>
> ---
Looks good,
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
--
Johannes Thumshirn Storage
jthumshirn@suse.de +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi_lib: Add #include <scsi/scsi_transport.h>
2017-05-02 17:45 [PATCH] scsi_lib: Add #include <scsi/scsi_transport.h> Bart Van Assche
2017-05-08 7:35 ` Johannes Thumshirn
@ 2017-05-09 1:44 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2017-05-09 1:44 UTC (permalink / raw)
To: Bart Van Assche
Cc: Martin K . Petersen, James Bottomley, linux-scsi,
Christoph Hellwig, Hannes Reinecke, Johannes Thumshirn
Bart,
> This patch avoids that when building with W=1 the compiler complains
> that __scsi_init_queue() has not been declared. See also commit
> d48777a633d6 ("scsi: remove __scsi_alloc_queue").
Applied to 4.12/scsi-fixes. Thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-09 1:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-02 17:45 [PATCH] scsi_lib: Add #include <scsi/scsi_transport.h> Bart Van Assche
2017-05-08 7:35 ` Johannes Thumshirn
2017-05-09 1:44 ` Martin K. Petersen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.