public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: hisi_sas: Fix build error without SATA_HOST
@ 2020-04-02  6:30 YueHaibing
  2020-04-02  7:30 ` John Garry
  2020-04-02  8:58 ` [PATCH v2] " YueHaibing
  0 siblings, 2 replies; 8+ messages in thread
From: YueHaibing @ 2020-04-02  6:30 UTC (permalink / raw)
  To: john.garry, jejb, martin.petersen, chenxiang66
  Cc: linux-scsi, linux-kernel, YueHaibing

If SATA_HOST is n, build fails:

drivers/scsi/hisi_sas/hisi_sas_main.o: In function `hisi_sas_fill_ata_reset_cmd':
hisi_sas_main.c:(.text+0x2500): undefined reference to `ata_tf_to_fis'

Select SATA_HOST to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 7c594f0407de ("scsi: hisi_sas: add softreset function for SATA disk")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/hisi_sas/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/scsi/hisi_sas/Kconfig b/drivers/scsi/hisi_sas/Kconfig
index 90a17452a50d..13ed9073fc72 100644
--- a/drivers/scsi/hisi_sas/Kconfig
+++ b/drivers/scsi/hisi_sas/Kconfig
@@ -6,6 +6,7 @@ config SCSI_HISI_SAS
 	select SCSI_SAS_LIBSAS
 	select BLK_DEV_INTEGRITY
 	depends on ATA
+	select SATA_HOST
 	help
 		This driver supports HiSilicon's SAS HBA, including support based
 		on platform device
-- 
2.17.1



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

end of thread, other threads:[~2020-04-13 17:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-02  6:30 [PATCH] scsi: hisi_sas: Fix build error without SATA_HOST YueHaibing
2020-04-02  7:30 ` John Garry
2020-04-02  8:51   ` Yuehaibing
2020-04-02  8:53   ` Bartlomiej Zolnierkiewicz
2020-04-02  8:58 ` [PATCH v2] " YueHaibing
2020-04-02  9:08   ` Bartlomiej Zolnierkiewicz
2020-04-02  9:09   ` John Garry
2020-04-13 17:28   ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox