]> git.baikalelectronics.ru Git - kernel.git/commit
IB: Fix ib_dma_alloc_coherent() wrapper
authorRoland Dreier <rolandd@cisco.com>
Fri, 15 Dec 2006 21:57:26 +0000 (13:57 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 15 Dec 2006 21:57:26 +0000 (13:57 -0800)
commit92c6ab2f956ea8e65c930949d28a5a09920ba492
treea75aa1d937a774f53e1875849082d28683c859ec
parentf762bf58874bda1894bceffa6228d020eb122b32
IB: Fix ib_dma_alloc_coherent() wrapper

The ib_dma_alloc_coherent() wrapper uses a u64* for the dma_handle
parameter, unlike dma_alloc_coherent, which uses dma_addr_t*.  This
means that we need a temporary variable to handle the case when
ib_dma_alloc_coherent() just falls through directly to
dma_alloc_coherent() on architectures where sizeof u64 != sizeof
dma_addr_t.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
include/rdma/ib_verbs.h