From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915/lrc: replace include with forward declarations
Date: Tue, 15 Feb 2022 15:55:07 +0000 [thread overview]
Message-ID: <98517720-4542-b6ff-88fa-582eedc80c3f@linux.intel.com> (raw)
In-Reply-To: <20220214173810.2108975-2-jani.nikula@intel.com>
On 14/02/2022 17:38, Jani Nikula wrote:
> Prefer forward declarations over includes if possible.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Regards,
Tvrtko
> ---
> drivers/gpu/drm/i915/gt/intel_lrc.c | 2 ++
> drivers/gpu/drm/i915/gt/intel_lrc.h | 5 +++--
> 2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c
> index 5b107b698b65..004e1216e654 100644
> --- a/drivers/gpu/drm/i915/gt/intel_lrc.c
> +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c
> @@ -8,6 +8,8 @@
> #include "gen8_engine_cs.h"
> #include "i915_drv.h"
> #include "i915_perf.h"
> +#include "i915_reg.h"
> +#include "intel_context.h"
> #include "intel_engine.h"
> #include "intel_engine_regs.h"
> #include "intel_gpu_commands.h"
> diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.h b/drivers/gpu/drm/i915/gt/intel_lrc.h
> index 2af85a15a370..0b76f096b559 100644
> --- a/drivers/gpu/drm/i915/gt/intel_lrc.h
> +++ b/drivers/gpu/drm/i915/gt/intel_lrc.h
> @@ -8,11 +8,12 @@
>
> #include <linux/types.h>
>
> -#include "intel_context.h"
> -
> struct drm_i915_gem_object;
> +struct i915_gem_ww_ctx;
> +struct intel_context;
> struct intel_engine_cs;
> struct intel_ring;
> +struct kref;
>
> /* At the start of the context image is its per-process HWS page */
> #define LRC_PPHWSP_PN (0)
next prev parent reply other threads:[~2022-02-15 15:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-14 17:38 [Intel-gfx] [PATCH 1/2] drm/i915/lrc: move lrc_get_runtime() to intel_lrc.c Jani Nikula
2022-02-14 17:38 ` [Intel-gfx] [PATCH 2/2] drm/i915/lrc: replace include with forward declarations Jani Nikula
2022-02-15 15:55 ` Tvrtko Ursulin [this message]
2022-02-15 15:54 ` [Intel-gfx] [PATCH 1/2] drm/i915/lrc: move lrc_get_runtime() to intel_lrc.c Tvrtko Ursulin
2022-02-16 2:38 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/2] " Patchwork
2022-02-17 3:57 ` [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/lrc: move lrc_get_runtime() to intel_lrc.c (rev2) Patchwork
2022-02-17 12:14 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " 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=98517720-4542-b6ff-88fa-582eedc80c3f@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox