[PATCH kernel 3/5] powerpc/eeh: Remove unnecessary pointer to phb from eeh_dev

Michael Ellerman mpe at ellerman.id.au
Mon Aug 28 16:25:09 AEST 2017


Alexey Kardashevskiy <aik at ozlabs.ru> writes:

> The eeh_dev struct already holds a pointer to pci_dn which it does not
> exist without and pci_dn itself holds the very same pointer so just
> use it.
>
> Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
> ---
>  arch/powerpc/include/asm/eeh.h               |  1 -
>  arch/powerpc/kernel/eeh.c                    |  7 +++----
>  arch/powerpc/kernel/eeh_dev.c                |  2 --
>  arch/powerpc/kernel/eeh_driver.c             |  2 +-
>  arch/powerpc/kernel/eeh_pe.c                 | 24 +++++++++++++-----------
>  arch/powerpc/platforms/powernv/eeh-powernv.c |  5 ++---

Doesn't build ?

  arch/powerpc/platforms/pseries/eeh_pseries.c: In function ‘pseries_eeh_probe’:
  arch/powerpc/platforms/pseries/eeh_pseries.c:250:15: error: ‘struct eeh_dev’ has no member named ‘phb’
  pe.phb = edev->phb;
               ^~

cheers


More information about the Linuxppc-dev mailing list