Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/exynos: ipp: fix incorrect format specifiers in debug messages

Drivers should use %p for printing pointers instead of hardcoding them
as hexadecimal integers. This patch fixes compilation warnings on 64bit
architectures.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Marek Szyprowski and committed by
Inki Dae
3b356785 dbbc925b

+19 -19
+1 -1
drivers/gpu/drm/exynos/exynos_drm_fimc.c
··· 1723 1723 goto err_put_clk; 1724 1724 } 1725 1725 1726 - DRM_DEBUG_KMS("id[%d]ippdrv[0x%x]\n", ctx->id, (int)ippdrv); 1726 + DRM_DEBUG_KMS("id[%d]ippdrv[%p]\n", ctx->id, ippdrv); 1727 1727 1728 1728 spin_lock_init(&ctx->lock); 1729 1729 platform_set_drvdata(pdev, ctx);
+1 -1
drivers/gpu/drm/exynos/exynos_drm_gsc.c
··· 1723 1723 return ret; 1724 1724 } 1725 1725 1726 - DRM_DEBUG_KMS("id[%d]ippdrv[0x%x]\n", ctx->id, (int)ippdrv); 1726 + DRM_DEBUG_KMS("id[%d]ippdrv[%p]\n", ctx->id, ippdrv); 1727 1727 1728 1728 mutex_init(&ctx->lock); 1729 1729 platform_set_drvdata(pdev, ctx);
+16 -16
drivers/gpu/drm/exynos/exynos_drm_ipp.c
··· 208 208 * e.g PAUSE state, queue buf, command control. 209 209 */ 210 210 list_for_each_entry(ippdrv, &exynos_drm_ippdrv_list, drv_list) { 211 - DRM_DEBUG_KMS("count[%d]ippdrv[0x%x]\n", count++, (int)ippdrv); 211 + DRM_DEBUG_KMS("count[%d]ippdrv[%p]\n", count++, ippdrv); 212 212 213 213 mutex_lock(&ippdrv->cmd_lock); 214 214 list_for_each_entry(c_node, &ippdrv->cmd_list, list) { ··· 388 388 } 389 389 property->prop_id = ret; 390 390 391 - DRM_DEBUG_KMS("created prop_id[%d]cmd[%d]ippdrv[0x%x]\n", 392 - property->prop_id, property->cmd, (int)ippdrv); 391 + DRM_DEBUG_KMS("created prop_id[%d]cmd[%d]ippdrv[%p]\n", 392 + property->prop_id, property->cmd, ippdrv); 393 393 394 394 /* stored property information and ippdrv in private data */ 395 395 c_node->property = *property; ··· 518 518 { 519 519 int i; 520 520 521 - DRM_DEBUG_KMS("node[0x%x]\n", (int)m_node); 521 + DRM_DEBUG_KMS("node[%p]\n", m_node); 522 522 523 523 if (!m_node) { 524 524 DRM_ERROR("invalid dequeue node.\n"); ··· 562 562 m_node->buf_id = qbuf->buf_id; 563 563 INIT_LIST_HEAD(&m_node->list); 564 564 565 - DRM_DEBUG_KMS("m_node[0x%x]ops_id[%d]\n", (int)m_node, qbuf->ops_id); 565 + DRM_DEBUG_KMS("m_node[%p]ops_id[%d]\n", m_node, qbuf->ops_id); 566 566 DRM_DEBUG_KMS("prop_id[%d]buf_id[%d]\n", qbuf->prop_id, m_node->buf_id); 567 567 568 568 for_each_ipp_planar(i) { ··· 582 582 583 583 buf_info->handles[i] = qbuf->handle[i]; 584 584 buf_info->base[i] = *addr; 585 - DRM_DEBUG_KMS("i[%d]base[0x%x]hd[0x%lx]\n", i, 586 - buf_info->base[i], buf_info->handles[i]); 585 + DRM_DEBUG_KMS("i[%d]base[%pad]hd[0x%lx]\n", i, 586 + &buf_info->base[i], buf_info->handles[i]); 587 587 } 588 588 } 589 589 ··· 659 659 660 660 mutex_lock(&c_node->event_lock); 661 661 list_for_each_entry_safe(e, te, &c_node->event_list, base.link) { 662 - DRM_DEBUG_KMS("count[%d]e[0x%x]\n", count++, (int)e); 662 + DRM_DEBUG_KMS("count[%d]e[%p]\n", count++, e); 663 663 664 664 /* 665 665 * qbuf == NULL condition means all event deletion. ··· 750 750 751 751 /* find memory node from memory list */ 752 752 list_for_each_entry(m_node, head, list) { 753 - DRM_DEBUG_KMS("count[%d]m_node[0x%x]\n", count++, (int)m_node); 753 + DRM_DEBUG_KMS("count[%d]m_node[%p]\n", count++, m_node); 754 754 755 755 /* compare buffer id */ 756 756 if (m_node->buf_id == qbuf->buf_id) ··· 767 767 struct exynos_drm_ipp_ops *ops = NULL; 768 768 int ret = 0; 769 769 770 - DRM_DEBUG_KMS("node[0x%x]\n", (int)m_node); 770 + DRM_DEBUG_KMS("node[%p]\n", m_node); 771 771 772 772 if (!m_node) { 773 773 DRM_ERROR("invalid queue node.\n"); ··· 1232 1232 m_node = list_first_entry(head, 1233 1233 struct drm_exynos_ipp_mem_node, list); 1234 1234 1235 - DRM_DEBUG_KMS("m_node[0x%x]\n", (int)m_node); 1235 + DRM_DEBUG_KMS("m_node[%p]\n", m_node); 1236 1236 1237 1237 ret = ipp_set_mem_node(ippdrv, c_node, m_node); 1238 1238 if (ret) { ··· 1601 1601 } 1602 1602 ippdrv->prop_list.ipp_id = ret; 1603 1603 1604 - DRM_DEBUG_KMS("count[%d]ippdrv[0x%x]ipp_id[%d]\n", 1605 - count++, (int)ippdrv, ret); 1604 + DRM_DEBUG_KMS("count[%d]ippdrv[%p]ipp_id[%d]\n", 1605 + count++, ippdrv, ret); 1606 1606 1607 1607 /* store parent device for node */ 1608 1608 ippdrv->parent_dev = dev; ··· 1659 1659 1660 1660 file_priv->ipp_dev = dev; 1661 1661 1662 - DRM_DEBUG_KMS("done priv[0x%x]\n", (int)dev); 1662 + DRM_DEBUG_KMS("done priv[%p]\n", dev); 1663 1663 1664 1664 return 0; 1665 1665 } ··· 1676 1676 mutex_lock(&ippdrv->cmd_lock); 1677 1677 list_for_each_entry_safe(c_node, tc_node, 1678 1678 &ippdrv->cmd_list, list) { 1679 - DRM_DEBUG_KMS("count[%d]ippdrv[0x%x]\n", 1680 - count++, (int)ippdrv); 1679 + DRM_DEBUG_KMS("count[%d]ippdrv[%p]\n", 1680 + count++, ippdrv); 1681 1681 1682 1682 if (c_node->filp == file) { 1683 1683 /*
+1 -1
drivers/gpu/drm/exynos/exynos_drm_rotator.c
··· 754 754 goto err_ippdrv_register; 755 755 } 756 756 757 - DRM_DEBUG_KMS("ippdrv[0x%x]\n", (int)ippdrv); 757 + DRM_DEBUG_KMS("ippdrv[%p]\n", ippdrv); 758 758 759 759 platform_set_drvdata(pdev, rot); 760 760