From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Dave Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm: gem-cma: Fix warnings due to improper printk formats
Date: Thu, 03 Apr 2014 02:21:10 +0200 [thread overview]
Message-ID: <1736665.yCifit6oSM@avalon> (raw)
In-Reply-To: <1393956617-10616-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
Hi Dave,
Could you please take this patch in your tree ?
What's the expected process when sending patches to the mailing list by the
way ? Do you track them somehow, or always expect pull requests ?
On Tuesday 04 March 2014 19:10:17 Laurent Pinchart wrote:
> Use the %pad printk specifier to print dma_addr_t variables. This fixes
> warnings on platforms where dma_addr_t has a different size than int or
> size_t.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
> drivers/gpu/drm/drm_gem_cma_helper.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c
> b/drivers/gpu/drm/drm_gem_cma_helper.c index 6b51bf9..c049e5b 100644
> --- a/drivers/gpu/drm/drm_gem_cma_helper.c
> +++ b/drivers/gpu/drm/drm_gem_cma_helper.c
> @@ -292,9 +292,9 @@ void drm_gem_cma_describe(struct drm_gem_cma_object
> *cma_obj, struct seq_file *m
>
> off = drm_vma_node_start(&obj->vma_node);
>
> - seq_printf(m, "%2d (%2d) %08llx %08Zx %p %d",
> + seq_printf(m, "%2d (%2d) %08llx %pad %p %d",
> obj->name, obj->refcount.refcount.counter,
> - off, cma_obj->paddr, cma_obj->vaddr, obj->size);
> + off, &cma_obj->paddr, cma_obj->vaddr, obj->size);
>
> seq_printf(m, "\n");
> }
> @@ -342,7 +342,7 @@ drm_gem_cma_prime_import_sg_table(struct drm_device
> *dev, size_t size, cma_obj->paddr = sg_dma_address(sgt->sgl);
> cma_obj->sgt = sgt;
>
> - DRM_DEBUG_PRIME("dma_addr = 0x%x, size = %zu\n", cma_obj->paddr, size);
> + DRM_DEBUG_PRIME("dma_addr = %pad, size = %zu\n", &cma_obj->paddr, size);
>
> return &cma_obj->base;
> }
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-04-03 0:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-04 18:10 [PATCH] drm: gem-cma: Fix warnings due to improper printk formats Laurent Pinchart
2014-04-03 0:21 ` Laurent Pinchart [this message]
2014-04-03 22:01 ` Dave Airlie
2014-04-03 22:13 ` Laurent Pinchart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1736665.yCifit6oSM@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.