Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: drop drmP.h include from drm_plane.c

Just a bit of missing includes and pre declarations.

v2: Compiles now, with drm/drm_util.h extracted.

v3: Rebase

v3: Fix up commit message (Sam Ravnborg)

Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180905135711.28370-3-daniel.vetter@ffwll.ch

+23 -1
+8
drivers/gpu/drm/drm_crtc_internal.h
··· 31 31 * and are not exported to drivers. 32 32 */ 33 33 34 + enum drm_mode_status; 35 + enum drm_connector_force; 36 + 37 + struct drm_display_mode; 38 + struct work_struct; 39 + struct drm_connector; 40 + struct drm_bridge; 41 + struct edid; 34 42 35 43 /* drm_crtc.c */ 36 44 int drm_mode_crtc_set_obj_prop(struct drm_mode_object *obj,
+10 -1
drivers/gpu/drm/drm_plane.c
··· 20 20 * OF THIS SOFTWARE. 21 21 */ 22 22 23 - #include <drm/drmP.h> 23 + #include <linux/slab.h> 24 + #include <linux/uaccess.h> 25 + 24 26 #include <drm/drm_plane.h> 27 + #include <drm/drm_drv.h> 28 + #include <drm/drm_print.h> 29 + #include <drm/drm_framebuffer.h> 30 + #include <drm/drm_file.h> 31 + #include <drm/drm_crtc.h> 32 + #include <drm/drm_fourcc.h> 33 + #include <drm/drm_vblank.h> 25 34 26 35 #include "drm_crtc_internal.h" 27 36
+1
include/drm/drm_color_mgmt.h
··· 24 24 #define __DRM_COLOR_MGMT_H__ 25 25 26 26 #include <linux/ctype.h> 27 + #include <drm/drm_property.h> 27 28 28 29 struct drm_crtc; 29 30 struct drm_plane;
+2
include/drm/drm_plane.h
··· 27 27 #include <linux/ctype.h> 28 28 #include <drm/drm_mode_object.h> 29 29 #include <drm/drm_color_mgmt.h> 30 + #include <drm/drm_rect.h> 31 + #include <drm/drm_modeset_lock.h> 30 32 #include <drm/drm_util.h> 31 33 32 34 struct drm_crtc;
+2
include/drm/drm_property.h
··· 27 27 #include <linux/ctype.h> 28 28 #include <drm/drm_mode_object.h> 29 29 30 + #include <uapi/drm/drm_mode.h> 31 + 30 32 /** 31 33 * struct drm_property_enum - symbolic values for enumerations 32 34 * @value: numeric property value for this enum entry