mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-14 01:20:41 +09:00
rk: ion: fix build warning for iommu API
This commit is contained in:
@@ -917,7 +917,7 @@ static int ion_debug_client_show_buffer_map(struct seq_file *s, struct ion_buffe
|
||||
|
||||
while (node != NULL) {
|
||||
iommu_map = rb_entry(node, struct ion_iommu_map, node);
|
||||
seq_printf(s, "%16.16s: 0x%08lx 0x%08lx %8zuKB %4d\n",
|
||||
seq_printf(s, "%16.16s: 0x%08lx 0x%08x %8zuKB %4d\n",
|
||||
"<iommu>", iommu_map->iova_addr, 0, iommu_map->mapped_size>>10,
|
||||
atomic_read(&iommu_map->ref.refcount));
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@ static int ion_cma_map_iommu(struct ion_buffer *buffer,
|
||||
struct ion_cma_buffer_info *info = buffer->priv_virt;
|
||||
|
||||
data->iova_addr = iovmm_map(iommu_dev, info->table->sgl, 0, iova_length);
|
||||
pr_debug("%s: map %lx -> %lx\n", __func__, info->table->sgl->dma_address,
|
||||
pr_debug("%s: map %x -> %lx\n", __func__, info->table->sgl->dma_address,
|
||||
data->iova_addr);
|
||||
if (!data->iova_addr || IS_ERR_VALUE(data->iova_addr)) {
|
||||
pr_err("%s: iovmm_map() failed: %lx\n", __func__, data->iova_addr);
|
||||
|
||||
@@ -261,7 +261,7 @@ static int ion_system_map_iommu(struct ion_buffer *buffer,
|
||||
struct sg_table *table = (struct sg_table*)buffer->priv_virt;
|
||||
|
||||
data->iova_addr = iovmm_map(iommu_dev, table->sgl, 0, iova_length);
|
||||
pr_debug("%s: map %lx -> %lx\n", __func__, table->sgl->dma_address, data->iova_addr);
|
||||
pr_debug("%s: map %x -> %lx\n", __func__, table->sgl->dma_address, data->iova_addr);
|
||||
if (!data->iova_addr || IS_ERR_VALUE(data->iova_addr)) {
|
||||
pr_err("%s: iovmm_map() failed: %lx\n", __func__, data->iova_addr);
|
||||
ret = -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user