public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Petri Latvala <petri.latvala@intel.com>
To: Mark Yacoub <markyacoub@chromium.org>
Cc: igt-dev@lists.freedesktop.org, markyacoub@google.com
Subject: Re: [igt-dev] [PATCH] kms_chamelium: fix a compile warning
Date: Mon, 7 Nov 2022 13:21:40 +0200	[thread overview]
Message-ID: <Y2jqREPjsnv/8yoY@platvala-desk.ger.corp.intel.com> (raw)
In-Reply-To: <CAJUqKUpHA2spA1ibU9e-WUMZK9iSs25estZPk52aqrva6Dmx_Q@mail.gmail.com>

On Fri, Nov 04, 2022 at 03:35:14PM -0400, Mark Yacoub wrote:
> On Fri, Nov 4, 2022 at 2:49 PM Alex Hung <alex.hung@amd.com> wrote:
> >
> > Fix the following warning:
> >
> > ../tests/chamelium/kms_chamelium.c: In function ‘edid_stress_resolution’:
> > ../tests/chamelium/kms_chamelium.c:2570:31: warning: declaration of ‘monitor_edid’ shadows a global declaration [-Wshadow]
> >  2570 |                 monitor_edid *monitor_edid = &edids_list[i];
> >       |                               ^~~~~~~~~~~~
> > In file included from ../lib/monitor_edids/dp_edids.h:15,
> >                  from ../tests/chamelium/kms_chamelium.c:33:
> > ../lib/monitor_edids/monitor_edids_helper.h:25:3: note: shadowed declaration is here
> >    25 | } monitor_edid;
> >       |   ^~~~~~~~~~~~
> >
> > Fixes: 6a25c536 (kms_chamelium: Add new EDID stress resolution test)
> > Signed-off-by: Alex Hung <alex.hung@amd.com>
> Reviewed-by: Mark Yacoub <markyacoub@chromium.org>

Merged, thanks for the fix!


-- 
Petri Latvala



> > ---
> >  tests/chamelium/kms_chamelium.c | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/tests/chamelium/kms_chamelium.c b/tests/chamelium/kms_chamelium.c
> > index c824e67e..09839f98 100644
> > --- a/tests/chamelium/kms_chamelium.c
> > +++ b/tests/chamelium/kms_chamelium.c
> > @@ -2567,13 +2567,13 @@ static void edid_stress_resolution(data_t *data, struct chamelium_port *port,
> >                 bool is_video_stable;
> >                 int screen_res_w, screen_res_h;
> >
> > -               monitor_edid *monitor_edid = &edids_list[i];
> > +               monitor_edid *edid = &edids_list[i];
> >                 igt_info("Testing out the EDID for %s\n",
> > -                        monitor_edid_get_name(monitor_edid));
> > +                        monitor_edid_get_name(edid));
> >
> >                 /* Getting and Setting the EDID on Chamelium. */
> >                 chamelium_edid = get_chameleon_edid_from_monitor_edid(
> > -                       chamelium, monitor_edid);
> > +                       chamelium, edid);
> >                 chamelium_port_set_edid(data->chamelium, port, chamelium_edid);
> >                 free_chamelium_edid_from_monitor_edid(chamelium_edid);
> >
> > --
> > 2.34.1
> >

  reply	other threads:[~2022-11-07 11:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-04 18:48 [igt-dev] [PATCH] kms_chamelium: fix a compile warning Alex Hung
2022-11-04 19:35 ` Mark Yacoub
2022-11-07 11:21   ` Petri Latvala [this message]
2022-11-04 19:41 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-11-05  9:35 ` [igt-dev] ✗ 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=Y2jqREPjsnv/8yoY@platvala-desk.ger.corp.intel.com \
    --to=petri.latvala@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=markyacoub@chromium.org \
    --cc=markyacoub@google.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