diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2016-11-28 13:51:09 -0500 |
---|---|---|
committer | Archit Taneja <architt@codeaurora.org> | 2016-12-18 05:59:29 -0500 |
commit | 9338203c4f03ffe323b67f0b2fa17b9811fa9bb6 (patch) | |
tree | 6f4e2ae37f7a0667f5d87b8018081a3341e2a5de | |
parent | b44f97fd78ce252c543674c46c45e67a1b0c5d90 (diff) |
drm: Don't include <drm/drm_encoder.h> in <drm/drm_crtc.h>
<drm/drm_crtc.h> used to define most of the in-kernel KMS API. It has
now been split into separate files for each object type, but still
includes most other KMS headers to avoid breaking driver compilation.
As a step towards fixing that problem, remove the inclusion of
<drm/drm_encoder.h> from <drm/drm_crtc.h> and include it instead where
appropriate. Also remove the forward declarations of the drm_encoder and
drm_encoder_helper_funcs structures from <drm/drm_crtc.h> as they're not
needed in the header.
<drm/drm_encoder.h> now has to include <drm/drm_mode.h> and contain a
forward declaration of struct drm_encoder in order to allow including it
as the first header in a compilation unit.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sinclair Yeh <syeh@vmware.com> # For vmwgfx
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1481709550-29226-2-git-send-email-laurent.pinchart+renesas@ideasonboard.com
27 files changed, 30 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h index 202b4176b74e..b60346792bf8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include <drm/drm_crtc.h> | 33 | #include <drm/drm_crtc.h> |
34 | #include <drm/drm_edid.h> | 34 | #include <drm/drm_edid.h> |
35 | #include <drm/drm_encoder.h> | ||
35 | #include <drm/drm_dp_helper.h> | 36 | #include <drm/drm_dp_helper.h> |
36 | #include <drm/drm_fixed.h> | 37 | #include <drm/drm_fixed.h> |
37 | #include <drm/drm_crtc_helper.h> | 38 | #include <drm/drm_crtc_helper.h> |
diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h index 908011d2c8f5..6f3b6f50cf52 100644 --- a/drivers/gpu/drm/ast/ast_drv.h +++ b/drivers/gpu/drm/ast/ast_drv.h | |||
@@ -28,6 +28,7 @@ | |||
28 | #ifndef __AST_DRV_H__ | 28 | #ifndef __AST_DRV_H__ |
29 | #define __AST_DRV_H__ | 29 | #define __AST_DRV_H__ |
30 | 30 | ||
31 | #include <drm/drm_encoder.h> | ||
31 | #include <drm/drm_fb_helper.h> | 32 | #include <drm/drm_fb_helper.h> |
32 | 33 | ||
33 | #include <drm/ttm/ttm_bo_api.h> | 34 | #include <drm/ttm/ttm_bo_api.h> |
diff --git a/drivers/gpu/drm/bochs/bochs.h b/drivers/gpu/drm/bochs/bochs.h index 32dfe418cc98..f626bab7f5e3 100644 --- a/drivers/gpu/drm/bochs/bochs.h +++ b/drivers/gpu/drm/bochs/bochs.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <drm/drmP.h> | 4 | #include <drm/drmP.h> |
5 | #include <drm/drm_crtc.h> | 5 | #include <drm/drm_crtc.h> |
6 | #include <drm/drm_crtc_helper.h> | 6 | #include <drm/drm_crtc_helper.h> |
7 | #include <drm/drm_encoder.h> | ||
7 | #include <drm/drm_fb_helper.h> | 8 | #include <drm/drm_fb_helper.h> |
8 | 9 | ||
9 | #include <drm/drm_gem.h> | 10 | #include <drm/drm_gem.h> |
diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.h b/drivers/gpu/drm/cirrus/cirrus_drv.h index 2188d6b61b3e..b59aeef4635a 100644 --- a/drivers/gpu/drm/cirrus/cirrus_drv.h +++ b/drivers/gpu/drm/cirrus/cirrus_drv.h | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #include <video/vga.h> | 14 | #include <video/vga.h> |
15 | 15 | ||
16 | #include <drm/drm_encoder.h> | ||
16 | #include <drm/drm_fb_helper.h> | 17 | #include <drm/drm_fb_helper.h> |
17 | 18 | ||
18 | #include <drm/ttm/ttm_bo_api.h> | 19 | #include <drm/ttm/ttm_bo_api.h> |
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 5a4526289392..40f8126a9738 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <drm/drmP.h> | 23 | #include <drm/drmP.h> |
24 | #include <drm/drm_connector.h> | 24 | #include <drm/drm_connector.h> |
25 | #include <drm/drm_edid.h> | 25 | #include <drm/drm_edid.h> |
26 | #include <drm/drm_encoder.h> | ||
26 | 27 | ||
27 | #include "drm_crtc_internal.h" | 28 | #include "drm_crtc_internal.h" |
28 | #include "drm_internal.h" | 29 | #include "drm_internal.h" |
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 9d007f5f9732..26061753f3bf 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <drm/drmP.h> | 36 | #include <drm/drmP.h> |
37 | #include <drm/drm_atomic.h> | 37 | #include <drm/drm_atomic.h> |
38 | #include <drm/drm_crtc.h> | 38 | #include <drm/drm_crtc.h> |
39 | #include <drm/drm_encoder.h> | ||
39 | #include <drm/drm_fourcc.h> | 40 | #include <drm/drm_fourcc.h> |
40 | #include <drm/drm_crtc_helper.h> | 41 | #include <drm/drm_crtc_helper.h> |
41 | #include <drm/drm_fb_helper.h> | 42 | #include <drm/drm_fb_helper.h> |
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 336be31ff3de..67d6a73731d8 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/vga_switcheroo.h> | 35 | #include <linux/vga_switcheroo.h> |
36 | #include <drm/drmP.h> | 36 | #include <drm/drmP.h> |
37 | #include <drm/drm_edid.h> | 37 | #include <drm/drm_edid.h> |
38 | #include <drm/drm_encoder.h> | ||
38 | #include <drm/drm_displayid.h> | 39 | #include <drm/drm_displayid.h> |
39 | 40 | ||
40 | #define version_greater(edid, maj, min) \ | 41 | #define version_greater(edid, maj, min) \ |
diff --git a/drivers/gpu/drm/drm_mode_config.c b/drivers/gpu/drm/drm_mode_config.c index b1e8bbceaf39..5aba075f112c 100644 --- a/drivers/gpu/drm/drm_mode_config.c +++ b/drivers/gpu/drm/drm_mode_config.c | |||
@@ -20,6 +20,7 @@ | |||
20 | * OF THIS SOFTWARE. | 20 | * OF THIS SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <drm/drm_encoder.h> | ||
23 | #include <drm/drm_mode_config.h> | 24 | #include <drm/drm_mode_config.h> |
24 | #include <drm/drmP.h> | 25 | #include <drm/drmP.h> |
25 | 26 | ||
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index 47848ed8ca48..b5f2f0fece99 100644 --- a/drivers/gpu/drm/drm_of.c +++ b/drivers/gpu/drm/drm_of.c | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/of_graph.h> | 4 | #include <linux/of_graph.h> |
5 | #include <drm/drmP.h> | 5 | #include <drm/drmP.h> |
6 | #include <drm/drm_crtc.h> | 6 | #include <drm/drm_crtc.h> |
7 | #include <drm/drm_encoder.h> | ||
7 | #include <drm/drm_of.h> | 8 | #include <drm/drm_of.h> |
8 | 9 | ||
9 | static void drm_release_of(struct device *dev, void *data) | 10 | static void drm_release_of(struct device *dev, void *data) |
diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c index 7a7dddf604d7..191a5f095cf9 100644 --- a/drivers/gpu/drm/drm_plane_helper.c +++ b/drivers/gpu/drm/drm_plane_helper.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <drm/drm_rect.h> | 29 | #include <drm/drm_rect.h> |
30 | #include <drm/drm_atomic.h> | 30 | #include <drm/drm_atomic.h> |
31 | #include <drm/drm_crtc_helper.h> | 31 | #include <drm/drm_crtc_helper.h> |
32 | #include <drm/drm_encoder.h> | ||
32 | #include <drm/drm_atomic_helper.h> | 33 | #include <drm/drm_atomic_helper.h> |
33 | 34 | ||
34 | #define SUBPIXEL_MASK 0xffff | 35 | #define SUBPIXEL_MASK 0xffff |
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h index e9e9aeecf2eb..da9bfd432ca6 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h | |||
@@ -12,6 +12,8 @@ | |||
12 | #ifndef __FSL_DCU_DRM_DRV_H__ | 12 | #ifndef __FSL_DCU_DRM_DRV_H__ |
13 | #define __FSL_DCU_DRM_DRV_H__ | 13 | #define __FSL_DCU_DRM_DRV_H__ |
14 | 14 | ||
15 | #include <drm/drm_encoder.h> | ||
16 | |||
15 | #include "fsl_dcu_drm_crtc.h" | 17 | #include "fsl_dcu_drm_crtc.h" |
16 | #include "fsl_dcu_drm_output.h" | 18 | #include "fsl_dcu_drm_output.h" |
17 | #include "fsl_dcu_drm_plane.h" | 19 | #include "fsl_dcu_drm_plane.h" |
diff --git a/drivers/gpu/drm/gma500/psb_intel_drv.h b/drivers/gpu/drm/gma500/psb_intel_drv.h index 2a3b7c684db2..6a10215fc42d 100644 --- a/drivers/gpu/drm/gma500/psb_intel_drv.h +++ b/drivers/gpu/drm/gma500/psb_intel_drv.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/i2c-algo-bit.h> | 23 | #include <linux/i2c-algo-bit.h> |
24 | #include <drm/drm_crtc.h> | 24 | #include <drm/drm_crtc.h> |
25 | #include <drm/drm_crtc_helper.h> | 25 | #include <drm/drm_crtc_helper.h> |
26 | #include <drm/drm_encoder.h> | ||
26 | #include <linux/gpio.h> | 27 | #include <linux/gpio.h> |
27 | #include "gma_display.h" | 28 | #include "gma_display.h" |
28 | 29 | ||
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index cd132c216a67..79dce55d4622 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "i915_drv.h" | 32 | #include "i915_drv.h" |
33 | #include <drm/drm_crtc.h> | 33 | #include <drm/drm_crtc.h> |
34 | #include <drm/drm_crtc_helper.h> | 34 | #include <drm/drm_crtc_helper.h> |
35 | #include <drm/drm_encoder.h> | ||
35 | #include <drm/drm_fb_helper.h> | 36 | #include <drm/drm_fb_helper.h> |
36 | #include <drm/drm_dp_dual_mode_helper.h> | 37 | #include <drm/drm_dp_dual_mode_helper.h> |
37 | #include <drm/drm_dp_mst_helper.h> | 38 | #include <drm/drm_dp_mst_helper.h> |
diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.h b/drivers/gpu/drm/mgag200/mgag200_drv.h index 3e02ac20777c..87e0934773de 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.h +++ b/drivers/gpu/drm/mgag200/mgag200_drv.h | |||
@@ -15,6 +15,7 @@ | |||
15 | 15 | ||
16 | #include <video/vga.h> | 16 | #include <video/vga.h> |
17 | 17 | ||
18 | #include <drm/drm_encoder.h> | ||
18 | #include <drm/drm_fb_helper.h> | 19 | #include <drm/drm_fb_helper.h> |
19 | #include <drm/ttm/ttm_bo_api.h> | 20 | #include <drm/ttm/ttm_bo_api.h> |
20 | #include <drm/ttm/ttm_bo_driver.h> | 21 | #include <drm/ttm/ttm_bo_driver.h> |
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.h b/drivers/gpu/drm/nouveau/nouveau_connector.h index 096983c42a1f..a4d1a059bd3d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.h +++ b/drivers/gpu/drm/nouveau/nouveau_connector.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <nvif/notify.h> | 30 | #include <nvif/notify.h> |
31 | 31 | ||
32 | #include <drm/drm_edid.h> | 32 | #include <drm/drm_edid.h> |
33 | #include <drm/drm_encoder.h> | ||
33 | #include <drm/drm_dp_helper.h> | 34 | #include <drm/drm_dp_helper.h> |
34 | #include "nouveau_crtc.h" | 35 | #include "nouveau_crtc.h" |
35 | 36 | ||
diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h index 785aad42e9bb..f15ddd0eb85b 100644 --- a/drivers/gpu/drm/qxl/qxl_drv.h +++ b/drivers/gpu/drm/qxl/qxl_drv.h | |||
@@ -43,6 +43,7 @@ | |||
43 | #include <ttm/ttm_placement.h> | 43 | #include <ttm/ttm_placement.h> |
44 | #include <ttm/ttm_module.h> | 44 | #include <ttm/ttm_module.h> |
45 | 45 | ||
46 | #include <drm/drm_encoder.h> | ||
46 | #include <drm/drm_gem.h> | 47 | #include <drm/drm_gem.h> |
47 | 48 | ||
48 | /* just for ttm_validate_buffer */ | 49 | /* just for ttm_validate_buffer */ |
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index f1da484864a9..ad282648fc8b 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include <drm/drm_crtc.h> | 33 | #include <drm/drm_crtc.h> |
34 | #include <drm/drm_edid.h> | 34 | #include <drm/drm_edid.h> |
35 | #include <drm/drm_encoder.h> | ||
35 | #include <drm/drm_dp_helper.h> | 36 | #include <drm/drm_dp_helper.h> |
36 | #include <drm/drm_dp_mst_helper.h> | 37 | #include <drm/drm_dp_mst_helper.h> |
37 | #include <drm/drm_fixed.h> | 38 | #include <drm/drm_fixed.h> |
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_encoder.h b/drivers/gpu/drm/rcar-du/rcar_du_encoder.h index 7fc10a9c34c3..a050a3699857 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_encoder.h +++ b/drivers/gpu/drm/rcar-du/rcar_du_encoder.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #define __RCAR_DU_ENCODER_H__ | 15 | #define __RCAR_DU_ENCODER_H__ |
16 | 16 | ||
17 | #include <drm/drm_crtc.h> | 17 | #include <drm/drm_crtc.h> |
18 | #include <drm/drm_encoder.h> | ||
18 | 19 | ||
19 | struct rcar_du_device; | 20 | struct rcar_du_device; |
20 | struct rcar_du_hdmienc; | 21 | struct rcar_du_hdmienc; |
diff --git a/drivers/gpu/drm/shmobile/shmob_drm_crtc.h b/drivers/gpu/drm/shmobile/shmob_drm_crtc.h index 38ed4ff8aaf2..818b31549ddc 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_crtc.h +++ b/drivers/gpu/drm/shmobile/shmob_drm_crtc.h | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | #include <drm/drmP.h> | 17 | #include <drm/drmP.h> |
18 | #include <drm/drm_crtc.h> | 18 | #include <drm/drm_crtc.h> |
19 | #include <drm/drm_encoder.h> | ||
19 | 20 | ||
20 | struct backlight_device; | 21 | struct backlight_device; |
21 | struct shmob_drm_device; | 22 | struct shmob_drm_device; |
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index 0ddcce1b420d..5205790dd679 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <drm/drmP.h> | 17 | #include <drm/drmP.h> |
18 | #include <drm/drm_crtc_helper.h> | 18 | #include <drm/drm_crtc_helper.h> |
19 | #include <drm/drm_edid.h> | 19 | #include <drm/drm_edid.h> |
20 | #include <drm/drm_encoder.h> | ||
20 | #include <drm/drm_fb_helper.h> | 21 | #include <drm/drm_fb_helper.h> |
21 | #include <drm/drm_fixed.h> | 22 | #include <drm/drm_fixed.h> |
22 | 23 | ||
diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h index b5c4bb14d0d1..489956efbff8 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.h +++ b/drivers/gpu/drm/vc4/vc4_drv.h | |||
@@ -9,6 +9,8 @@ | |||
9 | #include "drmP.h" | 9 | #include "drmP.h" |
10 | #include "drm_gem_cma_helper.h" | 10 | #include "drm_gem_cma_helper.h" |
11 | 11 | ||
12 | #include <drm/drm_encoder.h> | ||
13 | |||
12 | struct vc4_dev { | 14 | struct vc4_dev { |
13 | struct drm_device *dev; | 15 | struct drm_device *dev; |
14 | 16 | ||
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h index 08906c8ce3fa..025f2e3d483f 100644 --- a/drivers/gpu/drm/virtio/virtgpu_drv.h +++ b/drivers/gpu/drm/virtio/virtgpu_drv.h | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <drm/drm_gem.h> | 35 | #include <drm/drm_gem.h> |
36 | #include <drm/drm_atomic.h> | 36 | #include <drm/drm_atomic.h> |
37 | #include <drm/drm_crtc_helper.h> | 37 | #include <drm/drm_crtc_helper.h> |
38 | #include <drm/drm_encoder.h> | ||
38 | #include <ttm/ttm_bo_api.h> | 39 | #include <ttm/ttm_bo_api.h> |
39 | #include <ttm/ttm_bo_driver.h> | 40 | #include <ttm/ttm_bo_driver.h> |
40 | #include <ttm/ttm_placement.h> | 41 | #include <ttm/ttm_placement.h> |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h index f42ce9a1c3ac..cb36e1d70133 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | |||
@@ -30,6 +30,7 @@ | |||
30 | 30 | ||
31 | #include <drm/drmP.h> | 31 | #include <drm/drmP.h> |
32 | #include <drm/drm_crtc_helper.h> | 32 | #include <drm/drm_crtc_helper.h> |
33 | #include <drm/drm_encoder.h> | ||
33 | #include "vmwgfx_drv.h" | 34 | #include "vmwgfx_drv.h" |
34 | 35 | ||
35 | /** | 36 | /** |
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 946672f97e1e..9ef0ac0ce69f 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -39,7 +39,6 @@ | |||
39 | #include <drm/drm_framebuffer.h> | 39 | #include <drm/drm_framebuffer.h> |
40 | #include <drm/drm_modes.h> | 40 | #include <drm/drm_modes.h> |
41 | #include <drm/drm_connector.h> | 41 | #include <drm/drm_connector.h> |
42 | #include <drm/drm_encoder.h> | ||
43 | #include <drm/drm_property.h> | 42 | #include <drm/drm_property.h> |
44 | #include <drm/drm_bridge.h> | 43 | #include <drm/drm_bridge.h> |
45 | #include <drm/drm_edid.h> | 44 | #include <drm/drm_edid.h> |
@@ -68,14 +67,12 @@ static inline uint64_t I642U64(int64_t val) | |||
68 | } | 67 | } |
69 | 68 | ||
70 | struct drm_crtc; | 69 | struct drm_crtc; |
71 | struct drm_encoder; | ||
72 | struct drm_pending_vblank_event; | 70 | struct drm_pending_vblank_event; |
73 | struct drm_plane; | 71 | struct drm_plane; |
74 | struct drm_bridge; | 72 | struct drm_bridge; |
75 | struct drm_atomic_state; | 73 | struct drm_atomic_state; |
76 | 74 | ||
77 | struct drm_crtc_helper_funcs; | 75 | struct drm_crtc_helper_funcs; |
78 | struct drm_encoder_helper_funcs; | ||
79 | struct drm_plane_helper_funcs; | 76 | struct drm_plane_helper_funcs; |
80 | 77 | ||
81 | /** | 78 | /** |
diff --git a/include/drm/drm_encoder.h b/include/drm/drm_encoder.h index c7438ff0d609..cec6ac45c6cc 100644 --- a/include/drm/drm_encoder.h +++ b/include/drm/drm_encoder.h | |||
@@ -25,8 +25,11 @@ | |||
25 | 25 | ||
26 | #include <linux/list.h> | 26 | #include <linux/list.h> |
27 | #include <linux/ctype.h> | 27 | #include <linux/ctype.h> |
28 | #include <drm/drm_mode.h> | ||
28 | #include <drm/drm_mode_object.h> | 29 | #include <drm/drm_mode_object.h> |
29 | 30 | ||
31 | struct drm_encoder; | ||
32 | |||
30 | /** | 33 | /** |
31 | * struct drm_encoder_funcs - encoder controls | 34 | * struct drm_encoder_funcs - encoder controls |
32 | * | 35 | * |
diff --git a/include/drm/drm_encoder_slave.h b/include/drm/drm_encoder_slave.h index 82cdf611393d..1107b4b1c599 100644 --- a/include/drm/drm_encoder_slave.h +++ b/include/drm/drm_encoder_slave.h | |||
@@ -29,6 +29,7 @@ | |||
29 | 29 | ||
30 | #include <drm/drmP.h> | 30 | #include <drm/drmP.h> |
31 | #include <drm/drm_crtc.h> | 31 | #include <drm/drm_crtc.h> |
32 | #include <drm/drm_encoder.h> | ||
32 | 33 | ||
33 | /** | 34 | /** |
34 | * struct drm_encoder_slave_funcs - Entry points exposed by a slave encoder driver | 35 | * struct drm_encoder_slave_funcs - Entry points exposed by a slave encoder driver |
diff --git a/include/drm/drm_modeset_helper_vtables.h b/include/drm/drm_modeset_helper_vtables.h index 69c3974bf133..625c7475c5df 100644 --- a/include/drm/drm_modeset_helper_vtables.h +++ b/include/drm/drm_modeset_helper_vtables.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #define __DRM_MODESET_HELPER_VTABLES_H__ | 30 | #define __DRM_MODESET_HELPER_VTABLES_H__ |
31 | 31 | ||
32 | #include <drm/drm_crtc.h> | 32 | #include <drm/drm_crtc.h> |
33 | #include <drm/drm_encoder.h> | ||
33 | 34 | ||
34 | /** | 35 | /** |
35 | * DOC: overview | 36 | * DOC: overview |