dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Russell King <rmk+kernel@arm.linux.org.uk>,
	David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm: omapdrm: fix compiler errors
Date: Wed, 30 Jul 2014 14:08:05 +0300	[thread overview]
Message-ID: <53D8D215.5050402@ti.com> (raw)
In-Reply-To: <E1X5tzx-00041J-RQ@rmk-PC.arm.linux.org.uk>


[-- Attachment #1.1: Type: text/plain, Size: 2315 bytes --]

Hi Dave,

On 12/07/14 12:53, Russell King wrote:
> Regular randconfig nightly testing has detected problems with omapdrm.
> 
> omapdrm fails to build when the kernel is built to support 64-bit DMA
> addresses and/or 64-bit physical addresses due to an assumption about
> the width of these types.
> 
> Use %pad to print DMA addresses, rather than %x or %Zx (which is even
> more wrong than %x).  Avoid passing a uint32_t pointer into a function
> which expects dma_addr_t pointer.
> 
> drivers/gpu/drm/omapdrm/omap_plane.c: In function 'omap_plane_pre_apply':
> drivers/gpu/drm/omapdrm/omap_plane.c:145:2: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Werror=format]
> drivers/gpu/drm/omapdrm/omap_plane.c:145:2: error: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'dma_addr_t' [-Werror=format]
> make[5]: *** [drivers/gpu/drm/omapdrm/omap_plane.o] Error 1
> drivers/gpu/drm/omapdrm/omap_gem.c: In function 'omap_gem_get_paddr':
> drivers/gpu/drm/omapdrm/omap_gem.c:794:4: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' [-Werror=format]
> drivers/gpu/drm/omapdrm/omap_gem.c: In function 'omap_gem_describe':
> drivers/gpu/drm/omapdrm/omap_gem.c:991:4: error: format '%Zx' expects argument of type 'size_t', but argument 7 has type 'dma_addr_t' [-Werror=format]
> drivers/gpu/drm/omapdrm/omap_gem.c: In function 'omap_gem_init':
> drivers/gpu/drm/omapdrm/omap_gem.c:1470:4: error: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'dma_addr_t' [-Werror=format]
> make[5]: *** [drivers/gpu/drm/omapdrm/omap_gem.o] Error 1
> drivers/gpu/drm/omapdrm/omap_dmm_tiler.c: In function 'dmm_txn_append':
> drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:226:2: error: passing argument 3 of 'alloc_dma' from incompatible pointer type [-Werror]
> make[5]: *** [drivers/gpu/drm/omapdrm/omap_dmm_tiler.o] Error 1
> make[5]: Target `__build' not remade because of errors.
> make[4]: *** [drivers/gpu/drm/omapdrm] Error 2
> 
> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

Dave, I don't have any other patches for omapdrm for 3.17, so can you
apply this directly?

 Tomi



[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2014-07-30 11:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-12  9:53 [PATCH] drm: omapdrm: fix compiler errors Russell King
2014-07-30 11:08 ` Tomi Valkeinen [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=53D8D215.5050402@ti.com \
    --to=tomi.valkeinen@ti.com \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=rmk+kernel@arm.linux.org.uk \
    /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