Blob Blame History Raw
From bebc1d55d2923ee365de394bcac8ed80ca558f42 Mon Sep 17 00:00:00 2001
From: Laura Abbott <labbott@redhat.com>
Date: Wed, 10 May 2017 10:05:25 -0700
Subject: [PATCH] drm/prime: Forward declare struct device
Git-commit: bebc1d55d2923ee365de394bcac8ed80ca558f42
Patch-mainline: v4.13-rc1
References: FATE#322643 bsc#1055900

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
Acked-by: Takashi Iwai <tiwai@suse.de>

---
 include/drm/drm_prime.h |    2 ++
 1 file changed, 2 insertions(+)

--- 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;