drm: forward declare struct drm_file in drm_syncobj.h
authorJani Nikula <jani.nikula@intel.com>
Fri, 28 Dec 2018 08:28:15 +0000 (10:28 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 2 Jan 2019 09:38:08 +0000 (11:38 +0200)
commitdd7ece7f6e220e4d1a2a8ba4c42622d7d73e6376
treee752dacd38333ef675eae6121e22d539ddb3230c
parentf7e271de230b20ea3f9cecf71c45ca23c58aa055
drm: forward declare struct drm_file in drm_syncobj.h

drm_syncobj.h uses struct drm_file pointers, forward declare struct
drm_file to make the header self-contained. This prepares for dropping
drmP.h from files including drm_syncobj.h.

Switch from "" to <> includes while at it.

v2: forward declare instead of including drm_file.h (Daniel)

[Updated commit message per Laurent's review while applying.]

Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181228082815.10797-1-jani.nikula@intel.com
include/drm/drm_syncobj.h