Skip to content

Commit b8eade2

Browse files
Jingoo Hanairlied
Jingoo Han
authored andcommitted
drm/exynos: use %pad for dma_addr_t
Use %pad for dma_addr_t, because a dma_addr_t type can vary based on build options. So, it prevents possible build warnings in printks. Signed-off-by: Jingoo Han <[email protected]> Reviewed-by: Daniel Kurtz <[email protected]> Signed-off-by: Inki Dae <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent 293d3f6 commit b8eade2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/exynos/exynos_drm_dmabuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device *drm_dev,
263263
buffer->sgt = sgt;
264264
exynos_gem_obj->base.import_attach = attach;
265265

266-
DRM_DEBUG_PRIME("dma_addr = 0x%x, size = 0x%lx\n", buffer->dma_addr,
266+
DRM_DEBUG_PRIME("dma_addr = %pad, size = 0x%lx\n", &buffer->dma_addr,
267267
buffer->size);
268268

269269
return &exynos_gem_obj->base;

drivers/gpu/drm/exynos/exynos_drm_vidi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static void vidi_win_commit(struct exynos_drm_manager *mgr, int zpos)
220220

221221
win_data->enabled = true;
222222

223-
DRM_DEBUG_KMS("dma_addr = 0x%x\n", win_data->dma_addr);
223+
DRM_DEBUG_KMS("dma_addr = %pad\n", &win_data->dma_addr);
224224

225225
if (ctx->vblank_on)
226226
schedule_work(&ctx->work);

0 commit comments

Comments
 (0)