Skip to content

Commit

Permalink
powerpc/powernv: Fix data type for @r in pnv_ioda_parse_m64_window()
Browse files Browse the repository at this point in the history
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 <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Gavin Shan authored and Michael Ellerman committed Oct 4, 2016
1 parent 5adaf86 commit 0e7736c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/powernv/pci-ioda.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb)
struct device_node *dn = hose->dn;
struct resource *res;
u32 m64_range[2], i;
const u32 *r;
const __be32 *r;
u64 pci_addr;

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

0 comments on commit 0e7736c

Please sign in to comment.