drm: un-inline drm_legacy_findmap()
authorJani Nikula <jani.nikula@intel.com>
Fri, 28 Dec 2018 13:04:46 +0000 (15:04 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 2 Jan 2019 09:37:11 +0000 (11:37 +0200)
commitc76426883c8f44bc7d2aee123e28867c67b87384
tree3e97f5eec0d4e3ab914b5c19d46bd668adac1606
parentb4bf44d2dcbd6c35d9651bc6286e4940b8b3df95
drm: un-inline drm_legacy_findmap()

Un-inline drm_legacy_findmap() to not depend on struct drm_device
definition within drm_legacy.h, so that a forward declaration suffices.

Also include drm_hashtab.h in drm_legacy.h to make it more
self-contained. Make it easier to drop drmP.h includes.

v2: avoid including drm_device.h by un-inlining (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/20181228130446.22141-1-jani.nikula@intel.com
drivers/gpu/drm/drm_bufs.c
include/drm/drm_legacy.h