]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/display: include media/cec-notifier.h and linux/debugfs.h where needed
authorJani Nikula <jani.nikula@intel.com>
Tue, 27 Aug 2024 10:45:21 +0000 (13:45 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 5 Sep 2024 09:21:22 +0000 (12:21 +0300)
Use a forward declaration for struct cec_notifier instead of including
media/cec-notifier.h in intel_display_types.h, and only include it where
needed.

Also realize that a lot of places depend on including linux/debugfs.h
via intel_display_types.h -> media/cec-notifier.h -> media/cec.h, and
include that too where needed.

v2: hsw_ips.c also needs debugfs.h (kernel test robot)

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240827104521.4151471-1-jani.nikula@intel.com
16 files changed:
drivers/gpu/drm/i915/display/hsw_ips.c
drivers/gpu/drm/i915/display/intel_alpm.c
drivers/gpu/drm/i915/display/intel_bios.c
drivers/gpu/drm/i915/display/intel_cdclk.c
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp_link_training.c
drivers/gpu/drm/i915/display/intel_drrs.c
drivers/gpu/drm/i915/display/intel_fbc.c
drivers/gpu/drm/i915/display/intel_hdmi.c
drivers/gpu/drm/i915/display/intel_hotplug.c
drivers/gpu/drm/i915/display/intel_opregion.c
drivers/gpu/drm/i915/display/intel_pps.c
drivers/gpu/drm/i915/display/intel_psr.c
drivers/gpu/drm/i915/display/intel_wm.c
drivers/gpu/drm/i915/display/skl_watermark.c

index 611a7d6ef80c2326150ecac5287889d9c8e8c59a..c571c6e76d4a707d86f80ef0032f2839e0295a39 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright © 2022 Intel Corporation
  */
 
+#include <linux/debugfs.h>
+
 #include "hsw_ips.h"
 #include "i915_drv.h"
 #include "i915_reg.h"
index 186cf4833f716bee11b9baeacdbcdc219a78751a..31c068f393b7f155fb7e518446ed4c47ea9badd2 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright 2024, Intel Corporation.
  */
 
+#include <linux/debugfs.h>
+
 #include "intel_alpm.h"
 #include "intel_crtc.h"
 #include "intel_de.h"
index d49435af62c732b392e05fe541d656dfdacba3ff..cd32c9cd38a976d35f0587c2a38677574898f22f 100644 (file)
@@ -25,6 +25,7 @@
  *
  */
 
+#include <linux/debugfs.h>
 #include <linux/firmware.h>
 
 #include <drm/display/drm_dp_helper.h>
index aa3ba66c5307f6204ea344fdb63a9023597eb286..d6031419e32bea8bb838745b625a3ebaa8076969 100644 (file)
@@ -21,6 +21,7 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
+#include <linux/debugfs.h>
 #include <linux/time.h>
 
 #include <drm/drm_fixed.h>
index f5f618199d39806c2571e20d13f53e9267e13ea7..30a0a1d7f6f17d98a9548674554b17cb1f2291d9 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright © 2020 Intel Corporation
  */
 
+#include <linux/debugfs.h>
 #include <linux/string_helpers.h>
 
 #include <drm/drm_debugfs.h>
index 5a6c3be5a909ed9a1f97c932f1287a7c7440016f..4b8b7a86d02ce5f3cdafc0d638b5ce6568c6ef05 100644 (file)
@@ -43,7 +43,6 @@
 #include <drm/drm_rect.h>
 #include <drm/drm_vblank_work.h>
 #include <drm/intel/i915_hdcp_interface.h>
-#include <media/cec-notifier.h>
 
 #include "gem/i915_gem_object_types.h" /* for to_intel_bo() */
 #include "i915_vma.h"
@@ -55,6 +54,7 @@
 #include "intel_dpll_mgr.h"
 #include "intel_wm_types.h"
 
+struct cec_notifier;
 struct drm_printer;
 struct __intel_global_objs_state;
 struct intel_connector;
index 40bedc31d6bf2ffe85712ff2ce2fbae7dbd50ece..f45797c1a205126802d2f841c5e91cd02cfa5acc 100644 (file)
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
+#include <linux/debugfs.h>
+
 #include <drm/display/drm_dp_helper.h>
 
 #include "i915_drv.h"
index 3ca29afa54222ec73b3c32ae30fa3f0e447b79bd..bb39eb96e812c751d5eefc3f50d02abaa3390df8 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright © 2021 Intel Corporation
  */
 
+#include <linux/debugfs.h>
+
 #include "i915_drv.h"
 #include "i915_reg.h"
 #include "intel_atomic.h"
index 52b79bacef4d3cfc0183c5f97d3a0420e2e3982c..b53b38c2f19f28095a8a53cb43f941d1c27ad0ba 100644 (file)
@@ -38,6 +38,7 @@
  * forcibly disable it to allow proper screen updates.
  */
 
+#include <linux/debugfs.h>
 #include <linux/string_helpers.h>
 
 #include <drm/drm_blend.h>
index 15316c0272a8e2dc4b8ad6479d42857eef0d8e73..869fa00f7ef2cf7d1c966702ce6d382e4903c5ac 100644 (file)
@@ -41,6 +41,8 @@
 #include <drm/drm_probe_helper.h>
 #include <drm/intel/intel_lpe_audio.h>
 
+#include <media/cec-notifier.h>
+
 #include "g4x_hdmi.h"
 #include "i915_drv.h"
 #include "i915_reg.h"
index 2617c5f63a0727a92a088278262833005de88968..a013b0e0ef543699b03b256ca445edff773ba8e4 100644 (file)
@@ -21,6 +21,7 @@
  * IN THE SOFTWARE.
  */
 
+#include <linux/debugfs.h>
 #include <linux/kernel.h>
 
 #include <drm/drm_probe_helper.h>
index ff11836459def860717c37804faf51a254272876..0eaa6cd6fe809a22295ed4f7eddc8a978a652407 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #include <linux/acpi.h>
+#include <linux/debugfs.h>
 #include <linux/dmi.h>
 #include <acpi/video.h>
 
index feddc30e3375eacc96eca218abd1a5aa0ce529ce..cdbac9f5a14c53dc314d58ba06efcf6c8fdc0eb5 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright © 2020 Intel Corporation
  */
 
+#include <linux/debugfs.h>
+
 #include "g4x_dp.h"
 #include "i915_drv.h"
 #include "i915_reg.h"
index 1f83b3b67ea6c1807e7340a657ca7e2dbeacd1a7..b30fa067ce6e3332fb888cb4aa2fe9e8a10b0338 100644 (file)
@@ -21,6 +21,8 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
+#include <linux/debugfs.h>
+
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_damage_helper.h>
 #include <drm/drm_debugfs.h>
index 82c4933ad5073e267f95757aad6969516df41b2c..462917bc488f7de83d3b452951aa4bb25130e039 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright © 2023 Intel Corporation
  */
 
+#include <linux/debugfs.h>
+
 #include "i915_drv.h"
 #include "i9xx_wm.h"
 #include "intel_display_types.h"
index 045c7cac166bb4d9e9828f1b54fdfce60a5e51cf..e955e399b3904672554aaa144cec38dc50cf17a3 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright © 2022 Intel Corporation
  */
 
+#include <linux/debugfs.h>
+
 #include <drm/drm_blend.h>
 
 #include "i915_drv.h"