Skip to contentSkip to conversation

Fixed build failure when using -j option of make.

PATCH New Vasu Dev 1 participant 1 message Feb 25, 2008 SCSI

lore
Share & tools
lore

Vasu Dev

author
#0 lore raw

PATCH 1/1 Fixed build failure when using -j option of make.

This patch removed make dependency on any other .o files which were causing build failure when make -j 10 used. So moved other .o related code under openfc dir as these .o files were used only by openfc module.

---

 drivers/scsi/ofc/Makefile                    |    3 
 drivers/scsi/ofc/fcoe/Makefile               |    2 
 drivers/scsi/ofc/libcrc/Makefile             |    9 
 drivers/scsi/ofc/libcrc/crc32_le.c           |  149 --
 drivers/scsi/ofc/libcrc/crc32_le_tab.c       |  594 --------
 drivers/scsi/ofc/libfc/Makefile              |   20 
 drivers/scsi/ofc/libfc/fc_disc_targ.c        |  655 ---------
 drivers/scsi/ofc/libfc/fc_disc_targ.h        |   48 -
 drivers/scsi/ofc/libfc/fc_exch.c             | 1560 ----------------------
 drivers/scsi/ofc/libfc/fc_exch_impl.h        |  141 --
 drivers/scsi/ofc/libfc/fc_fcip.h             |  131 --
 drivers/scsi/ofc/libfc/fc_frame.c            |  105 -
 drivers/scsi/ofc/libfc/fc_ils.h              |  524 -------
 drivers/scsi/ofc/libfc/fc_local_port.c       | 1856 --------------------------
 drivers/scsi/ofc/libfc/fc_local_port_impl.h  |  162 --
 drivers/scsi/ofc/libfc/fc_port.c             |  246 ---
 drivers/scsi/ofc/libfc/fc_print.c            |  138 --
 drivers/scsi/ofc/libfc/fc_remote_port.c      |  329 -----
 drivers/scsi/ofc/libfc/fc_scsi.h             |  463 ------
 drivers/scsi/ofc/libfc/fc_sess.c             | 1445 --------------------
 drivers/scsi/ofc/libfc/fc_sess_impl.h        |   75 -
 drivers/scsi/ofc/libfc/fc_virt_fab.c         |   90 -
 drivers/scsi/ofc/libfc/fc_virt_fab.h         |   43 -
 drivers/scsi/ofc/libfc/fc_virt_fab_impl.h    |   48 -
 drivers/scsi/ofc/libfc/fcs_attr.c            |  297 ----
 drivers/scsi/ofc/libfc/fcs_cmd.c             |  255 ----
 drivers/scsi/ofc/libfc/fcs_event.c           |  225 ---
 drivers/scsi/ofc/libfc/fcs_state.c           |  448 ------
 drivers/scsi/ofc/libfc/fcs_state_impl.h      |   41 -
 drivers/scsi/ofc/libsa/Makefile              |    9 
 drivers/scsi/ofc/libsa/sa_event.c            |  232 ---
 drivers/scsi/ofc/libsa/sa_hash_kern.c        |  141 --
 drivers/scsi/ofc/openfc/Makefile             |   22 
 drivers/scsi/ofc/openfc/crc32_le.c           |  149 ++
 drivers/scsi/ofc/openfc/crc32_le_tab.c       |  594 ++++++++
 drivers/scsi/ofc/openfc/fc_disc_targ.c       |  655 +++++++++
 drivers/scsi/ofc/openfc/fc_disc_targ.h       |   48 +
 drivers/scsi/ofc/openfc/fc_exch.c            | 1560 ++++++++++++++++++++++
 drivers/scsi/ofc/openfc/fc_exch_impl.h       |  141 ++
 drivers/scsi/ofc/openfc/fc_fcip.h            |  131 ++
 drivers/scsi/ofc/openfc/fc_frame.c           |  105 +
 drivers/scsi/ofc/openfc/fc_ils.h             |  524 +++++++
 drivers/scsi/ofc/openfc/fc_local_port.c      | 1856 ++++++++++++++++++++++++++
 drivers/scsi/ofc/openfc/fc_local_port_impl.h |  162 ++
 drivers/scsi/ofc/openfc/fc_port.c            |  246 +++
 drivers/scsi/ofc/openfc/fc_print.c           |  138 ++
 drivers/scsi/ofc/openfc/fc_remote_port.c     |  329 +++++
 drivers/scsi/ofc/openfc/fc_scsi.h            |  463 ++++++
 drivers/scsi/ofc/openfc/fc_sess.c            | 1445 ++++++++++++++++++++
 drivers/scsi/ofc/openfc/fc_sess_impl.h       |   75 +
 drivers/scsi/ofc/openfc/fc_virt_fab.c        |   90 +
 drivers/scsi/ofc/openfc/fc_virt_fab.h        |   43 +
 drivers/scsi/ofc/openfc/fc_virt_fab_impl.h   |   48 +
 drivers/scsi/ofc/openfc/fcs_attr.c           |  297 ++++
 drivers/scsi/ofc/openfc/fcs_cmd.c            |  255 ++++
 drivers/scsi/ofc/openfc/fcs_event.c          |  225 +++
 drivers/scsi/ofc/openfc/fcs_state.c          |  448 ++++++
 drivers/scsi/ofc/openfc/fcs_state_impl.h     |   41 +
 drivers/scsi/ofc/openfc/sa_event.c           |  232 +++
 drivers/scsi/ofc/openfc/sa_hash_kern.c       |  141 ++
 60 files changed, 10460 insertions(+), 10487 deletions(-)
drivers/scsi/ofc/Makefile +0 -3
index 912494b..233f487 100644
@@ -4,8 +4,5 @@ OFC_DIR ?= drivers/scsi/ofc
 
 export  OFC_DIR
 
-obj-$(CONFIG_OFC) += libcrc/
-obj-$(CONFIG_OFC) += libsa/
-obj-$(CONFIG_OFC) += libfc/
 obj-$(CONFIG_OFC) += openfc/
 obj-$(CONFIG_FCOE) += fcoe/
drivers/scsi/ofc/fcoe/Makefile +1 -1
index b46aeae..9ce08da 100644
@@ -4,7 +4,7 @@ EXTRA_CFLAGS += -I$(OFC_DIR)/include
 
 obj-$(CONFIG_FCOE) += fcoe.o
 
-fcoe-y := \
+fcoe-objs := \
 	fcoe_dev.o \
 	fcoe_if.o \
 	fcoeinit.o \
drivers/scsi/ofc/libcrc/Makefile deleted +0 -9
deleted file mode 100644
index b556b9d..0000000
@@ -1,9 +0,0 @@
-# $Id: Makefile
-
-EXTRA_CFLAGS += -I$(OFC_DIR)/include
-
-obj-y += libcrc.o
-
-libcrc-y := \
-	crc32_le.o \
-	crc32_le_tab.o
drivers/scsi/ofc/libfc/Makefile deleted +0 -20
deleted file mode 100644
index 944ac31..0000000
@@ -1,20 +0,0 @@
-# $Id: Makefile
-
-EXTRA_CFLAGS += -I$(OFC_DIR)/include
-
-obj-y += libfc.o
-
-libfc-y := \
-	fc_disc_targ.o \
-	fc_exch.o \
-	fc_frame.o \
-	fc_local_port.o \
-	fc_port.o \
-	fc_print.o \
-	fc_remote_port.o \
-	fcs_attr.o \
-	fcs_cmd.o \
-	fc_sess.o \
-	fcs_event.o \
-	fcs_state.o \
-	fc_virt_fab.o
drivers/scsi/ofc/libsa/Makefile deleted +0 -9
deleted file mode 100644
index 3453608..0000000
@@ -1,9 +0,0 @@
-# $Id: Makefile
-
-EXTRA_CFLAGS += -I$(OFC_DIR)/include
-
-obj-y += libsa.o
-
-libsa-y := \
-	sa_event.o \
-	sa_hash_kern.o
drivers/scsi/ofc/openfc/Makefile +18 -4
index 00606a2..490144d 100644
@@ -4,12 +4,26 @@ EXTRA_CFLAGS += -I$(OFC_DIR)/include
 
 obj-$(CONFIG_OFC) += openfc.o
 
-openfc-y := \
+openfc-objs := \
+	crc32_le.o \
+	crc32_le_tab.o \
+	fc_disc_targ.o \
+	fc_exch.o \
+	fc_frame.o \
+	fc_local_port.o \
+	fc_port.o \
+	fc_print.o \
+	fc_remote_port.o \
+	fcs_attr.o \
+	fcs_cmd.o \
+	fc_sess.o \
+	fcs_event.o \
+	fcs_state.o \
+	fc_virt_fab.o \
 	openfc_attr.o \
 	openfc_if.o \
 	openfc_ioctl.o \
 	openfc_pkt.o \
 	openfc_scsi.o \
-	../libfc/libfc.o \
-	../libsa/libsa.o \
-	../libcrc/libcrc.o
+	sa_event.o \
+	sa_hash_kern.o
drivers/scsi/ofc/openfc/crc32_le.c renamed from drivers/scsi/ofc/libcrc/crc32_le.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libcrc/crc32_le.c
rename to drivers/scsi/ofc/openfc/crc32_le.c
drivers/scsi/ofc/openfc/crc32_le_tab.c renamed from drivers/scsi/ofc/libcrc/crc32_le_tab.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libcrc/crc32_le_tab.c
rename to drivers/scsi/ofc/openfc/crc32_le_tab.c
drivers/scsi/ofc/openfc/fc_disc_targ.c renamed from drivers/scsi/ofc/libfc/fc_disc_targ.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_disc_targ.c
rename to drivers/scsi/ofc/openfc/fc_disc_targ.c
drivers/scsi/ofc/openfc/fc_disc_targ.h renamed from drivers/scsi/ofc/libfc/fc_disc_targ.h +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_disc_targ.h
rename to drivers/scsi/ofc/openfc/fc_disc_targ.h
drivers/scsi/ofc/openfc/fc_exch.c renamed from drivers/scsi/ofc/libfc/fc_exch.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_exch.c
rename to drivers/scsi/ofc/openfc/fc_exch.c
drivers/scsi/ofc/openfc/fc_exch_impl.h renamed from drivers/scsi/ofc/libfc/fc_exch_impl.h +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_exch_impl.h
rename to drivers/scsi/ofc/openfc/fc_exch_impl.h
drivers/scsi/ofc/openfc/fc_fcip.h renamed from drivers/scsi/ofc/libfc/fc_fcip.h +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_fcip.h
rename to drivers/scsi/ofc/openfc/fc_fcip.h
drivers/scsi/ofc/openfc/fc_frame.c renamed from drivers/scsi/ofc/libfc/fc_frame.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_frame.c
rename to drivers/scsi/ofc/openfc/fc_frame.c
drivers/scsi/ofc/openfc/fc_ils.h renamed from drivers/scsi/ofc/libfc/fc_ils.h +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_ils.h
rename to drivers/scsi/ofc/openfc/fc_ils.h
drivers/scsi/ofc/openfc/fc_local_port.c renamed from drivers/scsi/ofc/libfc/fc_local_port.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_local_port.c
rename to drivers/scsi/ofc/openfc/fc_local_port.c
drivers/scsi/ofc/openfc/fc_local_port_impl.h renamed from drivers/scsi/ofc/libfc/fc_local_port_impl.h +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_local_port_impl.h
rename to drivers/scsi/ofc/openfc/fc_local_port_impl.h
drivers/scsi/ofc/openfc/fc_port.c renamed from drivers/scsi/ofc/libfc/fc_port.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_port.c
rename to drivers/scsi/ofc/openfc/fc_port.c
drivers/scsi/ofc/openfc/fc_print.c renamed from drivers/scsi/ofc/libfc/fc_print.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_print.c
rename to drivers/scsi/ofc/openfc/fc_print.c
drivers/scsi/ofc/openfc/fc_remote_port.c renamed from drivers/scsi/ofc/libfc/fc_remote_port.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_remote_port.c
rename to drivers/scsi/ofc/openfc/fc_remote_port.c
drivers/scsi/ofc/openfc/fc_scsi.h renamed from drivers/scsi/ofc/libfc/fc_scsi.h +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_scsi.h
rename to drivers/scsi/ofc/openfc/fc_scsi.h
drivers/scsi/ofc/openfc/fc_sess.c renamed from drivers/scsi/ofc/libfc/fc_sess.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_sess.c
rename to drivers/scsi/ofc/openfc/fc_sess.c
drivers/scsi/ofc/openfc/fc_sess_impl.h renamed from drivers/scsi/ofc/libfc/fc_sess_impl.h +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_sess_impl.h
rename to drivers/scsi/ofc/openfc/fc_sess_impl.h
drivers/scsi/ofc/openfc/fc_virt_fab.c renamed from drivers/scsi/ofc/libfc/fc_virt_fab.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_virt_fab.c
rename to drivers/scsi/ofc/openfc/fc_virt_fab.c
drivers/scsi/ofc/openfc/fc_virt_fab.h renamed from drivers/scsi/ofc/libfc/fc_virt_fab.h +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_virt_fab.h
rename to drivers/scsi/ofc/openfc/fc_virt_fab.h
drivers/scsi/ofc/openfc/fc_virt_fab_impl.h renamed from drivers/scsi/ofc/libfc/fc_virt_fab_impl.h +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fc_virt_fab_impl.h
rename to drivers/scsi/ofc/openfc/fc_virt_fab_impl.h
drivers/scsi/ofc/openfc/fcs_attr.c renamed from drivers/scsi/ofc/libfc/fcs_attr.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fcs_attr.c
rename to drivers/scsi/ofc/openfc/fcs_attr.c
drivers/scsi/ofc/openfc/fcs_cmd.c renamed from drivers/scsi/ofc/libfc/fcs_cmd.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fcs_cmd.c
rename to drivers/scsi/ofc/openfc/fcs_cmd.c
drivers/scsi/ofc/openfc/fcs_event.c renamed from drivers/scsi/ofc/libfc/fcs_event.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fcs_event.c
rename to drivers/scsi/ofc/openfc/fcs_event.c
drivers/scsi/ofc/openfc/fcs_state.c renamed from drivers/scsi/ofc/libfc/fcs_state.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fcs_state.c
rename to drivers/scsi/ofc/openfc/fcs_state.c
drivers/scsi/ofc/openfc/fcs_state_impl.h renamed from drivers/scsi/ofc/libfc/fcs_state_impl.h +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libfc/fcs_state_impl.h
rename to drivers/scsi/ofc/openfc/fcs_state_impl.h
drivers/scsi/ofc/openfc/sa_event.c renamed from drivers/scsi/ofc/libsa/sa_event.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libsa/sa_event.c
rename to drivers/scsi/ofc/openfc/sa_event.c
drivers/scsi/ofc/openfc/sa_hash_kern.c renamed from drivers/scsi/ofc/libsa/sa_hash_kern.c +0 -0
similarity index 100%
rename from drivers/scsi/ofc/libsa/sa_hash_kern.c
rename to drivers/scsi/ofc/openfc/sa_hash_kern.c