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
6666 resource_size_t size);
6767 void __iomem *devm_ioremap_uc(struct device *dev, resource_size_t offset,
6868 resource_size_t size);
69−void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
70− resource_size_t size);
7169 void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset,
7270 resource_size_t size);
7371 void 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
8785 * Posting") mandate non-posted configuration transactions. There is
8886 * no ioremap API in the kernel that can guarantee non-posted write
8987 * semantics across arches so provide a default implementation for
90− * mapping PCI config space that defaults to ioremap_nocache(); arches
88+ * mapping PCI config space that defaults to ioremap(); arches
9189 * should override it if they have memory mapping implementations that
9290 * guarantee non-posted writes semantics to make the memory mapping
9391 * compliant with the PCI specification.
@@ -97,7 +95,7 @@ void *__devm_memremap_pages(struct device *dev, struct resource *res); · 3 unmodified lines
9795 static inline void __iomem *pci_remap_cfgspace(phys_addr_t offset,
9896 size_t size)
9997 {
100− return ioremap_nocache(offset, size);
98+ return ioremap(offset, size);
10199 }
102100 #endif
103101 #endif