Skip to contentSkip to conversation

pci: annotate return value of pci_ioremap_bar with __iomem

PATCH Applied Harvey Harrison 2 participants 2 messages Nov 2, 2008 – Nov 3, 2008 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: annotate return value of pci_ioremap_bar with __iomem

---
 include/linux/pci.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/pci.h +1 -1
index 9194adf..03b0b8c 100644
@@ -1142,7 +1142,7 @@ static inline void pci_mmcfg_late_init(void) { }
 #endif
 
 #ifdef CONFIG_HAS_IOMEM
-static inline void * pci_ioremap_bar(struct pci_dev *pdev, int bar)
+static inline void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar)
 {
 	/*
 	 * Make sure the BAR is actually a memory resource, not an IO resource
Signature · 1 line
1.6.0.3.756.gb776d
Applied
#1 lore raw
Quoted 11 lines · Harvey Harrison
---
 include/linux/pci.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/pci.h +0 -0
index 9194adf..03b0b8c 100644

include/linux/pci.h static inline void pci_mmcfg_late_init(void) { } · line 1148

Quoted 8 lines
include/linux/pci.h +1 -1
@@ -1142,7 +1142,7 @@ static inline void pci_mmcfg_late_init(void) { }
 #endif
 
 #ifdef CONFIG_HAS_IOMEM
-static inline void * pci_ioremap_bar(struct pci_dev *pdev, int bar)
+static inline void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar)
 {
 	/*
 	 * Make sure the BAR is actually a memory resource, not an IO resource

Applied to my for-linus branch.

Thanks,
Jesse