Re: [PATCH] Fix fcoe code to compile again

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

 



On 08/01/2010 03:49 AM, FUJITA Tomonori wrote:
On Sat, 31 Jul 2010 09:52:38 +0200
Albert Pauw<albert.pauw@xxxxxxxxx>  wrote:

Hi Tomo,

I noticed that a "make FCOE=1" didn't work anymore,
probably because it is not maintained and adapted for any changes.

Anyway, the fix is easy and I've made a simple patch to do just that.

In order to compile (just compile, don't know if the code still works) some
files need an #include "tgtd.h", to fix an error on the external
parameter is_debug.

Cheers,

Albert

------------------------
Fix a compile error in the fcoe code, where is_debug is not externally
defined

Signed-Off-By: Albert Pauw<albert.pauw@xxxxxxxxx>
---
Thanks, but I can't apply this cleanly. Can you use `git diff` to
create a patch?


Thanks,
As requested,

Cheers,

Albert
diff --git a/tgt/usr/fcoe/fc_disc_targ.c b/tgt.mod/usr/fcoe/fc_disc_targ.c
index d8bc9b2..3cdb3d7 100644
--- a/tgt/usr/fcoe/fc_disc_targ.c
+++ b/tgt.mod/usr/fcoe/fc_disc_targ.c
@@ -39,6 +39,8 @@
 #include "sa_timer.h"
 #include "sa_event.h"
 
+#include "tgtd.h"
+
 #include "fc_encaps.h"
 #include "fc_fs.h"
 #include "fc_els.h"
diff --git a/tgt/usr/fcoe/fc_exch.c b/tgt.mod/usr/fcoe/fc_exch.c
index f1e2a2f..368db9c 100644
--- a/tgt/usr/fcoe/fc_exch.c
+++ b/tgt.mod/usr/fcoe/fc_exch.c
@@ -37,6 +37,8 @@
 #include "sa_hash.h"
 #include "sa_timer.h"
 
+#include "tgtd.h"
+
 #include "fc_fcip.h"
 #include "fc_fc2.h"
 #include "fc_fs.h"
diff --git a/tgt/usr/fcoe/fc_local_port.c b/tgt.mod/usr/fcoe/fc_local_port.c
index 9016ccd..64913a4 100644
--- a/tgt/usr/fcoe/fc_local_port.c
+++ b/tgt.mod/usr/fcoe/fc_local_port.c
@@ -39,6 +39,8 @@
 #include "sa_hash.h"
 #include "sa_state.h"
 
+#include "tgtd.h"
+
 #include "fc_fs.h"
 #include "fc_gs.h"
 #include "fc_ns.h"
diff --git a/tgt/usr/fcoe/fc_sess.c b/tgt.mod/usr/fcoe/fc_sess.c
index 92953c2..83caede 100644
--- a/tgt/usr/fcoe/fc_sess.c
+++ b/tgt.mod/usr/fcoe/fc_sess.c
@@ -43,6 +43,8 @@
 #include "sa_hash.h"
 #include "sa_state.h"
 
+#include "tgtd.h"
+
 #include "fc_fs.h"
 #include "fc_els.h"
 #include "fc_ils.h"
diff --git a/tgt/usr/fcoe/fcoe_dev.c b/tgt.mod/usr/fcoe/fcoe_dev.c
index e5ebf8a..9a3a484 100644
--- a/tgt/usr/fcoe/fcoe_dev.c
+++ b/tgt.mod/usr/fcoe/fcoe_dev.c
@@ -33,6 +33,8 @@
 #include "log.h"
 #include "util.h"
 
+#include "tgtd.h"
+
 #include "fc_types.h"
 #include "fc_frame.h"
 #include "fc_encaps.h"
diff --git a/tgt/usr/fcoe/fcs_state.c b/tgt.mod/usr/fcoe/fcs_state.c
index 288280e..1a43ae9 100644
--- a/tgt/usr/fcoe/fcs_state.c
+++ b/tgt.mod/usr/fcoe/fcs_state.c
@@ -28,6 +28,8 @@
 #include "log.h"
 #include "util.h"
 
+#include "tgtd.h"
+
 #include "fc_types.h"
 #include "fc_frame.h"
 #include "fc_port.h"
diff --git a/tgt/usr/fcoe/sa_state.c b/tgt.mod/usr/fcoe/sa_state.c
index ad7ef98..1eb4589 100644
--- a/tgt/usr/fcoe/sa_state.c
+++ b/tgt.mod/usr/fcoe/sa_state.c
@@ -29,6 +29,8 @@
 #include "log.h"
 #include "util.h"
 
+#include "tgtd.h"
+
 #include "sa_state.h"
 
 /*

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux