[Intel-xe] [PATCH 3/9] drm/i915/display: add I915 conditional build to i9xx_wm.h

Rodrigo Vivi rodrigo.vivi at intel.com
Wed Apr 19 19:35:26 UTC 2023


On Wed, Apr 19, 2023 at 03:39:41PM +0300, Jani Nikula wrote:
> Add stubs for !I915.
> 
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
> ---
>  drivers/gpu/drm/i915/display/i9xx_wm.h | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/i9xx_wm.h b/drivers/gpu/drm/i915/display/i9xx_wm.h
> index b87ae369685a..de0920730ab2 100644
> --- a/drivers/gpu/drm/i915/display/i9xx_wm.h
> +++ b/drivers/gpu/drm/i915/display/i9xx_wm.h
> @@ -12,9 +12,26 @@ struct drm_i915_private;
>  struct intel_crtc_state;
>  struct intel_plane_state;
>  
> +#ifdef I915
>  bool ilk_disable_lp_wm(struct drm_i915_private *i915);
>  void ilk_wm_sanitize(struct drm_i915_private *i915);
>  bool intel_set_memory_cxsr(struct drm_i915_private *i915, bool enable);
>  void i9xx_wm_init(struct drm_i915_private *i915);
> +#else
> +static inline bool ilk_disable_lp_wm(struct drm_i915_private *i915)
> +{
> +	return false;
> +}
> +static inline void ilk_wm_sanitize(struct drm_i915_private *i915)
> +{
> +}
> +static inline bool intel_set_memory_cxsr(struct drm_i915_private *i915, bool enable)
> +{
> +	return false;
> +}
> +static inline void i9xx_wm_init(struct drm_i915_private *i915)
> +{
> +}
> +#endif
>  
>  #endif /* __I9XX_WM_H__ */
> -- 
> 2.39.2
> 


More information about the Intel-xe mailing list