X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Frdma%2Fib_verbs.h;h=765589f4d166f8d24fd1f7874c6169d296c97603;hb=cda22aa94d3fe3942476b3652b8b92c653b96ee3;hp=3c2e10574b23698168fc7a37acc0bad132901be6;hpb=706b75ddbe36d20d071424f9867385c319b67f8d;p=powerpc.git diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 3c2e10574b..765589f4d1 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -45,6 +45,7 @@ #include #include #include +#include #include #include @@ -419,8 +420,8 @@ struct ib_wc { enum ib_wc_opcode opcode; u32 vendor_err; u32 byte_len; + struct ib_qp *qp; __be32 imm_data; - u32 qp_num; u32 src_qp; int wc_flags; u16 pkey_index; @@ -1639,7 +1640,14 @@ static inline void *ib_dma_alloc_coherent(struct ib_device *dev, { if (dev->dma_ops) return dev->dma_ops->alloc_coherent(dev, size, dma_handle, flag); - return dma_alloc_coherent(dev->dma_device, size, dma_handle, flag); + else { + dma_addr_t handle; + void *ret; + + ret = dma_alloc_coherent(dev->dma_device, size, &handle, flag); + *dma_handle = handle; + return ret; + } } /**