[PATCH 5/7] powerpc/powernv/pci: Fix W=1 compile warning

Oliver O'Halloran oohall at gmail.com
Fri Sep 11 16:32:23 AEST 2020


On Fri, Sep 11, 2020 at 7:02 AM Cédric Le Goater <clg at kaod.org> wrote:
>
>   CC      arch/powerpc/platforms/powernv/pci-ioda.o
> ../arch/powerpc/platforms/powernv/pci-ioda.c: In function ‘pnv_ioda_configure_pe’:
> ../arch/powerpc/platforms/powernv/pci-ioda.c:897:18: error: variable ‘parent’ set but not used [-Werror=unused-but-set-variable]
>   struct pci_dev *parent;
>                   ^~~~~~
>
> Cc: Oliver O'Halloran <oohall at gmail.com>
> Signed-off-by: Cédric Le Goater <clg at kaod.org>

Come to think of it a fix for this might already be in -next, see
https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=193967&state=*

If not,

Reviewed-by: Oliver O'Halloran <oohall at gmail.com>


More information about the Linuxppc-dev mailing list