build: fix print type error when gcc arm build [1/1]

PD#SWPL-109525

Problem:
fix print type error when gcc arm build

Solution:
fix print type error when gcc arm build

Verify:
sc2

Test:
local build

Change-Id: I5b1608940edb7635df029969646e76603d7a9cea
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
This commit is contained in:
qinglin.li
2023-01-17 16:09:46 +08:00
committed by gerrit autosubmit
parent f5e13c4cdc
commit 0959f07b2f
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -69,14 +69,14 @@ static int am_meson_gem_alloc_ion_buff(struct am_meson_gem_object *
dmabuf = dma_heap_buffer_alloc(heap, meson_gem_obj->base.size, O_RDWR,
DMA_HEAP_VALID_HEAP_FLAGS);
if (IS_ERR_OR_NULL(dmabuf)) {
DRM_ERROR("%s: dma_heap_buffer_alloc fail. size is %ld\n",
DRM_ERROR("%s: dma_heap_buffer_alloc fail. size is %zu\n",
__func__, meson_gem_obj->base.size);
return -ENOMEM;
}
}
meson_gem_obj->is_dma = true;
DRM_DEBUG("%s: dmabuf(%p) alloc success. size = %ld\n",
DRM_DEBUG("%s: dmabuf(%p) alloc success. size = %zu\n",
__func__, dmabuf, meson_gem_obj->base.size);
} else if (flags & MESON_USE_VIDEO_PLANE) {
meson_gem_obj->is_uvm = true;
+2 -2
View File
@@ -753,8 +753,8 @@ void am_meson_logo_init(struct drm_device *dev)
of_node_put(mem_node);
if (rmem) {
logo.size = rmem->size;
DRM_DEBUG("of read %s reservememsize=0x%x, base 0x%llx\n",
rmem->name, logo.size, rmem->base);
DRM_DEBUG("of read %s reservememsize=0x%x, base %pa\n",
rmem->name, logo.size, &rmem->base);
}
} else {
DRM_ERROR("no memory-region\n");
@@ -1689,7 +1689,7 @@ void amdv_init_receiver(void *pdev)
alloc_size = (alloc_size + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1);
dma_vaddr = dma_alloc_coherent(&amdv_pdev->dev,
alloc_size, &dma_paddr, GFP_KERNEL);
pr_info("get dma_vaddr %px %llx\n", dma_vaddr, dma_paddr);
pr_info("get dma_vaddr %px %pad\n", dma_vaddr, &dma_paddr);
for (i = 0; i < 2; i++) {
md_buf[i] = vmalloc(MD_BUF_SIZE);
if (md_buf[i])
@@ -103,7 +103,7 @@ static int get_hdmitx_color_attr(char *token, char *color_attr)
strcat(attr, cd[i]);
if (strlen(attr) >= sizeof(attr)) {
pr_err("get err attr: %ld-%s\n", strlen(attr), attr);
pr_err("get err attr: %zu-%s\n", strlen(attr), attr);
} else {
strncpy(color_attr, attr, strlen(attr));
ret = 0;