projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5adaf86
)
powerpc/powernv: Fix data type for @r in pnv_ioda_parse_m64_window()
author
Gavin Shan
<gwshan@linux.vnet.ibm.com>
Tue, 2 Aug 2016 04:10:35 +0000
(14:10 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 4 Oct 2016 05:30:28 +0000
(16:30 +1100)
This fixes warning reported from sparse:
pci-ioda.c:451:49: warning: incorrect type in argument 2 (different base types)
Fixes:
262af557dd75
("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>
arch/powerpc/platforms/powernv/pci-ioda.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/powernv/pci-ioda.c
b/arch/powerpc/platforms/powernv/pci-ioda.c
index
fd08a5f
..
d27897a
100644
(file)
--- a/
arch/powerpc/platforms/powernv/pci-ioda.c
+++ b/
arch/powerpc/platforms/powernv/pci-ioda.c
@@
-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
u
32 *r;
+ const
__be
32 *r;
u64 pci_addr;
if (phb->type != PNV_PHB_IODA1 && phb->type != PNV_PHB_IODA2) {