[ewg] Compiling compat-rdma on latest OFED 4.8 drop

Adit Ranadive aditr at vmware.com
Tue Nov 1 16:31:45 PDT 2016


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?

Thanks,
Adit



More information about the ewg mailing list