Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752397AbbG0IDx (ORCPT ); Mon, 27 Jul 2015 04:03:53 -0400 Received: from verein.lst.de ([213.95.11.211]:36421 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751203AbbG0IDu (ORCPT ); Mon, 27 Jul 2015 04:03:50 -0400 Date: Mon, 27 Jul 2015 10:03:48 +0200 From: Christoph Hellwig To: Dan Williams Cc: tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, linux-arch@vger.kernel.org, Tony Luck , toshi.kani@hp.com, Arnd Bergmann , linux-nvdimm@ml01.01.org, linux-kernel@vger.kernel.org, Ingo Molnar , Borislav Petkov , rmk+kernel@arm.linux.org.uk, hch@lst.de, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 24/25] arch: remove ioremap_wt, replace with arch_memremap Message-ID: <20150727080347.GA18599@lst.de> References: <20150725023649.8664.59145.stgit@dwillia2-desk3.amr.corp.intel.com> <20150725024015.8664.42950.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150725024015.8664.42950.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1302 Lines: 42 > +++ 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/