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

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915: reduce intel_wakeref.h dependencies

Forward declare struct drm_printer instead of including drm/drm_print.h,
as we only need the pointer. Turns out quite a few places depend on this
include implicitly. Make them explicit.

Some of the includes are just stale and unnecessary. Group the forward
declarations together while at it.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250326115452.2090275-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+35 -7
+2
drivers/gpu/drm/i915/display/dvo_ch7017.c
··· 25 25 * 26 26 */ 27 27 28 + #include <drm/drm_print.h> 29 + 28 30 #include "intel_display_types.h" 29 31 #include "intel_dvo_dev.h" 30 32
+2
drivers/gpu/drm/i915/display/dvo_ch7xxx.c
··· 26 26 27 27 **************************************************************************/ 28 28 29 + #include <drm/drm_print.h> 30 + 29 31 #include "intel_display_types.h" 30 32 #include "intel_dvo_dev.h" 31 33
+2
drivers/gpu/drm/i915/display/dvo_ivch.c
··· 29 29 * 30 30 */ 31 31 32 + #include <drm/drm_print.h> 33 + 32 34 #include "intel_display_types.h" 33 35 #include "intel_dvo_dev.h" 34 36
+2
drivers/gpu/drm/i915/display/dvo_ns2501.c
··· 26 26 * 27 27 */ 28 28 29 + #include <drm/drm_print.h> 30 + 29 31 #include "intel_display_types.h" 30 32 #include "intel_dvo_dev.h" 31 33
+2
drivers/gpu/drm/i915/display/dvo_sil164.c
··· 26 26 27 27 **************************************************************************/ 28 28 29 + #include <drm/drm_print.h> 30 + 29 31 #include "intel_display_types.h" 30 32 #include "intel_dvo_dev.h" 31 33
+2
drivers/gpu/drm/i915/display/dvo_tfp410.c
··· 25 25 * 26 26 */ 27 27 28 + #include <drm/drm_print.h> 29 + 28 30 #include "intel_display_types.h" 29 31 #include "intel_dvo_dev.h" 30 32
+1
drivers/gpu/drm/i915/display/icl_dsi.c
··· 29 29 #include <drm/drm_atomic_helper.h> 30 30 #include <drm/drm_fixed.h> 31 31 #include <drm/drm_mipi_dsi.h> 32 + #include <drm/drm_print.h> 32 33 #include <drm/drm_probe_helper.h> 33 34 34 35 #include "i915_reg.h"
+2
drivers/gpu/drm/i915/display/intel_color.c
··· 22 22 * 23 23 */ 24 24 25 + #include <drm/drm_print.h> 26 + 25 27 #include "i915_utils.h" 26 28 #include "i9xx_plane_regs.h" 27 29 #include "intel_color.h"
+2
drivers/gpu/drm/i915/display/intel_combo_phy.c
··· 3 3 * Copyright © 2018 Intel Corporation 4 4 */ 5 5 6 + #include <drm/drm_print.h> 7 + 6 8 #include "i915_reg.h" 7 9 #include "i915_utils.h" 8 10 #include "intel_combo_phy.h"
+1
drivers/gpu/drm/i915/display/intel_dkl_phy.c
··· 4 4 */ 5 5 6 6 #include <drm/drm_device.h> 7 + #include <drm/drm_print.h> 7 8 8 9 #include "intel_de.h" 9 10 #include "intel_display.h"
+1
drivers/gpu/drm/i915/display/intel_dvo.c
··· 31 31 #include <drm/drm_atomic_helper.h> 32 32 #include <drm/drm_crtc.h> 33 33 #include <drm/drm_edid.h> 34 + #include <drm/drm_print.h> 34 35 #include <drm/drm_probe_helper.h> 35 36 36 37 #include "i915_reg.h"
+1
drivers/gpu/drm/i915/display/intel_hti.c
··· 4 4 */ 5 5 6 6 #include <drm/drm_device.h> 7 + #include <drm/drm_print.h> 7 8 8 9 #include "intel_de.h" 9 10 #include "intel_display.h"
+1
drivers/gpu/drm/i915/display/intel_load_detect.c
··· 6 6 #include <drm/drm_atomic.h> 7 7 #include <drm/drm_atomic_helper.h> 8 8 #include <drm/drm_atomic_uapi.h> 9 + #include <drm/drm_print.h> 9 10 10 11 #include "intel_atomic.h" 11 12 #include "intel_crtc.h"
+1
drivers/gpu/drm/i915/display/intel_lspcon.c
··· 27 27 #include <drm/display/drm_hdmi_helper.h> 28 28 #include <drm/drm_atomic_helper.h> 29 29 #include <drm/drm_edid.h> 30 + #include <drm/drm_print.h> 30 31 31 32 #include "i915_reg.h" 32 33 #include "i915_utils.h"
+2
drivers/gpu/drm/i915/display/intel_pmdemand.c
··· 5 5 6 6 #include <linux/bitops.h> 7 7 8 + #include <drm/drm_print.h> 9 + 8 10 #include "i915_reg.h" 9 11 #include "i915_utils.h" 10 12 #include "intel_atomic.h"
+2
drivers/gpu/drm/i915/display/intel_snps_phy.c
··· 5 5 6 6 #include <linux/math.h> 7 7 8 + #include <drm/drm_print.h> 9 + 8 10 #include "i915_reg.h" 9 11 #include "i915_utils.h" 10 12 #include "intel_ddi.h"
+2
drivers/gpu/drm/i915/display/intel_tc.c
··· 3 3 * Copyright © 2019 Intel Corporation 4 4 */ 5 5 6 + #include <drm/drm_print.h> 7 + 6 8 #include "i915_reg.h" 7 9 #include "i915_utils.h" 8 10 #include "intel_atomic.h"
+1
drivers/gpu/drm/i915/display/intel_vdsc.c
··· 9 9 10 10 #include <drm/display/drm_dsc_helper.h> 11 11 #include <drm/drm_fixed.h> 12 + #include <drm/drm_print.h> 12 13 13 14 #include "i915_utils.h" 14 15 #include "intel_crtc.h"
+2
drivers/gpu/drm/i915/display/intel_vrr.c
··· 4 4 * 5 5 */ 6 6 7 + #include <drm/drm_print.h> 8 + 7 9 #include "i915_reg.h" 8 10 #include "intel_de.h" 9 11 #include "intel_display_types.h"
+4 -7
drivers/gpu/drm/i915/intel_wakeref.h
··· 7 7 #ifndef INTEL_WAKEREF_H 8 8 #define INTEL_WAKEREF_H 9 9 10 - #include <drm/drm_print.h> 11 - 12 10 #include <linux/atomic.h> 13 11 #include <linux/bitfield.h> 14 12 #include <linux/bits.h> ··· 14 16 #include <linux/mutex.h> 15 17 #include <linux/refcount.h> 16 18 #include <linux/ref_tracker.h> 17 - #include <linux/slab.h> 18 - #include <linux/stackdepot.h> 19 19 #include <linux/timer.h> 20 20 #include <linux/workqueue.h> 21 + 22 + struct drm_printer; 23 + struct intel_runtime_pm; 24 + struct intel_wakeref; 21 25 22 26 typedef struct ref_tracker *intel_wakeref_t; 23 27 ··· 31 31 #else 32 32 #define INTEL_WAKEREF_BUG_ON(expr) BUILD_BUG_ON_INVALID(expr) 33 33 #endif 34 - 35 - struct intel_runtime_pm; 36 - struct intel_wakeref; 37 34 38 35 struct intel_wakeref_ops { 39 36 int (*get)(struct intel_wakeref *wf);