All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/scsi/cxgbi: correcting the include path, so can pass compiling.
@ 2013-01-12 12:42 Chen Gang
  2013-01-20  7:18 ` Chen Gang
  0 siblings, 1 reply; 8+ messages in thread
From: Chen Gang @ 2013-01-12 12:42 UTC (permalink / raw)
  To: JBottomley; +Cc: David Miller, kxie, michaelc, linux-scsi


  correct the include path,
  or the compiler will report can not find "common.h"...

  both cxgb3/ and cxgb4/ sub directly have l2t.h (they are different).
  so it is not suitable to '-I' sub-directy, directly.


Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 drivers/scsi/cxgbi/Makefile        |    4 ++++
 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c |   14 +++++++-------
 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c |   10 +++++-----
 3 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/drivers/scsi/cxgbi/Makefile b/drivers/scsi/cxgbi/Makefile
index 86007e3..aff2998 100644
--- a/drivers/scsi/cxgbi/Makefile
+++ b/drivers/scsi/cxgbi/Makefile
@@ -1,2 +1,6 @@
+
+ccflags-y			:= -Idrivers/net/ethernet/chelsio
+subdir-ccflags-y		:= -Idrivers/net/ethernet/chelsio
+
 obj-$(CONFIG_SCSI_CXGB3_ISCSI)	+= libcxgbi.o cxgb3i/
 obj-$(CONFIG_SCSI_CXGB4_ISCSI)	+= libcxgbi.o cxgb4i/
diff --git a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
index 49692a1..ca92e72 100644
--- a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
+++ b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
@@ -18,13 +18,13 @@
 #include <linux/moduleparam.h>
 #include <scsi/scsi_host.h>
 
-#include "common.h"
-#include "t3_cpl.h"
-#include "t3cdev.h"
-#include "cxgb3_defs.h"
-#include "cxgb3_ctl_defs.h"
-#include "cxgb3_offload.h"
-#include "firmware_exports.h"
+#include "cxgb3/common.h"
+#include "cxgb3/t3_cpl.h"
+#include "cxgb3/t3cdev.h"
+#include "cxgb3/cxgb3_defs.h"
+#include "cxgb3/cxgb3_ctl_defs.h"
+#include "cxgb3/cxgb3_offload.h"
+#include "cxgb3/firmware_exports.h"
 #include "cxgb3i.h"
 
 static unsigned int dbg_level;
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
index f924b3c..a5795d5 100644
--- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
+++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
@@ -20,11 +20,11 @@
 #include <net/dst.h>
 #include <linux/netdevice.h>
 
-#include "t4_msg.h"
-#include "cxgb4.h"
-#include "cxgb4_uld.h"
-#include "t4fw_api.h"
-#include "l2t.h"
+#include "cxgb4/t4_msg.h"
+#include "cxgb4/cxgb4.h"
+#include "cxgb4/cxgb4_uld.h"
+#include "cxgb4/t4fw_api.h"
+#include "cxgb4/l2t.h"
 #include "cxgb4i.h"
 
 static unsigned int dbg_level;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-04-07  3:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-12 12:42 [PATCH] drivers/scsi/cxgbi: correcting the include path, so can pass compiling Chen Gang
2013-01-20  7:18 ` Chen Gang
2013-01-29  7:35   ` Chen Gang
2013-02-28  3:24     ` Chen Gang
2013-02-28  3:24       ` Chen Gang
2013-02-28  6:07       ` Chen Gang
2013-02-28  6:34         ` [PATCH] drivers/scsi/cxgbi: using ccflags-y instead of EXTRA_CFLAGS in Kbuild Chen Gang
2013-04-07  3:17           ` Chen Gang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.