Skip to content

Commit 399f7b6

Browse files
committed
drm/i915/uncore: add to_intel_uncore() and use it
Add to_intel_uncore() function to avoid the inclusion of i915_drv.h from intel_de.h. This reveals a number of implicit dependencies on i915_drv.h that need to be added. For now, to_intel_uncore() can be an inline function, with all the includes in compat intel_uncore.h, as long as i915_drv.h isn't included. The implicit dependencies on i915_drv.h is a problem in display code, but the same is not true for xe_device.h etc. Reviewed-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/377e2b400d126776224fc49874ed9cb03ac3123c.1732104170.git.jani.nikula@intel.com
1 parent adceb41 commit 399f7b6

29 files changed

+42
-2
lines changed

drivers/gpu/drm/i915/display/g4x_dp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/string_helpers.h>
99

1010
#include "g4x_dp.h"
11+
#include "i915_drv.h"
1112
#include "i915_reg.h"
1213
#include "intel_audio.h"
1314
#include "intel_backlight.h"

drivers/gpu/drm/i915/display/g4x_hdmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
#include "g4x_hdmi.h"
9+
#include "i915_drv.h"
910
#include "i915_reg.h"
1011
#include "intel_atomic.h"
1112
#include "intel_audio.h"

drivers/gpu/drm/i915/display/i9xx_plane.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <drm/drm_blend.h>
99
#include <drm/drm_fourcc.h>
1010

11+
#include "i915_drv.h"
1112
#include "i915_reg.h"
1213
#include "i9xx_plane.h"
1314
#include "i9xx_plane_regs.h"

drivers/gpu/drm/i915/display/icl_dsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <drm/drm_mipi_dsi.h>
3232
#include <drm/drm_probe_helper.h>
3333

34+
#include "i915_drv.h"
3435
#include "i915_reg.h"
3536
#include "icl_dsi.h"
3637
#include "icl_dsi_regs.h"

drivers/gpu/drm/i915/display/intel_alpm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <linux/debugfs.h>
77

8+
#include "i915_drv.h"
89
#include "intel_alpm.h"
910
#include "intel_crtc.h"
1011
#include "intel_de.h"

drivers/gpu/drm/i915/display/intel_backlight.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <acpi/video.h>
1212

13+
#include "i915_drv.h"
1314
#include "i915_reg.h"
1415
#include "intel_backlight.h"
1516
#include "intel_backlight_regs.h"

drivers/gpu/drm/i915/display/intel_cdclk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "soc/intel_dram.h"
3030

3131
#include "hsw_ips.h"
32+
#include "i915_drv.h"
3233
#include "i915_reg.h"
3334
#include "intel_atomic.h"
3435
#include "intel_atomic_plane.h"

drivers/gpu/drm/i915/display/intel_color.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
*
2323
*/
2424

25+
#include "i915_drv.h"
2526
#include "i9xx_plane_regs.h"
2627
#include "intel_color.h"
2728
#include "intel_color_regs.h"

drivers/gpu/drm/i915/display/intel_combo_phy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © 2018 Intel Corporation
44
*/
55

6+
#include "i915_drv.h"
67
#include "i915_reg.h"
78
#include "intel_combo_phy.h"
89
#include "intel_combo_phy_regs.h"

drivers/gpu/drm/i915/display/intel_cursor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <drm/drm_fourcc.h>
1212
#include <drm/drm_vblank.h>
1313

14+
#include "i915_drv.h"
1415
#include "i915_reg.h"
1516
#include "intel_atomic.h"
1617
#include "intel_atomic_plane.h"

0 commit comments

Comments
 (0)