Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1281409ybg; Fri, 18 Oct 2019 15:09:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCxYYDPSHtwpCk7VqjCQfQZFV6CXhS8IuAnRu/Wnr5jAbERZ9DNVbErDko5DoeOOznXXef X-Received: by 2002:a05:6402:656:: with SMTP id u22mr12332241edx.70.1571436572361; Fri, 18 Oct 2019 15:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571436572; cv=none; d=google.com; s=arc-20160816; b=zbrxQK3abycPStfCJeS1j1L5Bx9cdLB1YRDWsjmQ4Ho60s84DTMqd+tWSN7oTmfUvZ p8KYvkccZOFlnPhvI9m+ZumVTHTAn+9K3B/idCJwHWtWHlW89hdTAHuePcIAADpkJpH5 Z+aNdbojwHoenGi5+0byFMkv7PN2YpebImJ2EJkuasV8CNkVxLC5+k1orgVGTt8mfdxC 1uejNQJo3bruYXMcw8uPmoeYOe0XitqjIojuKC4y78yk/rGTuXJTcdoBiovRS4Mxgv4Q mvOCY0hlYcOS0UjOD+J9QCUaxnDY/ytcwu0GOgFAP2laL++TCxHB3SP1ZBju7eCwIQHn sqYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mUh9IJAtF893lJPSE9FNWl8JOGrC9DM2GbUNi0MOrgM=; b=P495DH47tBxed0g9/aT3EmeKDNGPV0avMQSwwU3WfxLbsPL3412DkqWYE6mYh3Wu2b v1FCd+3islpjfGozVLJ7awdCRutIdiRBxrftDNvQya+XhL581jWKEwgNiuU26yfvuml6 akFM0B0n38F4CJSrKdAw5/K8UKLPW5piF1OUJMiJ4JWJFZTUwQUagr/MbfRAwDaVG+5L gtKlORsXRlle0dY3JgZO8/Dmu8eOWKJbID2BRxRABhT33WPcIqcsULkIId2tlzjjKf0w O2SsL78UXBoM67izHA+AC/IJWwSysrCnJull/UuXGLpza4+oHnKbtHFS9l+UH7GvV2Gg 4gKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eLtCgJvP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si4298868ejb.44.2019.10.18.15.09.09; Fri, 18 Oct 2019 15:09:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eLtCgJvP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440903AbfJQRqq (ORCPT + 99 others); Thu, 17 Oct 2019 13:46:46 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54922 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727794AbfJQRqn (ORCPT ); Thu, 17 Oct 2019 13:46:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mUh9IJAtF893lJPSE9FNWl8JOGrC9DM2GbUNi0MOrgM=; b=eLtCgJvP//HB3u3RqvPD7u4zRJ edOnnCTsi7BrTam6380JmB3vqxWQTkkqOVY78NDXV6RxcQ5RIgxjab3NnvODVZTrII7f9KsH0Yr8K +ORn2VkHRnp0XRF+zrpMYsnAZVTc2xKXBiS1DOBdEkPm83rEZK4Ex2rCXClMB+k/MAcM9MneT1dXY 8d4vrNl9mUjfBKfRF2mVrE6Xjhmmnjht6g7KFrnD+OzVazWCMLdTvk+Ee+TcqkYzQBn7vO4grHF0S mjqjG/dCDxJC7uQqlbRzXuciP3/00ynIHrW57UlJrXX1nV4vFlypTC5+upVOTB+LmiXfat8hup/5+ GTrdG9lA==; Received: from [2001:4bb8:18c:d7b:c70:4a89:bc61:3] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iL9qv-0005nd-VI; Thu, 17 Oct 2019 17:46:22 +0000 From: Christoph Hellwig To: Arnd Bergmann , Guo Ren , Michal Simek , Greentime Hu , Vincent Chen , Guan Xuetao , x86@kernel.org Cc: linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-mtd@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/21] xtensa: clean up ioremap Date: Thu, 17 Oct 2019 19:45:42 +0200 Message-Id: <20191017174554.29840-10-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191017174554.29840-1-hch@lst.de> References: <20191017174554.29840-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use ioremap as the main implemented function, and defined ioremap_nocache to it as a deprecated alias. Signed-off-by: Christoph Hellwig --- arch/xtensa/include/asm/io.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/xtensa/include/asm/io.h b/arch/xtensa/include/asm/io.h index 988e08530a5c..441fb56926a7 100644 --- a/arch/xtensa/include/asm/io.h +++ b/arch/xtensa/include/asm/io.h @@ -32,8 +32,7 @@ void xtensa_iounmap(volatile void __iomem *addr); /* * Return the virtual address for the specified bus memory. */ -static inline void __iomem *ioremap_nocache(unsigned long offset, - unsigned long size) +static inline void __iomem *ioremap(unsigned long offset, unsigned long size) { if (offset >= XCHAL_KIO_PADDR && offset - XCHAL_KIO_PADDR < XCHAL_KIO_SIZE) @@ -52,15 +51,10 @@ static inline void __iomem *ioremap_cache(unsigned long offset, return xtensa_ioremap_cache(offset, size); } #define ioremap_cache ioremap_cache -#define ioremap_nocache ioremap_nocache - -#define ioremap_wc ioremap_nocache -#define ioremap_wt ioremap_nocache -static inline void __iomem *ioremap(unsigned long offset, unsigned long size) -{ - return ioremap_nocache(offset, size); -} +#define ioremap_nocache ioremap +#define ioremap_wc ioremap +#define ioremap_wt ioremap static inline void iounmap(volatile void __iomem *addr) { -- 2.20.1