Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp302229ybl; Sat, 17 Aug 2019 00:49:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQZVpFqI2vXOUQ+qeaJEdEmD26dcnD2BVNs8E0Xofz5ymr4FcqNqszSqzVuteQQJFCDE6r X-Received: by 2002:a63:b11:: with SMTP id 17mr10662779pgl.283.1566028181074; Sat, 17 Aug 2019 00:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566028181; cv=none; d=google.com; s=arc-20160816; b=iO/4iNoE72Qzf9mq5q9wy8OJ3Gq4CEk97ACaeJBtTS5k0ze2zrixu7Dz3gRGN/h1fo GmsIzVIxbDxLv11XjH34E36xL/bUUtVahL2/iB48dS4FP3FQxCjISUwje/7SGhb4uamT bdRiJBWXpkkiSJOvNUZ4Hof92+xIEVbbnkOxZyFWGKr6nPEiMQGmPJCGNCRv8OcUXsVB 7Hyscu4e+NKPgqwiwhkEibETRxL0uDX8kw45GzrGMIBICgkmlkgnRePq/HMLl//8HLKO P5UEbUc9sVmjW1FzfjuLoKzABswtYwSTTRSfX3oGhZPffKtkUYDku8n61eQ/n0pSJg3X b4Mw== 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=ZcYpG77DrI4zIeJSB2UM1Pr1UMrxQ6cFx59Cqt/5V3Q=; b=KsvltaqIZyFdX0Y38yZL37KCS7uwGfG6vD2bmXc4a5LQJ7efBfF9BYRqTuZ+myHcDd yEXwrFoA5pLhAo6jzviQGUE8HekHQCml01Khj4YCImo2lliObLK9s5BFRvEP/zgtvJCj 7/Gz7XWu7htAD/cukBnw+8YZyFkatFSCxMPCdvYYL0v5Yj6zy7jvJji9rfK/ghNeg619 kmcrelw5S1JA4KqWKOctBe3gmjRsKsd+NWJyucv5MJKevZY7WB6kLGgHBJ1YNY6ofRBl QfP6oocxYqiVaWj9tpwW+VEB9zTOjj4u4i0Q1o5JTrqD3hJ4dm5LLEhDGRK2fX/Cc4nC XtaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ibaKOjiJ; 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 a10si6082019pfo.179.2019.08.17.00.49.27; Sat, 17 Aug 2019 00:49:41 -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=ibaKOjiJ; 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 S1726404AbfHQHse (ORCPT + 99 others); Sat, 17 Aug 2019 03:48:34 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34814 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbfHQHsd (ORCPT ); Sat, 17 Aug 2019 03:48:33 -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=ZcYpG77DrI4zIeJSB2UM1Pr1UMrxQ6cFx59Cqt/5V3Q=; b=ibaKOjiJ0+DsvhmQb5Cy0ZbsEw 4MXoTvEXM9pkciNqYZkd224cBpwcg3ont4mrhiWzFkrbxveVQbmnIQjzfbWBTG30MXAAJ6nXrILdT Fj3hq43LApqSPT6Tor25bHNJPNkgoU9x71vMW7oiPsIvo7n+OEu0cD2zv0XTflxAhVqJwi7dTDHqZ eKlU8hl3MWrlNs+abVDiP9a1KWiozDl75x5kSZg97J4BSnsWlhIKI94N0a/XbL0f2oCJmW3P6kDBI bYN2QIkMFOSgt4gLNEyQI7SH1vI0+LgPiwwWEn+zziWE55gzf1GpNhurpjb0qeJjd1VY4xN+aGM75 6+v3YkmQ==; Received: from [2001:4bb8:18c:28b5:44f9:d544:957f:32cb] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hytRs-0004mm-7d; Sat, 17 Aug 2019 07:48:28 +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 07/26] hexagon: clean up ioremap Date: Sat, 17 Aug 2019 09:32:34 +0200 Message-Id: <20190817073253.27819-8-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190817073253.27819-1-hch@lst.de> References: <20190817073253.27819-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/hexagon/include/asm/io.h | 11 ++--------- arch/hexagon/kernel/hexagon_ksyms.c | 2 +- arch/hexagon/mm/ioremap.c | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/arch/hexagon/include/asm/io.h b/arch/hexagon/include/asm/io.h index ba1a444d55b3..89537dc1cf97 100644 --- a/arch/hexagon/include/asm/io.h +++ b/arch/hexagon/include/asm/io.h @@ -171,16 +171,9 @@ static inline void writel(u32 data, volatile void __iomem *addr) #define writew_relaxed __raw_writew #define writel_relaxed __raw_writel -/* - * Need an mtype somewhere in here, for cache type deals? - * This is probably too long for an inline. - */ -void __iomem *ioremap_nocache(unsigned long phys_addr, unsigned long size); +void __iomem *ioremap(unsigned long phys_addr, unsigned long size); +#define ioremap_nocache ioremap -static inline void __iomem *ioremap(unsigned long phys_addr, unsigned long size) -{ - return ioremap_nocache(phys_addr, size); -} static inline void iounmap(volatile void __iomem *addr) { diff --git a/arch/hexagon/kernel/hexagon_ksyms.c b/arch/hexagon/kernel/hexagon_ksyms.c index cf8974beb500..b3dbb472572e 100644 --- a/arch/hexagon/kernel/hexagon_ksyms.c +++ b/arch/hexagon/kernel/hexagon_ksyms.c @@ -20,7 +20,7 @@ EXPORT_SYMBOL(__vmgetie); EXPORT_SYMBOL(__vmsetie); EXPORT_SYMBOL(__vmyield); EXPORT_SYMBOL(empty_zero_page); -EXPORT_SYMBOL(ioremap_nocache); +EXPORT_SYMBOL(ioremap); EXPORT_SYMBOL(memcpy); EXPORT_SYMBOL(memset); diff --git a/arch/hexagon/mm/ioremap.c b/arch/hexagon/mm/ioremap.c index 77d8e1e69e9b..b103d83b5fbb 100644 --- a/arch/hexagon/mm/ioremap.c +++ b/arch/hexagon/mm/ioremap.c @@ -9,7 +9,7 @@ #include #include -void __iomem *ioremap_nocache(unsigned long phys_addr, unsigned long size) +void __iomem *ioremap(unsigned long phys_addr, unsigned long size) { unsigned long last_addr, addr; unsigned long offset = phys_addr & ~PAGE_MASK; -- 2.20.1