From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 1/3] drm/xe: Don't rely on xe_assert.h to be included elsewhere
Date: Tue, 7 May 2024 08:30:45 -0400 [thread overview]
Message-ID: <Zjoe9YvsEs7FbyB4@intel.com> (raw)
In-Reply-To: <20240507110959.2747-2-michal.wajdeczko@intel.com>
On Tue, May 07, 2024 at 01:09:57PM +0200, Michal Wajdeczko wrote:
> While xe_assert.h is now included and used by the xe_force_wake.h,
> we want to stop include xe_force_wake.h from xe_device.h as it's
> not needed there. Explicitly include xe_assert.h where needed.
I had recently bumped into one of these, last week...
Thanks for fixing it.
That's the problem of includes inside .h...
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> ---
> drivers/gpu/drm/xe/xe_bb.c | 1 +
> drivers/gpu/drm/xe/xe_gsc_submit.c | 1 +
> drivers/gpu/drm/xe/xe_gt_clock.c | 1 +
> drivers/gpu/drm/xe/xe_uc.c | 1 +
> drivers/gpu/drm/xe/xe_vm.h | 1 +
> 5 files changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_bb.c b/drivers/gpu/drm/xe/xe_bb.c
> index 541361caff3b..37e056fde95d 100644
> --- a/drivers/gpu/drm/xe/xe_bb.c
> +++ b/drivers/gpu/drm/xe/xe_bb.c
> @@ -7,6 +7,7 @@
>
> #include "instructions/xe_mi_commands.h"
> #include "regs/xe_gpu_commands.h"
> +#include "xe_assert.h"
> #include "xe_device.h"
> #include "xe_exec_queue_types.h"
> #include "xe_gt.h"
> diff --git a/drivers/gpu/drm/xe/xe_gsc_submit.c b/drivers/gpu/drm/xe/xe_gsc_submit.c
> index d34d03248843..9ede483d37ef 100644
> --- a/drivers/gpu/drm/xe/xe_gsc_submit.c
> +++ b/drivers/gpu/drm/xe/xe_gsc_submit.c
> @@ -8,6 +8,7 @@
> #include <linux/poison.h>
>
> #include "abi/gsc_command_header_abi.h"
> +#include "xe_assert.h"
> #include "xe_bb.h"
> #include "xe_exec_queue.h"
> #include "xe_gt_printk.h"
> diff --git a/drivers/gpu/drm/xe/xe_gt_clock.c b/drivers/gpu/drm/xe/xe_gt_clock.c
> index c7bca20f6b65..9ff2061133df 100644
> --- a/drivers/gpu/drm/xe/xe_gt_clock.c
> +++ b/drivers/gpu/drm/xe/xe_gt_clock.c
> @@ -7,6 +7,7 @@
>
> #include "regs/xe_gt_regs.h"
> #include "regs/xe_regs.h"
> +#include "xe_assert.h"
> #include "xe_device.h"
> #include "xe_gt.h"
> #include "xe_macros.h"
> diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
> index 0f6cfe06e635..45035e38388b 100644
> --- a/drivers/gpu/drm/xe/xe_uc.c
> +++ b/drivers/gpu/drm/xe/xe_uc.c
> @@ -5,6 +5,7 @@
>
> #include "xe_uc.h"
>
> +#include "xe_assert.h"
> #include "xe_device.h"
> #include "xe_gsc.h"
> #include "xe_gsc_proxy.h"
> diff --git a/drivers/gpu/drm/xe/xe_vm.h b/drivers/gpu/drm/xe/xe_vm.h
> index 204a4ff63f88..3ac9021f970e 100644
> --- a/drivers/gpu/drm/xe/xe_vm.h
> +++ b/drivers/gpu/drm/xe/xe_vm.h
> @@ -6,6 +6,7 @@
> #ifndef _XE_VM_H_
> #define _XE_VM_H_
>
> +#include "xe_assert.h"
> #include "xe_bo_types.h"
> #include "xe_macros.h"
> #include "xe_map.h"
> --
> 2.43.0
>
next prev parent reply other threads:[~2024-05-07 12:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-07 11:09 [PATCH 0/3] Fix xe_device.h Michal Wajdeczko
2024-05-07 11:09 ` [PATCH 1/3] drm/xe: Don't rely on xe_assert.h to be included elsewhere Michal Wajdeczko
2024-05-07 12:30 ` Rodrigo Vivi [this message]
2024-05-07 11:09 ` [PATCH 2/3] drm/xe: Don't rely on xe_force_wake.h " Michal Wajdeczko
2024-05-07 12:30 ` Rodrigo Vivi
2024-05-07 11:09 ` [PATCH 3/3] drm/xe: Fix xe_device.h Michal Wajdeczko
2024-05-07 12:31 ` Rodrigo Vivi
2024-05-07 11:46 ` ✓ CI.Patch_applied: success for " Patchwork
2024-05-07 11:46 ` ✓ CI.checkpatch: " Patchwork
2024-05-07 11:48 ` ✓ CI.KUnit: " Patchwork
2024-05-07 12:11 ` ✓ CI.Build: " Patchwork
2024-05-07 12:16 ` ✓ CI.Hooks: " Patchwork
2024-05-07 12:19 ` ✓ CI.checksparse: " Patchwork
2024-05-07 12:53 ` ✓ CI.BAT: " Patchwork
2024-05-07 17:12 ` ✗ CI.FULL: failure " Patchwork
2024-05-07 21:13 ` Michal Wajdeczko
2024-05-09 6:09 ` Balne, VinayX Kumar Goud
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=Zjoe9YvsEs7FbyB4@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=michal.wajdeczko@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.