]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
scsi: libsas: Allow libsas to include SCSI header files directly
authorJason Yan <yanaijie@huawei.com>
Fri, 16 Jul 2021 07:45:51 +0000 (15:45 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 21 Jul 2021 03:11:17 +0000 (23:11 -0400)
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>
drivers/scsi/libsas/Makefile
drivers/scsi/libsas/sas_ata.c
drivers/scsi/libsas/sas_discover.c
drivers/scsi/libsas/sas_expander.c
drivers/scsi/libsas/sas_host_smp.c
drivers/scsi/libsas/sas_init.c
drivers/scsi/libsas/sas_phy.c
drivers/scsi/libsas/sas_port.c
drivers/scsi/libsas/sas_scsi_host.c

index e63a54f5ab8ca70eea967158ed25325e7e42b4a2..9dc32736cf21f1203899edbc1fb1595a18ffbf01 100644 (file)
@@ -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
index 4aa1fda95f35dd4c34f9ce69ed1d2b76fe65be2b..1e0df6b1722795cc46178c2e368ea0bffb9efdb2 100644 (file)
@@ -20,8 +20,8 @@
 #include <scsi/scsi.h>
 #include <scsi/scsi_transport.h>
 #include <scsi/scsi_transport_sas.h>
-#include "../scsi_sas_internal.h"
-#include "../scsi_transport_api.h"
+#include "scsi_sas_internal.h"
+#include "scsi_transport_api.h"
 #include <scsi/scsi_eh.h>
 
 static enum ata_completion_errors sas_to_ata_err(struct task_status_struct *ts)
index dd205414e505cb059a04b7521e62e6577527db27..12e1e36d7c0429ef029c4460ba9fa06d303b9d7e 100644 (file)
@@ -16,7 +16,7 @@
 #include <scsi/scsi_transport.h>
 #include <scsi/scsi_transport_sas.h>
 #include <scsi/sas_ata.h>
-#include "../scsi_sas_internal.h"
+#include "scsi_sas_internal.h"
 
 /* ---------- Basic task processing for discovery purposes ---------- */
 
index e006885402197c9f9dca20f7ef3ddd5263cfd48f..c2150a81842376e1a0f87701194a7dcfae2b95f4 100644 (file)
@@ -18,7 +18,7 @@
 #include <scsi/sas_ata.h>
 #include <scsi/scsi_transport.h>
 #include <scsi/scsi_transport_sas.h>
-#include "../scsi_sas_internal.h"
+#include "scsi_sas_internal.h"
 
 static int sas_discover_expander(struct domain_device *dev);
 static int sas_configure_routing(struct domain_device *dev, u8 *sas_addr);
index eca2a6bf3601195ceb3837ae35ca09a30742dcb1..32cdc969b736af3bd718da1b276db830afbd2d55 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <scsi/scsi_transport.h>
 #include <scsi/scsi_transport_sas.h>
-#include "../scsi_sas_internal.h"
+#include "scsi_sas_internal.h"
 
 static void sas_host_smp_discover(struct sas_ha_struct *sas_ha, u8 *resp_data,
                                  u8 phy_id)
index 2b0f98ca6ec307faec2cbffccc8ab1248a7b062d..80592f53017abfa6c5e43344e20ca5821adbdf5e 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "sas_internal.h"
 
-#include "../scsi_sas_internal.h"
+#include "scsi_sas_internal.h"
 
 static struct kmem_cache *sas_task_cache;
 static struct kmem_cache *sas_event_cache;
index 4ca4b1f30bd08611a5ec7e83695be8094bd568bc..a0d592d11dfb117442d93bc2ecfdf689496fe9bc 100644 (file)
@@ -10,7 +10,7 @@
 #include <scsi/scsi_host.h>
 #include <scsi/scsi_transport.h>
 #include <scsi/scsi_transport_sas.h>
-#include "../scsi_sas_internal.h"
+#include "scsi_sas_internal.h"
 
 /* ---------- Phy events ---------- */
 
index e3d03d744713d126966f635be71adee28a32741a..67b429dcf1ff2b2d359da700a5144b8817c6704c 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <scsi/scsi_transport.h>
 #include <scsi/scsi_transport_sas.h>
-#include "../scsi_sas_internal.h"
+#include "scsi_sas_internal.h"
 
 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy)
 {
index ee44a0d7730b4b345b34db6d9919575eeea901b7..5db10248f1871ca91ecc18324906ca4e36416377 100644 (file)
@@ -22,9 +22,9 @@
 #include <scsi/scsi_transport.h>
 #include <scsi/scsi_transport_sas.h>
 #include <scsi/sas_ata.h>
-#include "../scsi_sas_internal.h"
-#include "../scsi_transport_api.h"
-#include "../scsi_priv.h"
+#include "scsi_sas_internal.h"
+#include "scsi_transport_api.h"
+#include "scsi_priv.h"
 
 #include <linux/err.h>
 #include <linux/blkdev.h>