scsi_lib: Add #include <scsi/scsi_transport.h>
PATCH 1/1 scsi_lib: Add #include <scsi/scsi_transport.h>
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 <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Johannes Thumshirn <[email protected]>
--- drivers/scsi/scsi_lib.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/scsi_lib.c +1 -0
@@ -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>
Signature · 1 line
2.12.2
Quoted 9 lines · Bart Van Assche
This patch avoids that when building with W=1 the compiler complains that
__scsi_init_queue()has not been declared. See also commitd48777a633d6("scsi: remove__scsi_alloc_queue").Signed-off-by Bart Van Assche <[email protected]>Cc Christoph Hellwig <[email protected]>Cc Hannes Reinecke <[email protected]>Cc Johannes Thumshirn <[email protected]>---
Looks good,
Reviewed-by Johannes Thumshirn <[email protected]>
Signature · 6 lines
Johannes Thumshirn Storage [email protected] +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
Martin K. Petersen
AppliedBart,
Quoted 3 lines
This patch avoids that when building with W=1 the compiler complains that
__scsi_init_queue()has not been declared. See also commitd48777a633d6("scsi: remove__scsi_alloc_queue").
Applied to 4.12/scsi-fixes. Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering