From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] drm: sun4i: fix LPAE warnings
Date: Mon, 06 Jun 2016 15:06:18 +0200 [thread overview]
Message-ID: <4683820.tGQACgnbJT@wuerfel> (raw)
In-Reply-To: <1464973051-20432-1-git-send-email-andre.przywara@arm.com>
On Friday, June 3, 2016 5:57:31 PM CEST Andre Przywara wrote:
> When the sun4i DRM driver is compiled with LPAE enabled, dma_addr_t turns
> into a 64-bit type, which causes warnings with some debug printks:
> =================
> In file included from
> drivers/gpu/drm/sun4i/sun4i_backend.c:13::
> drivers/gpu/drm/sun4i/sun4i_backend.c: In function 'sun4i_backend_update_layer_buffer':
> drivers/gpu/drm/sun4i/sun4i_backend.c:193:19: warning:
> format '%x' expects argument of type 'unsigned int', but argument 3 has
> type 'dma_addr_t {aka long long unsigned int}' [-Wformat=]
> DRM_DEBUG_DRIVER("Using GEM @ 0x%x\n", gem->paddr);
> ^
> include/drm/drmP.h:207:34: note: in definition of macro
> 'DRM_DEBUG_DRIVER'
> drm_ut_debug_printk(__func__, fmt, ##args); \
> .....
>
> Use the proper printk format specifier [1] for dma_addr_t which takes
> care of those differences.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>
I submitted the same patch a month ago, and it's already in linux-next,
I assume it will show up in mainline soon.
arnd
prev parent reply other threads:[~2016-06-06 13:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-03 16:57 [PATCH] drm: sun4i: fix LPAE warnings Andre Przywara
2016-06-03 17:28 ` Thierry Reding
2016-06-06 13:06 ` Arnd Bergmann [this message]
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=4683820.tGQACgnbJT@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox