linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] target: fix tcm_loop build errors when SCSI=m
@ 2018-08-06 17:13 Randy Dunlap
  2018-08-06 23:07 ` Bart Van Assche
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2018-08-06 17:13 UTC (permalink / raw)
  To: linux-scsi, LKML, target-devel
  Cc: Nicholas A. Bellinger, Bart Van Assche, Martin K. Petersen,
	James E.J. Bottomley

From: Randy Dunlap <rdunlap@infradead.org>

Fix build errors when CONFIG_SCSI=m and CONFIG_LOOPBACK_TARGET=y
by making LOOPBACK_TARGET depend on SCSI.

drivers/target/loopback/tcm_loop.o: In function `tcm_loop_port_link':
tcm_loop.c:(.text+0x445): undefined reference to `scsi_add_device'
drivers/target/loopback/tcm_loop.o: In function `tcm_loop_driver_remove':
tcm_loop.c:(.text+0x55c): undefined reference to `scsi_remove_host'
tcm_loop.c:(.text+0x564): undefined reference to `scsi_host_put'
drivers/target/loopback/tcm_loop.o: In function `tcm_loop_submission_work':
tcm_loop.c:(.text+0x7c4): undefined reference to `scmd_printk'
drivers/target/loopback/tcm_loop.o: In function `tcm_loop_driver_probe':
tcm_loop.c:(.text+0x7fb): undefined reference to `scsi_host_alloc'
tcm_loop.c:(.text+0x85b): undefined reference to `scsi_add_host_with_dma'
tcm_loop.c:(.text+0x896): undefined reference to `scsi_host_put'
drivers/target/loopback/tcm_loop.o: In function `tcm_loop_port_unlink':
tcm_loop.c:(.text+0x962): undefined reference to `scsi_device_lookup'
tcm_loop.c:(.text+0x972): undefined reference to `scsi_remove_device'
tcm_loop.c:(.text+0x97a): undefined reference to `scsi_device_put'
drivers/target/loopback/tcm_loop.o:(.data+0x210): undefined reference to `scsi_change_queue_depth'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: linux-scsi@vger.kernel.org
Cc: target-devel@vger.kernel.org
Cc: Bart Van Assche <bart.vanassche@wdc.com>
---
 drivers/target/loopback/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20180806.orig/drivers/target/loopback/Kconfig
+++ linux-next-20180806/drivers/target/loopback/Kconfig
@@ -1,5 +1,6 @@
 config LOOPBACK_TARGET
 	tristate "TCM Virtual SAS target and Linux/SCSI LDD fabric loopback module"
+	depends on SCSI
 	help
 	  Say Y here to enable the TCM Virtual SAS target and Linux/SCSI LLD
 	  fabric loopback module.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] target: fix tcm_loop build errors when SCSI=m
  2018-08-06 17:13 [PATCH] target: fix tcm_loop build errors when SCSI=m Randy Dunlap
@ 2018-08-06 23:07 ` Bart Van Assche
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Van Assche @ 2018-08-06 23:07 UTC (permalink / raw)
  To: linux-scsi, rdunlap, linux-kernel, target-devel
  Cc: jejb, martin.petersen, nab

On Mon, 2018-08-06 at 10:13 -0700, Randy Dunlap wrote:
> Fix build errors when CONFIG_SCSI=m and CONFIG_LOOPBACK_TARGET=y
> by making LOOPBACK_TARGET depend on SCSI.

Is this a longstanding or a new issue? In the latter case, should a Fixes:
tag be added?

Thanks,

Bart.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-06 23:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-06 17:13 [PATCH] target: fix tcm_loop build errors when SCSI=m Randy Dunlap
2018-08-06 23:07 ` Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).