Skip to content

Commit 0e7736c

Browse files
Gavin Shanmpe
authored andcommitted
powerpc/powernv: Fix data type for @r in pnv_ioda_parse_m64_window()
This fixes warning reported from sparse: pci-ioda.c:451:49: warning: incorrect type in argument 2 (different base types) Fixes: 262af55 ("powerpc/powernv: Enable M64 aperatus for PHB3") Signed-off-by: Gavin Shan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 5adaf86 commit 0e7736c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/platforms/powernv/pci-ioda.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb)
422422
struct device_node *dn = hose->dn;
423423
struct resource *res;
424424
u32 m64_range[2], i;
425-
const u32 *r;
425+
const __be32 *r;
426426
u64 pci_addr;
427427

428428
if (phb->type != PNV_PHB_IODA1 && phb->type != PNV_PHB_IODA2) {

0 commit comments

Comments
 (0)