From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164314AbdEXWCQ (ORCPT ); Wed, 24 May 2017 18:02:16 -0400 Received: from ale.deltatee.com ([207.54.116.67]:37356 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161068AbdEXWCP (ORCPT ); Wed, 24 May 2017 18:02:15 -0400 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org Cc: Logan Gunthorpe , Stephen Bates , Chris Metcalf , Andrew Morton , Mel Gorman , Michal Hocko , Johannes Weiner , Vlastimil Babka Date: Wed, 24 May 2017 16:02:07 -0600 Message-Id: <1495663327-22557-1-git-send-email-logang@deltatee.com> X-Mailer: git-send-email 2.1.4 X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, logang@deltatee.com, sbates@raithlin.com, cmetcalf@mellanox.com, akpm@linux-foundation.org, mgorman@techsingularity.net, mhocko@suse.com, hannes@cmpxchg.org, vbabka@suse.cz X-SA-Exim-Mail-From: gunthorp@deltatee.com Subject: [PATCH] tile: provide default ioremap declaration X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a default ioremap function which was not provided in all circumstances. (Only when CONFIG_PCI and CONFIG_TILEGX was set). I have designs to use them in scatterlist.c where they'd likely never be called with this architecture, but it is needed to compile. Signed-off-by: Logan Gunthorpe Signed-off-by: Stephen Bates Cc: Chris Metcalf Cc: Andrew Morton Cc: Mel Gorman Cc: Michal Hocko Cc: Johannes Weiner Cc: Vlastimil Babka --- arch/tile/mm/pgtable.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/tile/mm/pgtable.c b/arch/tile/mm/pgtable.c index 492a736..c61df18 100644 --- a/arch/tile/mm/pgtable.c +++ b/arch/tile/mm/pgtable.c @@ -503,6 +503,19 @@ void __iomem *ioremap_prot(resource_size_t phys_addr, unsigned long size, } EXPORT_SYMBOL(ioremap_prot); +#if !defined(CONFIG_PCI) || !defined(CONFIG_TILEGX) +/* ioremap is conditionally declared in pci_gx.c */ + +void __iomem *ioremap(resource_size_t phys_addr, unsigned long size) +{ + pgprot_t pgprot = {}; + + return ioremap_prot(phys_addr, size, pgprot); +} +EXPORT_SYMBOL(ioremap); + +#endif + /* Unmap an MMIO VA mapping. */ void iounmap(volatile void __iomem *addr_in) { -- 2.1.4