Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp302920ybl; Sat, 17 Aug 2019 00:50:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/O5U5tQtLcZ9SYJz7wVLAXojsq6vkpGYWx6n2jtMORBV/J631RdqlhqFij9rqrN+eLGdb X-Received: by 2002:a17:902:fe93:: with SMTP id x19mr7249734plm.307.1566028243776; Sat, 17 Aug 2019 00:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566028243; cv=none; d=google.com; s=arc-20160816; b=edMfqxuxJW7AQts3IToPHC7T/MsQiyVbhaVEEEXhOXZmkYiQZ08AVcm+7QYtUHeNA2 l/VPC8fU6VrhJoNIgpvB7Q8lLOwkpDYE9BLmulfIS13tYY9IeqSoA0D1rR6BB0XOcmHj tlqDZXzLl6TpQ441bxe8yeumK1KrTkKjCh0AcThYUkHIUrPhK4ol1CgDwg/m9e6sau0l loP+DgpUMoLEu2veKUWFPATe+Pda+IP7zlUv66IdHX6PG2jqdrh32nLRrIDVel2Uz3z+ XFyr9WV6JvtVdMy3ECMKMstxGOAw1POxbZJ108x0EJM6wtvXrcFszcZLH+b/UnXOzusG HVkQ== 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=Lb9sXGWY4Zo5jWgiVpTYPBkDFIQwZRv2oLfB2JZ22jg=; b=NSMQ46AshLyqwRHk0Rk3GqC+l9UDFXAtCAUh11P/I04PulW/wUJCszsPoUldhlDUYv 6CBu2sLqIRLfAX4n3B+q6PDgv6yN5zKOAy4pNRiJAF49pxrH4Q/NfpKjw4TxJTNpFJWY Fg2TmRYe3nl6+qqyKXnmXMakgPV0XMY+MB1OJtnbJr/As2K0MpEcL3bSo2a7j8uS7u4p 0h7BnVZZqkAmlVYgP+hvGr8w1JKpbDYxC+BMJe6gTB11widMbwlM3gxHkvY3bNDo/juq x693JN3q+03Gtx/tT9jnJCwvQorG+7U2kB4Axd4q6vIIpZhQgprSH0xyIiHet3m1XVUh lQRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="RHT/mc02"; 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 z62si5322723pgd.472.2019.08.17.00.50.29; Sat, 17 Aug 2019 00:50:43 -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="RHT/mc02"; 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 S1726841AbfHQHtS (ORCPT + 99 others); Sat, 17 Aug 2019 03:49:18 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38100 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbfHQHtR (ORCPT ); Sat, 17 Aug 2019 03:49:17 -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=Lb9sXGWY4Zo5jWgiVpTYPBkDFIQwZRv2oLfB2JZ22jg=; b=RHT/mc02CkHRWlwM8CPZXQBfET NjQuSoF6VHomwa/xo7gpEAlzYnKVFc/lZ4ITJKxjfzITlWuAgDf20774zWI8NCiM5K8jsK1T0IFcb /y+NB4cXQVfj/h9/782iWnoviBJ5Ok0KPTTwQNuVb6cMptrSsg5pW+fCH15/ZKJ4dBZvTi/O07WiK G0fhjQlwRABsYcdZOUhF9eJNTjl/eY8291gLDnPANdGnkv9zTOx5zn3BgB8lXBE+d1fYHaam4ejJE z2rHxb8Q6AJ0c5iZZpg/L3VvPEF8g1VSEcgvS9TuIOjh7GPTZcVZM5Y4Gk4zsIqKgiR59MzkTNBSC 4NSzATrg==; 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 1hytSX-0005RI-L0; Sat, 17 Aug 2019 07:49:10 +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 19/26] arm64: remove __iounmap Date: Sat, 17 Aug 2019 09:32:46 +0200 Message-Id: <20190817073253.27819-20-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 No need to indirect iounmap for arm64. Signed-off-by: Christoph Hellwig --- arch/arm64/include/asm/io.h | 3 +-- arch/arm64/mm/ioremap.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index a61b1469f7d9..1bf5631671c3 100644 --- a/arch/arm64/include/asm/io.h +++ b/arch/arm64/include/asm/io.h @@ -165,12 +165,11 @@ extern void __memset_io(volatile void __iomem *, int, size_t); * I/O memory mapping functions. */ extern void __iomem *__ioremap(phys_addr_t phys_addr, size_t size, pgprot_t prot); -extern void __iounmap(volatile void __iomem *addr); +extern void iounmap(volatile void __iomem *addr); extern void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size); #define ioremap(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE)) #define ioremap_wc(addr, size) __ioremap((addr), (size), __pgprot(PROT_NORMAL_NC)) -#define iounmap __iounmap /* * PCI configuration space mapping function. diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c index fdb595a5d65f..9be71bee902c 100644 --- a/arch/arm64/mm/ioremap.c +++ b/arch/arm64/mm/ioremap.c @@ -69,7 +69,7 @@ void __iomem *__ioremap(phys_addr_t phys_addr, size_t size, pgprot_t prot) } EXPORT_SYMBOL(__ioremap); -void __iounmap(volatile void __iomem *io_addr) +void iounmap(volatile void __iomem *io_addr) { unsigned long addr = (unsigned long)io_addr & PAGE_MASK; @@ -80,7 +80,7 @@ void __iounmap(volatile void __iomem *io_addr) if (is_vmalloc_addr((void *)addr)) vunmap((void *)addr); } -EXPORT_SYMBOL(__iounmap); +EXPORT_SYMBOL(iounmap); void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size) { -- 2.20.1