History

remove ioremap_nocache and devm_ioremap_nocache

ioremap has provided non-cached semantics by default since the Linux 2.6 days, so remove the additional ioremap_nocache interface.

Christoph Hellwig committed 6 years ago

Commit 4bdc0d61 parent d23cc63368 files · +508 −581Browse files

Showing the changes to include/linux (1 of 368 files). Show all

Unified · Split

include/linux/io.h+2−4
@@ -66,8 +66,6 @@ void __iomem *devm_ioremap(struct device *dev, resource_size_t offset, · 65 unmodified lines
66 resource_size_t size);66 resource_size_t size);
67void __iomem *devm_ioremap_uc(struct device *dev, resource_size_t offset,67void __iomem *devm_ioremap_uc(struct device *dev, resource_size_t offset,
68 resource_size_t size);68 resource_size_t size);
69void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
70 resource_size_t size);
71void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset,69void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset,
72 resource_size_t size);70 resource_size_t size);
73void devm_iounmap(struct device *dev, void __iomem *addr);71void devm_iounmap(struct device *dev, void __iomem *addr);
@@ -87,7 +85,7 @@ void *__devm_memremap_pages(struct device *dev, struct resource *res); · 13 unmodified lines
87 * Posting") mandate non-posted configuration transactions. There is85 * Posting") mandate non-posted configuration transactions. There is
88 * no ioremap API in the kernel that can guarantee non-posted write86 * no ioremap API in the kernel that can guarantee non-posted write
89 * semantics across arches so provide a default implementation for87 * semantics across arches so provide a default implementation for
90 * mapping PCI config space that defaults to ioremap_nocache(); arches88 * mapping PCI config space that defaults to ioremap(); arches
91 * should override it if they have memory mapping implementations that89 * should override it if they have memory mapping implementations that
92 * guarantee non-posted writes semantics to make the memory mapping90 * guarantee non-posted writes semantics to make the memory mapping
93 * compliant with the PCI specification.91 * compliant with the PCI specification.
@@ -97,7 +95,7 @@ void *__devm_memremap_pages(struct device *dev, struct resource *res); · 3 unmodified lines
97static inline void __iomem *pci_remap_cfgspace(phys_addr_t offset,95static inline void __iomem *pci_remap_cfgspace(phys_addr_t offset,
98 size_t size)96 size_t size)
99{97{
100 return ioremap_nocache(offset, size);98 return ioremap(offset, size);
101}99}
102#endif100#endif
103#endif101#endif