diff mbox series

drm/i915/display: Include drm_drv.h in intel_display_params.c

Message ID 20231026114049.2013478-1-jouni.hogander@intel.com (mailing list archive)
State New, archived
Headers show
Series drm/i915/display: Include drm_drv.h in intel_display_params.c | expand

Commit Message

Hogander, Jouni Oct. 26, 2023, 11:40 a.m. UTC
intel_display_params.c is accessing drm_drv->name. Due to this include
drm_drv.h to avoid build problem with Xe.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display_params.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jani Nikula Oct. 26, 2023, noon UTC | #1
On Thu, 26 Oct 2023, Jouni Högander <jouni.hogander@intel.com> wrote:
> intel_display_params.c is accessing drm_drv->name. Due to this include
> drm_drv.h to avoid build problem with Xe.
>
> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_display_params.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_params.c b/drivers/gpu/drm/i915/display/intel_display_params.c
> index 11e03cfb774d..cd1dd2fbd8a4 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_params.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_params.c
> @@ -3,6 +3,8 @@
>   * Copyright © 2023 Intel Corporation
>   */
>  
> +#include <drm/drm_drv.h>
> +
>  #include "intel_display_params.h"
>  #include "i915_drv.h"
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_display_params.c b/drivers/gpu/drm/i915/display/intel_display_params.c
index 11e03cfb774d..cd1dd2fbd8a4 100644
--- a/drivers/gpu/drm/i915/display/intel_display_params.c
+++ b/drivers/gpu/drm/i915/display/intel_display_params.c
@@ -3,6 +3,8 @@ 
  * Copyright © 2023 Intel Corporation
  */
 
+#include <drm/drm_drv.h>
+
 #include "intel_display_params.h"
 #include "i915_drv.h"