via_drm.h: move struct via_file_private definition to drivers/gpu/drm/via/via_drv.h
authorMikko Rapeli <mikko.rapeli@iki.fi>
Thu, 15 Oct 2015 05:55:48 +0000 (07:55 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 16 Oct 2015 01:27:49 +0000 (11:27 +1000)
Fixes userspace compile error since list_head is not exported to userspace
headers.

Suggested by Emil Velikov <emil.l.velikov@gmail.com> at
https://lkml.org/lkml/2015/6/3/792

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/via/via_drv.h
include/uapi/drm/via_drm.h

index 644093f..286a785 100644 (file)
@@ -102,6 +102,10 @@ typedef struct drm_via_private {
        uint32_t dma_diff;
 } drm_via_private_t;
 
+struct via_file_private {
+       struct list_head obj_list;
+};
+
 enum via_family {
   VIA_OTHER = 0,     /* Baseline */
   VIA_PRO_GROUP_A,   /* Another video engine and DMA commands */
index 8b0533c..45bc80c 100644 (file)
@@ -274,8 +274,4 @@ typedef struct drm_via_dmablit {
        drm_via_blitsync_t sync;
 } drm_via_dmablit_t;
 
-struct via_file_private {
-       struct list_head obj_list;
-};
-
 #endif                         /* _VIA_DRM_H_ */