Using common code for csiostor.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Christoph,
csiostor is chelsio full offload FCoE physical function driver. I would like to reuse common hardware interface functions defined in t4_hw.c of chelsio networking driver(cxgb4). Below is makefile change that creates softlink to t4_hw.c and builds the same. Is this change is acceptable? Please suggest if there is any better way of doing this.

diff --git a/drivers/scsi/csiostor/Makefile b/drivers/scsi/csiostor/Makefile
index 913b9a9..74117f3 100644
--- a/drivers/scsi/csiostor/Makefile
+++ b/drivers/scsi/csiostor/Makefile
@@ -5,8 +5,9 @@

 ccflags-y += -I$(srctree)/drivers/net/ethernet/chelsio/cxgb4

 obj-$(CONFIG_SCSI_CHELSIO_FCOE) := csiostor.o
 csiostor-objs := csio_attr.o csio_init.o csio_lnode.o csio_scsi.o \
                csio_hw.o csio_hw_t4.o csio_hw_t5.o csio_isr.o \
-               csio_mb.o csio_rnode.o csio_wr.o
+               csio_mb.o csio_rnode.o csio_wr.o t4_hw.o
+$(obj)/t4_hw.c:
+       ln -sf $(srctree)/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c $(obj)/t4_hw.c
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux