]> Pileus Git - ~andy/linux/commit
swiotlb: replace dma_length with sg_dma_len() macro
authorEunBong Song <eunb.song@samsung.com>
Mon, 5 Aug 2013 16:30:47 +0000 (17:30 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 9 Aug 2013 15:28:42 +0000 (11:28 -0400)
commit4d86ec7a8a3f9c135fdc34d7aed2a9467e2e6ff9
treedc3ef06a9a68b8ff2f70c10327528798ff9a4b78
parentcd9151e26d31048b2b5e00fd02e110e07d2200c9
swiotlb: replace dma_length with sg_dma_len() macro

This patch replace dma_length in "lib/swiotlb.c" to sg_dma_len() macro,
because the build error can occur if CONFIG_NEED_SG_DMA_LENGTH is not
set, and CONFIG_SWIOTLB is set.

Singed-off-by: EunBong Song <eunb.song@samsung.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
lib/swiotlb.c