]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/prime: Forward declare struct device
authorLaura Abbott <labbott@redhat.com>
Wed, 10 May 2017 17:05:25 +0000 (10:05 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 May 2017 17:54:03 +0000 (19:54 +0200)
We need a declaration of struct device to avoid warnings:

In file included from include/drm/drm_file.h:38:0,
                 from drivers/gpu/drm/drm_file.c:38:
include/drm/drm_prime.h:71:14: warning: 'struct device' declared inside
  parameter list will not be visible outside of this definition or
  declaration
          struct device *attach_dev);
 ^~~~~~

Forward declare it.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1494435925-9457-1-git-send-email-labbott@redhat.com
include/drm/drm_prime.h

index 46fd1fb4fb05b6ba92c66d23cbe3a3df88d8c28b..59ccab402e85ea4e264636a8cc08b15d3983dff0 100644 (file)
@@ -50,6 +50,8 @@ struct drm_prime_file_private {
        struct rb_root handles;
 };
 
+struct device;
+
 struct dma_buf_export_info;
 struct dma_buf;