summaryrefslogtreecommitdiff
path: root/include/drm/drm_prime.h
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2017-05-10 20:05:25 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-05-10 20:54:03 +0300
commitbebc1d55d2923ee365de394bcac8ed80ca558f42 (patch)
treeab0e0d8bef78807e96a274366ed632cfc347e18d /include/drm/drm_prime.h
parent5caa0feafcc60a2457d8187c2fa06a3df67c8ba2 (diff)
downloadlinux-bebc1d55d2923ee365de394bcac8ed80ca558f42.tar.xz
drm/prime: Forward declare struct device
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
Diffstat (limited to 'include/drm/drm_prime.h')
-rw-r--r--include/drm/drm_prime.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_prime.h b/include/drm/drm_prime.h
index 46fd1fb4fb05..59ccab402e85 100644
--- a/include/drm/drm_prime.h
+++ b/include/drm/drm_prime.h
@@ -50,6 +50,8 @@ struct drm_prime_file_private {
struct rb_root handles;
};
+struct device;
+
struct dma_buf_export_info;
struct dma_buf;