[7/9] powerpc/powernv: Fix data type for @r in pnv_ioda_parse_m64_window()
Michael Ellerman
patch-notifications at ellerman.id.au
Wed Oct 5 13:36:27 AEDT 2016
On Tue, 2016-02-08 at 04:10:35 UTC, Gavin Shan wrote:
> This fixes warning reported from sparse:
>
> gwshan at gwshan:~/sandbox/l$ make C=2 CF=-D__CHECK_ENDIAN__ \
> arch/powerpc/platforms/powernv/pci-ioda.o
> :
> arch/powerpc/platforms/powernv/pci-ioda.c:451:49: \
> warning: incorrect type in argument 2 (different base types)
> arch/powerpc/platforms/powernv/pci-ioda.c:451:49: \
> expected restricted __be32 const [usertype] *addr
> arch/powerpc/platforms/powernv/pci-ioda.c:451:49: \
> got unsigned int const [usertype] *
> arch/powerpc/platforms/powernv/pci-ioda.c:452:50: \
> warning: incorrect type in argument 1 (different base types)
> arch/powerpc/platforms/powernv/pci-ioda.c:452:50: \
> expected restricted __be32 const [usertype] *cell
> arch/powerpc/platforms/powernv/pci-ioda.c:452:50: \
> got unsigned int const [usertype] *
> arch/powerpc/platforms/powernv/pci-ioda.c:454:35: \
> warning: incorrect type in argument 1 (different base types)
> arch/powerpc/platforms/powernv/pci-ioda.c:454:35: \
> expected restricted __be32 const [usertype] *cell
> arch/powerpc/platforms/powernv/pci-ioda.c:454:35: \
> got unsigned int const [usertype] *[assigned] r
>
> Fixes: 262af557dd75 ("powerpc/powernv: Enable M64 aperatus for PHB3")
> Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/0e7736c6b806b24c693367196a076c
cheers
More information about the Linuxppc-dev
mailing list