> +struct ib_dma_mapping_ops qib_dma_mapping_ops = {
 > +    qib_mapping_error,
 > +    qib_dma_map_single,
 > +    qib_dma_unmap_single,
 > +    qib_dma_map_page,
 > +    qib_dma_unmap_page,
 > +    qib_map_sg,
 > +    qib_unmap_sg,
 > +    qib_sg_dma_address,
 > +    qib_sg_dma_len,
 > +    qib_sync_single_for_cpu,
 > +    qib_sync_single_for_device,
 > +    qib_dma_alloc_coherent,
 > +    qib_dma_free_coherent
 > +};

I think it would be a good idea to use a designated initializer -- eg

        .mapping_error          = qib_mapping_error, ...

instead to avoid silent breakage if we extend the mapping ops structure.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to