Re: [PATCH] vxlan: hide unused local variable
From: Arnd Bergmann
Date: Mon Nov 07 2016 - 17:22:16 EST
On Monday, November 7, 2016 2:16:30 PM CET Pravin Shelar wrote:
> On Monday, November 7, 2016, Arnd Bergmann <arnd@xxxxxxxx> wrote:
> > A bugfix introduced a harmless warning in v4.9-rc4:
> > drivers/net/vxlan.c: In function 'vxlan_group_used':
> > drivers/net/vxlan.c:947:21: error: unused variable 'sock6'
> > [-Werror=unused-variable]
> > This hides the variable inside of the same #ifdef that is
> > around its user. The extraneous initialization is removed
> > at the same time, it was accidentally introduced in the
> > same commit.
> > Fixes: c6fcc4fc5f8b ("vxlan: avoid using stale vxlan socket.")
> > ---
> I have already submitted patch to fix this issue.
You have tagged those seven patches for net-next which seems
appropriate, but as I wrote above the commit that introduced
it was merged between -rc3 and -rc4, so I think we still need a
fix for v4.9, right?