Re: linux-next: build warning after merge of the amdgpu tree

From: Alex Deucher
Date: Fri Apr 23 2021 - 16:37:12 EST


On Wed, Apr 21, 2021 at 2:40 AM Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
>
> Hi all,
>
> On Fri, 16 Apr 2021 12:40:44 +1000 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
> >
> > After merging the amdgpu tree, today's linux-next build (powerpc
> > ppc64_defconfig) produced this warning:
> >
> > drivers/pci/quirks.c: In function 'quirk_amd_nvme_fixup':
> > drivers/pci/quirks.c:312:18: warning: unused variable 'rdev' [-Wunused-variable]
> > 312 | struct pci_dev *rdev;
> > | ^~~~
> >
> > Introduced by commit
> >
> > 9597624ef606 ("nvme: put some AMD PCIE downstream NVME device to simple suspend/resume path")
>
> I am still seeing this warning.

I no longer have that patch in my tree. Was this an old build?

Alex

>
> --
> Cheers,
> Stephen Rothwell