Skip to content

Commit b88ac00

Browse files
committed
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
1 parent 99f45e3 commit b88ac00

5 files changed

Lines changed: 23 additions & 1 deletion

File tree

‎drivers/gpu/drm/drm_crtc_internal.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
* and are not exported to drivers.
3232
*/
3333

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

3543
/* drm_crtc.c */
3644
int drm_mode_crtc_set_obj_prop(struct drm_mode_object *obj,

‎drivers/gpu/drm/drm_plane.c‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@
2020
* OF THIS SOFTWARE.
2121
*/
2222

23-
#include <drm/drmP.h>
23+
#include <linux/slab.h>
24+
#include <linux/uaccess.h>
25+
2426
#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>
2534

2635
#include "drm_crtc_internal.h"
2736

‎include/drm/drm_color_mgmt.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#define __DRM_COLOR_MGMT_H__
2525

2626
#include <linux/ctype.h>
27+
#include <drm/drm_property.h>
2728

2829
struct drm_crtc;
2930
struct drm_plane;

‎include/drm/drm_plane.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include <linux/ctype.h>
2828
#include <drm/drm_mode_object.h>
2929
#include <drm/drm_color_mgmt.h>
30+
#include <drm/drm_rect.h>
31+
#include <drm/drm_modeset_lock.h>
3032
#include <drm/drm_util.h>
3133

3234
struct drm_crtc;

‎include/drm/drm_property.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include <linux/ctype.h>
2828
#include <drm/drm_mode_object.h>
2929

30+
#include <uapi/drm/drm_mode.h>
31+
3032
/**
3133
* struct drm_property_enum - symbolic values for enumerations
3234
* @value: numeric property value for this enum entry

0 commit comments

Comments
 (0)