Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751833AbbG1Wvi (ORCPT ); Tue, 28 Jul 2015 18:51:38 -0400 Received: from mga02.intel.com ([134.134.136.20]:22946 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138AbbG1Wvg (ORCPT ); Tue, 28 Jul 2015 18:51:36 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,566,1432623600"; d="scan'208";a="737463492" Message-ID: <1438123889.2459.0.camel@linux.intel.com> Subject: Re: [PATCH v2 18/25] libnvdimm, pmem: switch from ioremap_cache to memremap From: Ross Zwisler To: Dan Williams Cc: tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, linux-arch@vger.kernel.org, linux-nvdimm@ml01.01.org, linux-kernel@vger.kernel.org, rmk+kernel@arm.linux.org.uk, hch@lst.de, linux-arm-kernel@lists.infradead.org Date: Tue, 28 Jul 2015 16:51:29 -0600 In-Reply-To: <20150725023940.8664.2784.stgit@dwillia2-desk3.amr.corp.intel.com> References: <20150725023649.8664.59145.stgit@dwillia2-desk3.amr.corp.intel.com> <20150725023940.8664.2784.stgit@dwillia2-desk3.amr.corp.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1843 Lines: 50 On Fri, 2015-07-24 at 22:39 -0400, Dan Williams wrote: > In preparation for deprecating ioremap_cache() convert its usage in > libnvdimm and the PMEM API to memremap. > > Signed-off-by: Dan Williams > --- > arch/x86/include/asm/io.h | 7 +------ > arch/x86/mm/ioremap.c | 6 ++++++ > tools/testing/nvdimm/Kbuild | 2 +- > tools/testing/nvdimm/test/iomap.c | 6 +++--- > 4 files changed, 11 insertions(+), 10 deletions(-) > > diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h > index cc9c61bc1abe..8aeb6456188a 100644 > --- a/arch/x86/include/asm/io.h > +++ b/arch/x86/include/asm/io.h > @@ -248,12 +248,7 @@ static inline void flush_write_buffers(void) > #endif > } > > -static inline void __pmem *arch_memremap_pmem(resource_size_t offset, > - unsigned long size) > -{ > - return (void __force __pmem *) ioremap_cache(offset, size); > -} > - > +void __pmem *arch_memremap_pmem(resource_size_t offset, size_t size); > #endif /* __KERNEL__ */ > > extern void native_io_delay(void); > diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c > index 6f759c7c2ab7..7b422e7574b1 100644 > --- a/arch/x86/mm/ioremap.c > +++ b/arch/x86/mm/ioremap.c > @@ -317,6 +317,12 @@ void __iomem *ioremap_cache(resource_size_t phys_addr, unsigned long size) > } > EXPORT_SYMBOL(ioremap_cache); > > +void __pmem *arch_memremap_pmem(resource_size_t offset, size_t size) > +{ > + return (void __force __pmem *) ioremap_cache(offset, size); Did you mean for this to be a call to memremap() instead of ioremap_cache()? -- 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/