[ewg] Compat-rdma compile error
Vladimir Sokolovsky
vlad at dev.mellanox.co.il
Wed Aug 1 14:23:15 PDT 2018
On 08/01/2018 10:35 PM, Adit Ranadive wrote:
> On 8/1/18, 7:52 AM, "Vladimir Sokolovsky" <vlad at dev.mellanox.co.il> wrote:
>> Hi Adit,
>> I added missing headers and created a new build: OFED-4.17-20180801-0747.tgz
> Thanks! That got me past the earlier error, I'm still facing an issue below:
>
> CC [M] /var/tmp/OFED_topdir/BUILD/compat-rdma-4.17/compat/compat-3.11.o
> In file included from /var/tmp/OFED_topdir/BUILD/compat-rdma-4.17/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cmd.c:48:0:
> /var/tmp/OFED_topdir/BUILD/compat-rdma-4.17/drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:96:2: error: unknown type name ‘refcount_t’
> refcount_t refcnt;
> ^
> /var/tmp/OFED_topdir/BUILD/compat-rdma-4.17/drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:177:2: error: unknown type name ‘refcount_t’
> refcount_t refcnt;
> ^
> /var/tmp/OFED_topdir/BUILD/compat-rdma-4.17/drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:199:2: error: unknown type name ‘refcount_t’
> refcount_t refcnt;
> ^
> make[5]: *** [/var/tmp/OFED_topdir/BUILD/compat-rdma-4.17/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cmd.o] Error 1
> make[4]: *** [/var/tmp/OFED_topdir/BUILD/compat-rdma-4.17/drivers/infiniband/hw/vmw_pvrdma] Error 2
> make[3]: *** [/var/tmp/OFED_topdir/BUILD/compat-rdma-4.17/drivers/infiniband/hw] Error 2
>
> It looks like the refcount.h exists in compat-rdma. Do I need to include any config defines for pvrdma to pick up the header?
>
> Thanks,
> Adit
>
>
>
You should add "#include <linux/refcount.h>" in pvrdma.h
Regards,
Vladimir
More information about the ewg
mailing list