public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux-next] DRM: Armada: update dma_buf_export use
@ 2014-05-24 21:05 Vincent Stehlé
  2014-05-25 12:08 ` David Herrmann
  0 siblings, 1 reply; 7+ messages in thread
From: Vincent Stehlé @ 2014-05-24 21:05 UTC (permalink / raw)
  To: dri-devel, linux-kernel, linux-next
  Cc: Vincent Stehlé, Russell King, David Airlie,
	Maarten Lankhorst, Sumit Semwal

The dma_buf_export function was updated in commit 4bcec44ffaf9 'dma-buf: use
reservation objects' to take a reservation object parameter; update Armada
export method accordingly.

This fixes the following compilation error:

  drivers/gpu/drm/armada/armada_gem.c: In function ‘armada_gem_prime_export’:
  drivers/gpu/drm/armada/armada_gem.c:544:16: error: macro "dma_buf_export" requires 5 arguments, but only 4 given

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: David Airlie <airlied@linux.ie>
Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
---

Hi,

This can be seen with e.g. linux next-20140523 and arm allmodconfig.

Best regards,

V.

 drivers/gpu/drm/armada/armada_gem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/armada/armada_gem.c b/drivers/gpu/drm/armada/armada_gem.c
index 887816f..7adb0c3 100644
--- a/drivers/gpu/drm/armada/armada_gem.c
+++ b/drivers/gpu/drm/armada/armada_gem.c
@@ -541,7 +541,7 @@ armada_gem_prime_export(struct drm_device *dev, struct drm_gem_object *obj,
 	int flags)
 {
 	return dma_buf_export(obj, &armada_gem_prime_dmabuf_ops, obj->size,
-			      O_RDWR);
+			      O_RDWR, NULL);
 }
 
 struct drm_gem_object *
-- 
2.0.0.rc2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-27 11:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-24 21:05 [PATCH linux-next] DRM: Armada: update dma_buf_export use Vincent Stehlé
2014-05-25 12:08 ` David Herrmann
2014-05-25 22:54   ` Russell King - ARM Linux
2014-05-25 23:06     ` Stephen Rothwell
2014-05-27  5:52       ` Dave Airlie
2014-05-27  6:22         ` Stephen Rothwell
2014-05-27 11:41           ` Sumit Semwal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox