All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>, intel-gfx@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>,
	Oded Gabbay <ogabbay@kernel.org>,
	Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Subject: Re: [PATCH] drm/xe: Fix build without CONFIG_FAULT_INJECTION
Date: Mon, 18 Dec 2023 15:57:14 +0100	[thread overview]
Message-ID: <9ab982c2-f278-e54d-09b4-e6738c443dce@linux.intel.com> (raw)
In-Reply-To: <20231218143023.1688831-1-rodrigo.vivi@intel.com>


On 12/18/23 15:30, Rodrigo Vivi wrote:
> Ideally this header could be included without the CONFIG_FAULT_INJECTION
> and it would take care itself for the includes it needs.
> So, let's temporary workaround this by moving this below and including
> only when CONFIG_FAULT_INJECTION is selected to avoid build breakages.
>
> Another solution would be us including the linux/types.h as well, but
> this creates unnecessary cases.
>
> Reference: https://lore.kernel.org/all/20230816134748.979231-1-himal.prasad.ghimiray@intel.com/
> Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
> Cc: Oded Gabbay <ogabbay@kernel.org>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Lucas De Marchi <lucas.demarchi@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
LGTM.

Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>

> ---
>   drivers/gpu/drm/xe/xe_debugfs.c | 2 +-
>   drivers/gpu/drm/xe/xe_gt.h      | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
> index f1e80be8b9306..c56fd7d59f057 100644
> --- a/drivers/gpu/drm/xe/xe_debugfs.c
> +++ b/drivers/gpu/drm/xe/xe_debugfs.c
> @@ -5,7 +5,6 @@
>   
>   #include "xe_debugfs.h"
>   
> -#include <linux/fault-inject.h>
>   #include <linux/string_helpers.h>
>   
>   #include <drm/drm_debugfs.h>
> @@ -22,6 +21,7 @@
>   #endif
>   
>   #ifdef CONFIG_FAULT_INJECTION
> +#include <linux/fault-inject.h> /* XXX: fault-inject.h is broken */
>   DECLARE_FAULT_ATTR(gt_reset_failure);
>   #endif
>   
> diff --git a/drivers/gpu/drm/xe/xe_gt.h b/drivers/gpu/drm/xe/xe_gt.h
> index f3c780bd266dd..4486e083f5eff 100644
> --- a/drivers/gpu/drm/xe/xe_gt.h
> +++ b/drivers/gpu/drm/xe/xe_gt.h
> @@ -7,7 +7,6 @@
>   #define _XE_GT_H_
>   
>   #include <drm/drm_util.h>
> -#include <linux/fault-inject.h>
>   
>   #include "xe_device_types.h"
>   #include "xe_hw_engine.h"
> @@ -20,6 +19,7 @@
>   #define CCS_MASK(gt) (((gt)->info.engine_mask & XE_HW_ENGINE_CCS_MASK) >> XE_HW_ENGINE_CCS0)
>   
>   #ifdef CONFIG_FAULT_INJECTION
> +#include <linux/fault-inject.h> /* XXX: fault-inject.h is broken */
>   extern struct fault_attr gt_reset_failure;
>   static inline bool xe_fault_inject_gt_reset(void)
>   {

  reply	other threads:[~2023-12-18 18:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-18 14:30 [PATCH] drm/xe: Fix build without CONFIG_FAULT_INJECTION Rodrigo Vivi
2023-12-18 14:57 ` Thomas Hellström [this message]
2023-12-18 18:51   ` Dixit, Ashutosh
2023-12-18 19:28     ` Rodrigo Vivi
2023-12-18 21:33 ` ✗ Fi.CI.BUILD: failure for " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ab982c2-f278-e54d-09b4-e6738c443dce@linux.intel.com \
    --to=thomas.hellstrom@linux.intel.com \
    --cc=himal.prasad.ghimiray@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=ogabbay@kernel.org \
    --cc=rodrigo.vivi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.