From: Matthew Brost <matthew.brost@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: intel-xe@lists.freedesktop.org, Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: Re: [PATCH 2/3] drm/xe/bo: Remove unusued variable
Date: Fri, 15 Dec 2023 23:17:26 +0000 [thread overview]
Message-ID: <ZXzehrMYyxpwLB8n@DUT025-TGLU.fm.intel.com> (raw)
In-Reply-To: <rv7ti46hbq6degfwieckbwqgis7ubhsrlnyx7w4nddbafs47vx@76okakk2ajks>
On Thu, Dec 14, 2023 at 03:46:04PM -0600, Lucas De Marchi wrote:
> Typo s/unusued/unused/, but I will wait other reviews.
>
> Lucas De Marchi
>
> On Thu, Dec 14, 2023 at 01:39:53PM -0800, Lucas De Marchi wrote:
> > bo is not used since all the checks are against tbo. Fix warning:
> >
> > ../drivers/gpu/drm/xe/xe_bo.c: In function ‘xe_evict_flags’:
> > ../drivers/gpu/drm/xe/xe_bo.c:250:23: error: variable ‘bo’ set but not used [-Werror=unused-but-set-variable]
> > 250 | struct xe_bo *bo;
> >
> > Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> > ---
> > drivers/gpu/drm/xe/xe_bo.c | 4 ----
> > 1 file changed, 4 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> > index 7c0037aecff3..8e4a3b1f6b93 100644
> > --- a/drivers/gpu/drm/xe/xe_bo.c
> > +++ b/drivers/gpu/drm/xe/xe_bo.c
> > @@ -247,8 +247,6 @@ int xe_bo_placement_for_flags(struct xe_device *xe, struct xe_bo *bo,
> > static void xe_evict_flags(struct ttm_buffer_object *tbo,
> > struct ttm_placement *placement)
> > {
> > - struct xe_bo *bo;
> > -
> > if (!xe_bo_is_xe_bo(tbo)) {
> > /* Don't handle scatter gather BOs */
> > if (tbo->type == ttm_bo_type_sg) {
> > @@ -265,8 +263,6 @@ static void xe_evict_flags(struct ttm_buffer_object *tbo,
> > * For xe, sg bos that are evicted to system just triggers a
> > * rebind of the sg list upon subsequent validation to XE_PL_TT.
> > */
> > -
> > - bo = ttm_to_xe_bo(tbo);
> > switch (tbo->resource->mem_type) {
> > case XE_PL_VRAM0:
> > case XE_PL_VRAM1:
> > --
> > 2.40.1
> >
next prev parent reply other threads:[~2023-12-15 23:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-14 21:39 [PATCH 1/3] drm/xe: Return error if drm_buddy_init() fails Lucas De Marchi
2023-12-14 21:39 ` [PATCH 2/3] drm/xe/bo: Remove unusued variable Lucas De Marchi
2023-12-14 21:46 ` Lucas De Marchi
2023-12-15 23:17 ` Matthew Brost [this message]
2023-12-14 21:39 ` [PATCH 3/3] drm/xe: Enable W=1 warnings by default Lucas De Marchi
2023-12-15 0:48 ` Rodrigo Vivi
2023-12-15 14:32 ` Rodrigo Vivi
2023-12-15 16:43 ` Lucas De Marchi
2023-12-15 8:56 ` Jani Nikula
2023-12-14 23:00 ` ✓ CI.Patch_applied: success for series starting with [1/3] drm/xe: Return error if drm_buddy_init() fails Patchwork
2023-12-14 23:00 ` ✗ CI.checkpatch: warning " Patchwork
2023-12-14 23:01 ` ✓ CI.KUnit: success " Patchwork
2023-12-14 23:08 ` ✓ CI.Build: " Patchwork
2023-12-14 23:09 ` ✓ CI.Hooks: " Patchwork
2023-12-14 23:10 ` ✓ CI.checksparse: " Patchwork
2023-12-14 23:45 ` ✓ CI.BAT: " Patchwork
2023-12-15 0:11 ` [PATCH 1/3] " Matt Roper
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=ZXzehrMYyxpwLB8n@DUT025-TGLU.fm.intel.com \
--to=matthew.brost@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox