mbox series

[0/1] Enable -Wshadow=local

Message ID 20231026053115.2066744-1-armbru@redhat.com
Headers show
Series Enable -Wshadow=local | expand

Message

Markus Armbruster Oct. 26, 2023, 5:31 a.m. UTC
Requires Brian's pull request and two patches from Thomas to compile:

    [PULL 0/2] hex queue - GETPC() fixes, shadowing fixes
    [PATCH v2] block/snapshot: Fix compiler warning with -Wshadow=local
    [PATCH v2] migration/ram: Fix compilation with -Wshadow=local

Stefan, the PR was posted a week ago; anything blocking it?

Warner, I believe not waiting for your cleanup of bsd-user is fine.
Please holler if it isn't.

Based-on: <20231019021733.2258592-1-bcain@quicinc.com>
Based-on: <20231023175038.111607-1-thuth@redhat.com>
Based-on: <20231024092220.55305-1-thuth@redhat.com>

Markus Armbruster (1):
  meson: Enable -Wshadow=local

 meson.build | 1 +
 1 file changed, 1 insertion(+)

Comments

Warner Losh Oct. 26, 2023, 5:54 a.m. UTC | #1
On Wed, Oct 25, 2023, 11:31 PM Markus Armbruster <armbru@redhat.com> wrote:

> Requires Brian's pull request and two patches from Thomas to compile:
>
>     [PULL 0/2] hex queue - GETPC() fixes, shadowing fixes
>     [PATCH v2] block/snapshot: Fix compiler warning with -Wshadow=local
>     [PATCH v2] migration/ram: Fix compilation with -Wshadow=local
>
> Stefan, the PR was posted a week ago; anything blocking it?
>
> Warner, I believe not waiting for your cleanup of bsd-user is fine.
> Please holler if it isn't.
>

If it's not enabled by default for Clang, then sure. It's only one small
change at this point, but i was ill for a few weeks (much longer than i
thought I'd be) and am still catching up.

Warner

 <20231019021733.2258592-1-bcain@quicinc.com>

> Based-on: <20231023175038.111607-1-thuth@redhat.com>
> Based-on: <20231024092220.55305-1-thuth@redhat.com>
>
> Markus Armbruster (1):
>   meson: Enable -Wshadow=local
>
>  meson.build | 1 +
>  1 file changed, 1 insertion(+)
>
> --
> 2.41.0
>
>
Stefan Hajnoczi Oct. 27, 2023, 12:52 a.m. UTC | #2
On Thu, 26 Oct 2023 at 14:32, Markus Armbruster <armbru@redhat.com> wrote:
>
> Requires Brian's pull request and two patches from Thomas to compile:
>
>     [PULL 0/2] hex queue - GETPC() fixes, shadowing fixes
>     [PATCH v2] block/snapshot: Fix compiler warning with -Wshadow=local
>     [PATCH v2] migration/ram: Fix compilation with -Wshadow=local
>
> Stefan, the PR was posted a week ago; anything blocking it?

It's not in a pull request, so I won't see it. I don't have tooling
that can spot individual patch series that need to go into
qemu.git/master, so I rely on being emailed about them.

Would you like me to merge this patch series into qemu.git/master?

Stefan

> Warner, I believe not waiting for your cleanup of bsd-user is fine.
> Please holler if it isn't.
>
> Based-on: <20231019021733.2258592-1-bcain@quicinc.com>
> Based-on: <20231023175038.111607-1-thuth@redhat.com>
> Based-on: <20231024092220.55305-1-thuth@redhat.com>
>
> Markus Armbruster (1):
>   meson: Enable -Wshadow=local
>
>  meson.build | 1 +
>  1 file changed, 1 insertion(+)
>
> --
> 2.41.0
>
>
Brian Cain Oct. 27, 2023, 2:25 a.m. UTC | #3
> -----Original Message-----
> From: Stefan Hajnoczi <stefanha@gmail.com>
> Sent: Thursday, October 26, 2023 7:52 PM
> To: Markus Armbruster <armbru@redhat.com>
> Cc: qemu-devel@nongnu.org; pbonzini@redhat.com;
> marcandre.lureau@redhat.com; berrange@redhat.com; thuth@redhat.com;
> philmd@linaro.org; Brian Cain <bcain@quicinc.com>; imp@bsdimp.com;
> stefanha@redhat.com
> Subject: Re: [PATCH 0/1] Enable -Wshadow=local
> 
> WARNING: This email originated from outside of Qualcomm. Please be wary of
> any links or attachments, and do not enable macros.
> 
> On Thu, 26 Oct 2023 at 14:32, Markus Armbruster <armbru@redhat.com>
> wrote:
> >
> > Requires Brian's pull request and two patches from Thomas to compile:
> >
> >     [PULL 0/2] hex queue - GETPC() fixes, shadowing fixes
> >     [PATCH v2] block/snapshot: Fix compiler warning with -Wshadow=local
> >     [PATCH v2] migration/ram: Fix compilation with -Wshadow=local
> >
> > Stefan, the PR was posted a week ago; anything blocking it?
> 
> It's not in a pull request, so I won't see it. I don't have tooling
> that can spot individual patch series that need to go into
> qemu.git/master, so I rely on being emailed about them.

My mistake -- I thought I had emailed you.  But I see now that I likely used the wrong email address.

> 
> Would you like me to merge this patch series into qemu.git/master?
> 
> Stefan
> 
> > Warner, I believe not waiting for your cleanup of bsd-user is fine.
> > Please holler if it isn't.
> >
> > Based-on: <20231019021733.2258592-1-bcain@quicinc.com>
> > Based-on: <20231023175038.111607-1-thuth@redhat.com>
> > Based-on: <20231024092220.55305-1-thuth@redhat.com>
> >
> > Markus Armbruster (1):
> >   meson: Enable -Wshadow=local
> >
> >  meson.build | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > --
> > 2.41.0
> >
> >
Markus Armbruster Oct. 27, 2023, 4:41 a.m. UTC | #4
Stefan Hajnoczi <stefanha@gmail.com> writes:

> On Thu, 26 Oct 2023 at 14:32, Markus Armbruster <armbru@redhat.com> wrote:
>>
>> Requires Brian's pull request and two patches from Thomas to compile:
>>
>>     [PULL 0/2] hex queue - GETPC() fixes, shadowing fixes
>>     [PATCH v2] block/snapshot: Fix compiler warning with -Wshadow=local
>>     [PATCH v2] migration/ram: Fix compilation with -Wshadow=local
>>
>> Stefan, the PR was posted a week ago; anything blocking it?
>
> It's not in a pull request, so I won't see it. I don't have tooling
> that can spot individual patch series that need to go into
> qemu.git/master, so I rely on being emailed about them.

I'm inquiring about this one:

    https://lore.kernel.org/qemu-devel/20231019021733.2258592-1-bcain@quicinc.com/

Looks like a PR to me.

> Would you like me to merge this patch series into qemu.git/master?

Yes, I'd like you merge Brian's PR I linked to.

[...]
Stefan Hajnoczi Oct. 30, 2023, 4:58 a.m. UTC | #5
On Fri, 27 Oct 2023 at 13:42, Markus Armbruster <armbru@redhat.com> wrote:
>
> Stefan Hajnoczi <stefanha@gmail.com> writes:
>
> > On Thu, 26 Oct 2023 at 14:32, Markus Armbruster <armbru@redhat.com> wrote:
> >>
> >> Requires Brian's pull request and two patches from Thomas to compile:
> >>
> >>     [PULL 0/2] hex queue - GETPC() fixes, shadowing fixes
> >>     [PATCH v2] block/snapshot: Fix compiler warning with -Wshadow=local
> >>     [PATCH v2] migration/ram: Fix compilation with -Wshadow=local
> >>
> >> Stefan, the PR was posted a week ago; anything blocking it?
> >
> > It's not in a pull request, so I won't see it. I don't have tooling
> > that can spot individual patch series that need to go into
> > qemu.git/master, so I rely on being emailed about them.
>
> I'm inquiring about this one:
>
>     https://lore.kernel.org/qemu-devel/20231019021733.2258592-1-bcain@quicinc.com/
>
> Looks like a PR to me.
>
> > Would you like me to merge this patch series into qemu.git/master?
>
> Yes, I'd like you merge Brian's PR I linked to.

Sorry, I missed that because of a bug in the 'patches' tool that I
use. The PR is running through CI now.

I've fixed the 'patches' tool to decode emails with
Content-Transfer-Encoding: base64 now:
https://github.com/stefanha/patches/commit/35531a8668f551356c019f68670fcb154535ccd3

Stefan