Skip to content

Commit a243bf3

Browse files
bjdooks-ctLorenzo Pieralisi
authored andcommitted
PCI: iproc-msi: Fix __iomem annotation in decode_msi_hwirq()
Fix __iomem attribute on msg variable passed to readl() in the decode_msi_hwirq() function. Fixes the following sparse warning: drivers/pci/controller/pcie-iproc-msi.c:301:17: warning: incorrect type in argument 1 (different address spaces) drivers/pci/controller/pcie-iproc-msi.c:301:17: expected void const volatile [noderef] <asn:2> *addr drivers/pci/controller/pcie-iproc-msi.c:301:17: got unsigned int [usertype] *[assigned] msg Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Cc: Lorenzo Pieralisi <[email protected]> Cc: Andrew Murray <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Ray Jui <[email protected]> Cc: Scott Branden <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected]
1 parent 54ecb8f commit a243bf3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/pci/controller/pcie-iproc-msi.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,12 @@ static const struct irq_domain_ops msi_domain_ops = {
293293

294294
static inline u32 decode_msi_hwirq(struct iproc_msi *msi, u32 eq, u32 head)
295295
{
296-
u32 *msg, hwirq;
296+
u32 __iomem *msg;
297+
u32 hwirq;
297298
unsigned int offs;
298299

299300
offs = iproc_msi_eq_offset(msi, eq) + head * sizeof(u32);
300-
msg = (u32 *)(msi->eq_cpu + offs);
301+
msg = (u32 __iomem *)(msi->eq_cpu + offs);
301302
hwirq = readl(msg);
302303
hwirq = (hwirq >> 5) + (hwirq & 0x1f);
303304

0 commit comments

Comments
 (0)