[RESEND 4/6] drm/i915/uncore: add to_intel_uncore() and use it

Luca Coelho luca at coelho.fi
Fri Dec 13 10:07:17 UTC 2024


On Wed, 2024-11-20 at 14:03 +0200, Jani Nikula wrote:
> 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.
> 
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
> ---

Reviewed-by: Luca Coelho <luciano.coelho at intel.com>

--
Cheers,
Luca.


More information about the Intel-xe mailing list