summaryrefslogtreecommitdiff
path: root/drivers/scsi/libsas/Makefile
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2021-07-16 10:45:51 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-07-21 06:11:17 +0300
commite15f669cd996b85bb07b0e787fa78806477bf211 (patch)
tree13fe0220a49ba73e3b7213c10a5446d9833c0c9b /drivers/scsi/libsas/Makefile
parent54815088859fa766c7879a06ee028e0cee4f589e (diff)
downloadlinux-e15f669cd996b85bb07b0e787fa78806477bf211.tar.xz
scsi: libsas: Allow libsas to include SCSI header files directly
libsas needs to include some header files in the scsi directory. However these are currently hardcoded with the path "../" in the C files. Do this in the Makefile to avoid hardcoding the path. Link: https://lore.kernel.org/r/20210716074551.771312-1-yanaijie@huawei.com Cc: John Garry <john.garry@huawei.com> Reviewed-by: John Garry <john.garry@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libsas/Makefile')
-rw-r--r--drivers/scsi/libsas/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/Makefile b/drivers/scsi/libsas/Makefile
index e63a54f5ab8c..9dc32736cf21 100644
--- a/drivers/scsi/libsas/Makefile
+++ b/drivers/scsi/libsas/Makefile
@@ -18,4 +18,4 @@ libsas-y += sas_init.o \
libsas-$(CONFIG_SCSI_SAS_ATA) += sas_ata.o
libsas-$(CONFIG_SCSI_SAS_HOST_SMP) += sas_host_smp.o
-ccflags-y := -DDEBUG
+ccflags-y := -DDEBUG -I$(srctree)/drivers/scsi