Skip to contentSkip to conversation

PCI: asm-generic/pci_iomap: Correct wrong comment for #endif

PATCH Applied Jonathan Cameron 2 participants 2 messages Aug 3, 2021 – Aug 20, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: asm-generic/pci_iomap: Correct wrong comment for #endif

If we are going to have comments on header guard #endifs then they should be correct and match the #ifndef

I'm guessing this one is a cut and paste error or has bit rotted.

---
 include/asm-generic/pci_iomap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/asm-generic/pci_iomap.h +1 -1
index d4f16dcc2ed7..df636c6d8e6c 100644
@@ -52,4 +52,4 @@ static inline void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar,
 }
 #endif
 
-#endif /* __ASM_GENERIC_IO_H */
+#endif /* __ASM_GENERIC_PCI_IOMAP_H */
Signature · 1 line
2.19.1
#1 lore raw
Quoted 6 lines · Jonathan Cameron

If we are going to have comments on header guard #endifs then they should be correct and match the #ifndef

I'm guessing this one is a cut and paste error or has bit rotted.

Applied to pci/misc for v5.15, thanks!

Quoted 17 lines
---
 include/asm-generic/pci_iomap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/asm-generic/pci_iomap.h +1 -1
index d4f16dcc2ed7..df636c6d8e6c 100644
@@ -52,4 +52,4 @@ static inline void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar,
 }
 #endif
 
-#endif /* __ASM_GENERIC_IO_H */
+#endif /* __ASM_GENERIC_PCI_IOMAP_H */
Signature · 1 line
2.19.1