From mboxrd@z Thu Jan 1 00:00:00 1970 From: hch@lst.de (Christoph Hellwig) Date: Mon, 27 Jul 2015 10:03:48 +0200 Subject: [PATCH v2 24/25] arch: remove ioremap_wt, replace with arch_memremap In-Reply-To: <20150725024015.8664.42950.stgit@dwillia2-desk3.amr.corp.intel.com> References: <20150725023649.8664.59145.stgit@dwillia2-desk3.amr.corp.intel.com> <20150725024015.8664.42950.stgit@dwillia2-desk3.amr.corp.intel.com> Message-ID: <20150727080347.GA18599@lst.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org > +++ b/arch/frv/include/asm/io.h > @@ -17,8 +17,6 @@ > > #ifdef __KERNEL__ > > -#define ARCH_HAS_IOREMAP_WT > - > #include > #include > #include > @@ -267,20 +265,17 @@ static inline void __iomem *ioremap_nocache(unsigned long physaddr, unsigned lon > return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); > } > > -static inline void __iomem *ioremap_wt(unsigned long physaddr, unsigned long size) > -{ > - return __ioremap(physaddr, size, IOMAP_WRITETHROUGH); > -} > - > -static inline void __iomem *ioremap_fullcache(unsigned long physaddr, unsigned long size) > -{ > - return __ioremap(physaddr, size, IOMAP_FULL_CACHING); > -} > +void *arch_memremap(resource_size_t offset, size_t size, unsigned long flags) > +{ > + return (void *) offset; > +} > +EXPORT_SYMBOL(arch_memremap); This doesn't look like a correct replacement. Also shouldn't the replacements of ioremap_fullcache or ioremap_wc be in the previous patch? A few more similar issues pop up for other architectures as well.