drm/radeon: include drm/drm_edid.h only where needed
authorJani Nikula <jani.nikula@intel.com>
Tue, 12 Dec 2023 13:53:38 +0000 (15:53 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Dec 2023 20:28:31 +0000 (15:28 -0500)
Including drm_edid.h from radeon_mode.h causes the rebuild of more than
a hundred files when drm_edid.h is modified, while there are only a
handful of files that actually need to include drm_edid.h.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_encoders.c
drivers/gpu/drm/radeon/dce3_1_afmt.c
drivers/gpu/drm/radeon/dce6_afmt.c
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/evergreen_hdmi.c
drivers/gpu/drm/radeon/radeon_atombios.c
drivers/gpu/drm/radeon/radeon_audio.c
drivers/gpu/drm/radeon/radeon_audio.h
drivers/gpu/drm/radeon/radeon_combios.c
drivers/gpu/drm/radeon/radeon_encoders.c
drivers/gpu/drm/radeon/radeon_mode.h

index 4aca09cab4b8cd2ccf63070d9b2296b19fa44e80..6e537c5bd2959dc75b70cb406569f3e2295bbe30 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/pci.h>
 
 #include <drm/drm_crtc_helper.h>
+#include <drm/drm_edid.h>
 #include <drm/drm_file.h>
 #include <drm/drm_modeset_helper_vtables.h>
 #include <drm/radeon_drm.h>
index e8fe239b9d79cccfca8c01f84c470b36df1feb05..324e9b765098683480366b8918d1753fa45c7508 100644 (file)
@@ -21,6 +21,7 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 #include <linux/hdmi.h>
+#include <drm/drm_edid.h>
 
 #include "radeon.h"
 #include "radeon_asic.h"
index 4a1d5447eac17b1cb0714a9d7b8e54a06dd6a305..4c06f47453fd2a3e6576c36162b7a6747630c77c 100644 (file)
@@ -21,6 +21,7 @@
  *
  */
 #include <linux/hdmi.h>
+#include <drm/drm_edid.h>
 
 #include "dce6_afmt.h"
 #include "radeon.h"
index f0ae087be914eefdfc8d497e4e076a631727f7bf..a424b86008b88518ec581720b9262153d8d9d8c4 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/pci.h>
 #include <linux/slab.h>
 
+#include <drm/drm_edid.h>
 #include <drm/drm_vblank.h>
 #include <drm/radeon_drm.h>
 #include <drm/drm_fourcc.h>
index 5f3078f8ab950fc651742b7e0008d96a641009c8..681119c91d9473d4050b1374ec3c42d83b1edcc1 100644 (file)
@@ -26,6 +26,7 @@
  */
 #include <linux/hdmi.h>
 
+#include <drm/drm_edid.h>
 #include <drm/radeon_drm.h>
 #include "evergreen_hdmi.h"
 #include "radeon.h"
index 85c4bb186203c377fb35b07b6cc8c097a5d3de00..3596ea4a8b60f463a231682292bdc570e79b9c33 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/pci.h>
 
 #include <drm/drm_device.h>
+#include <drm/drm_edid.h>
 #include <drm/radeon_drm.h>
 
 #include "radeon.h"
index 279bf130a18c432b4c31c1507b5479da51c05614..91b58fbc2be77af33ae1f2a097e8188af8ca7095 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <drm/drm_crtc.h>
 #include <drm/drm_eld.h>
+#include <drm/drm_edid.h>
 #include "dce6_afmt.h"
 #include "evergreen_hdmi.h"
 #include "radeon.h"
index 05e67867469b04c39f5e236397abee5ec34a3e53..dacaaa007051e6fe81c7d8c55e41fc7d9d871e79 100644 (file)
@@ -27,7 +27,9 @@
 
 #include <linux/types.h>
 
-#define RREG32_ENDPOINT(block, reg)            \
+struct cea_sad;
+
+#define RREG32_ENDPOINT(block, reg)                            \
        radeon_audio_endpoint_rreg(rdev, (block), (reg))
 #define WREG32_ENDPOINT(block, reg, v) \
        radeon_audio_endpoint_wreg(rdev, (block), (reg), (v))
index 2620efc7c675bf9cb3e79729dfcfd124dfc954f0..6952b1273b0f78aea79e6e18d445cd42a845897e 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/pci.h>
 
 #include <drm/drm_device.h>
+#include <drm/drm_edid.h>
 #include <drm/radeon_drm.h>
 
 #include "radeon.h"
index 9cb6401fe97ed37fbbc5adeb648c22206514542b..3de3dce9e89d6c30fca6e0d8db52470c3ad5fbef 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <linux/pci.h>
 
+#include <drm/drm_edid.h>
 #include <drm/drm_device.h>
 #include <drm/radeon_drm.h>
 
index 1decdcec02649b76a8dc06b718a016f8fd2b5310..59c4db13d90ae323d896d472e8400007e0b1c011 100644 (file)
 
 #include <drm/display/drm_dp_helper.h>
 #include <drm/drm_crtc.h>
-#include <drm/drm_edid.h>
 #include <drm/drm_encoder.h>
 #include <drm/drm_fixed.h>
 #include <drm/drm_modeset_helper_vtables.h>
 #include <linux/i2c.h>
 #include <linux/i2c-algo-bit.h>
 
+struct edid;
 struct radeon_bo;
 struct radeon_device;