[ewg] Compiling compat-rdma on latest OFED 4.8 drop
Vladimir Sokolovsky
vlad at dev.mellanox.co.il
Wed Nov 2 05:47:31 PDT 2016
On 11/02/2016 01:31 AM, Adit Ranadive wrote:
> Hi Vlad,
>
> I have been trying to compile the compat-rdma module after adding my PVRDMA
> changes but running into some compilation issues for the cxgb4/qib modules.
> Not sure if I am doing something incorrect or one of the backport patches didnt
> get applied. I followed the steps you mentioned on the linux-rdma list.
>
> /compat-rdma.git/drivers/infiniband/hw/cxgb4/device.c: In function ‘setup_debugfs’:
> /compat-rdma.git/drivers/infiniband/hw/cxgb4/device.c:697:2: error: implicit declaration of function ‘debugfs_create_file_size’ [-Werror=implicit-function-declaration]
> debugfs_create_file_size("qps", S_IWUSR, devp->debugfs_root,
> ^
>
> After configuring without the cxgb4 module, I ran into another compilation issue with qib:
>
> /compat-rdma.git/drivers/infiniband/hw/qib/qib_file_ops.c:72:2: error: unknown field ‘write_iter’ specified in initializer
> .write_iter = qib_write_iter,
> ^
> /compat-rdma.git/drivers/infiniband/hw/qib/qib_file_ops.c:72:2: warning: initialization from incompatible pointer type [enabled by default]
> /compat-rdma.git/drivers/infiniband/hw/qib/qib_file_ops.c:72:2: warning: (near initialization for ‘qib_file_ops.aio_read’) [enabled by default]
> /compat-rdma.git/drivers/infiniband/hw/qib/qib_file_ops.c: In function ‘qib_write_iter’:
> /compat-rdma.git/drivers/infiniband/hw/qib/qib_file_ops.c:2270:2: error: implicit declaration of function ‘iter_is_iovec’ [-Werror=implicit-function-declaration]
> if (!iter_is_iovec(from) || !from->nr_segs || !pq)
> ^
>
> I have the latest (10/31) OFED-4.8 drop installed as well. Anyone else running into this issue?
Hi Adit,
There are no QIB backports yet in OFED-4.8.
If you work on RHEL7.2 then use the following configuration parameters:
# ./configure --with-core-mod --with-user_mad-mod --with-user_access-mod
--with-addr_trans-mod --with-mlx4-mod --with-mlx4_en-mod --with-ipoib-mod
Note: update your git trees as cxgb3/4 backports were added few days ago.
Regards,
Vladimir
More information about the ewg
mailing list