[ewg] Build errors while trying to build iw_cxgb3 and iw_cxgb4 drivers together
Vipul Pandya
vipul at chelsio.com
Fri May 4 07:07:52 PDT 2012
>-----Original Message-----
>From: Vladimir Sokolovsky [mailto:vlad at dev.mellanox.co.il]
>Sent: 03 May 2012 23:08
>To: Vipul Pandya
>Cc: Steve Wise; Kumar A S; ewg at lists.openfabrics.org; Divy Le Ray
>Subject: Re: Build errors while trying to build iw_cxgb3 and iw_cxgb4
drivers together
>
> On 05/03/2012 05:42 PM, Vipul Pandya wrote:
>> cxgb4_l2t_send function is declared in l2t.h file. This l2t.h file is
present in both cxgb3 as well as cxgb4 directories. Since in above
command cxgb3 path is included first, l2t.h file also gets included from
there. If I include cxgb4 path first then this error is not coming.
>>
>>
>>
>> Please suggest how should I go to fix this?
>>
>>
>>
>> Thanks,
>>
>> Vipul
>>
>>
>
>Hi Vipul,
>Please refer to the following email for the backpoting instructions:
http://web.archiveorange.com/archive/v/8BSVw1dy9TMJxitRze4Z
>
>Regards,
>Vladimir
Hi Vlad,
Following two patches in compat-rdma and linux-3.2 repo respectively
fixes the above issue. Kindly review and let me know if there is any
suggestion.
--------
[root at strawberry compat-rdma]# git diff
diff --git a/makefile b/makefile
index 820a7e8..8e1dabd 100644
--- a/makefile
+++ b/makefile
@@ -129,8 +129,6 @@ kernel:
-I$(CWD)/drivers/infiniband/debug \
-I/usr/local/include/scst \
-I$(CWD)/drivers/infiniband/ulp/srpt \
- -I$(CWD)/drivers/net/ethernet/chelsio/cxgb3 \
- -I$(CWD)/drivers/net/ethernet/chelsio/cxgb4 \
$$(if
$$(CONFIG_XEN),-D__XEN_INTERFACE_VERSION__=$$(CONFIG_XEN_INTERFACE_VERSI
ON)) \
$$(if
$$(CONFIG_XEN),-I$$(srctree)/arch/x86/include/mach-xen) \
-I$$(srctree)/arch/$$(SRCARCH)/include \
--------
--------
[root at strawberry linux-3.2]# git diff
diff --git a/drivers/infiniband/hw/cxgb3/Makefile
b/drivers/infiniband/hw/cxgb3/Makefile
index 2761364..c780a7a 100644
--- a/drivers/infiniband/hw/cxgb3/Makefile
+++ b/drivers/infiniband/hw/cxgb3/Makefile
@@ -1,4 +1,4 @@
-ccflags-y := -Idrivers/net/ethernet/chelsio/cxgb3
+ccflags-y := -I$(CWD)/drivers/net/ethernet/chelsio/cxgb3
obj-$(CONFIG_INFINIBAND_CXGB3) += iw_cxgb3.o
diff --git a/drivers/infiniband/hw/cxgb4/Makefile
b/drivers/infiniband/hw/cxgb4/Makefile
index 46b878c..b26d54c 100644
--- a/drivers/infiniband/hw/cxgb4/Makefile
+++ b/drivers/infiniband/hw/cxgb4/Makefile
@@ -1,4 +1,4 @@
-ccflags-y := -Idrivers/net/ethernet/chelsio/cxgb4
+ccflags-y := -I$(CWD)/drivers/net/ethernet/chelsio/cxgb4
obj-$(CONFIG_INFINIBAND_CXGB4) += iw_cxgb4.o
--------
Thanks,
Vipul
More information about the ewg
mailing list