drm/sti: use u32 to store DMA addresses
authorArnd Bergmann <arnd@arndb.de>
Tue, 8 Dec 2015 15:47:21 +0000 (16:47 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Thu, 3 Mar 2016 08:17:17 +0000 (09:17 +0100)
commit52807ae90e76b69fd01688d6031190271536d29f
tree6c0f5fd554797a733db7f530e7c2a1521cc9fad8
parentffd157ce6e5dd5d29e610f630da56a1e22480dae
drm/sti: use u32 to store DMA addresses

The STi drm driver correctly warns about invalid format strings
when built with 64-bit dma_addr_t:

sti_hqvdp.c: In function 'sti_hqvdp_vtg_cb':
sti_hqvdp.c:605:119: warning: format '%x' expects argument of type
'unsigned int', but argument 5 has type 'dma_addr_t {aka long long
unsigned int}' [-Wformat=]
sti_hqvdp.c: In function 'sti_hqvdp_atomic_update':
sti_hqvdp.c:931:118: warning: format '%x' expects argument of type
'unsigned int', but argument 5 has type 'dma_addr_t {aka long long
unsigned int}' [-Wformat=]

This could be changed to using the %pad format string, but that
does not work when printing an rvalue, so instead I'm changing
the type in the sti_hqvdp structure to u32, which is what gets
written into the registers anyway.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Vincent Abriou <vincent.abriou@st.com>
drivers/gpu/drm/sti/sti_hqvdp.c
This page took 0.024787 seconds and 5 git commands to generate.