Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp303130ybl; Sat, 17 Aug 2019 00:51:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWp0CXE/4/vm1MXu0xFY92h00qCBEfuYD5yAQjHZZ1k4pXVjHXCDqDL1gI0tWzJGPATyKW X-Received: by 2002:a17:90a:fa8f:: with SMTP id cu15mr10941153pjb.119.1566028261621; Sat, 17 Aug 2019 00:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566028261; cv=none; d=google.com; s=arc-20160816; b=GqcVpg2hxkxE4nfBBpE887MPiH9BsUytxxwgz7TT5pnlhiWOuiaMDS4N2bX27FhMeD ruddzB5bfHDtaFLOebs+GeCo7PFKH0QIUudd5gl3NSrFeGdKrKLTzqA3/cWJbgrwikW0 rurFyCUAGQauK6H9rNuGVPpaMhAnIS/tTGcnkIEMgpdtO+cEEIvT55Nzge/DIF82dMNq wj0Cpkn6suc5sGS09rmdaCr+iAFEXdbHYX9WK7KwWZ0WpWs1/7rkcZKwqOBBV9X6PzzT oyIE9rzY4PAsYQaXKHrrz3XdSzgGktdZ6IcmZ9iFyN0+H+4QB3l6iDMOGVmdE44ChkZG Gh5Q== 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=qlJzcnNPhbKTD4rzraxFG78WTWQrEPk5hzQGDgWCawQ=; b=Rda2gF14GqihvS4s9mZ9w5OQM0Lz8E6KBpINGgYSbNOZNQB3ylgQbRhesyR0MWf5NN Gd7ipmfY7NeT3GeiS4H5orbYtjMnj3VQ5b5pnZUVrEPl6GHIi4s+6nv0nrgJIs/3lyqC wwQuwOyqJvZxN0kQK5quXQTFxqeNP9Rhp9hbwbRKdDAP7N/xvLuDIf5Qe7LD87WDO2Cv SpPPQa5U4A55KRTx9OozpTzOJSGrKoyziGqo/r2Hx3Bg4mvkd6H4Ip2pypo91nNbpY2k JT7HE/nPna6TB53n5Zk334iNI3fsbfu5r5kNTbRTMw7u5Tu54f8ObTQ9p1YxW0TF1ZJL CPBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=g+y1gUaH; 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 d4si5363959pgv.464.2019.08.17.00.50.47; Sat, 17 Aug 2019 00:51:01 -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=g+y1gUaH; 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 S1726946AbfHQHt2 (ORCPT + 99 others); Sat, 17 Aug 2019 03:49:28 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38632 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbfHQHtZ (ORCPT ); Sat, 17 Aug 2019 03:49:25 -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=qlJzcnNPhbKTD4rzraxFG78WTWQrEPk5hzQGDgWCawQ=; b=g+y1gUaHBwZbmENTy2nKBJ8lFN SabXCI3IyMcC6swIemu9KajXEN+K6PYilAmTNR2VX14OuIEUyTrQiWagBDZ6UzoONzxOthZEwETFE kZP83xYgewvAPDT9oYCnC/dE6USUl+uD01OBuj3vZMzBzpznZxXq9rOWuaNOCE/nMVMqAHsfXubve REuYBRCNmg7eSU6SRrPC2PMADTDBu8SDrtJfIWMjuwHfA2cHQHjYPdZ5dHtod6nt9TuaDroNzdSDZ aiBL28OXBusp33vG0R99eaitRiaBIhukqdHoDkKfcUMcQzJgGxs3MitBnLe3eKIWGloWQppMBmv8G j+KlP3Pw==; 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 1hytSi-0005ZT-4y; Sat, 17 Aug 2019 07:49:20 +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 22/26] sh: remove __iounmap Date: Sat, 17 Aug 2019 09:32:49 +0200 Message-Id: <20190817073253.27819-23-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 sh. Signed-off-by: Christoph Hellwig --- arch/sh/include/asm/io.h | 9 ++------- arch/sh/mm/ioremap.c | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index ac0561960c52..1495489225ac 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h @@ -267,7 +267,7 @@ unsigned long long poke_real_address_q(unsigned long long addr, #ifdef CONFIG_MMU void __iomem *__ioremap_caller(phys_addr_t offset, unsigned long size, pgprot_t prot, void *caller); -void __iounmap(void __iomem *addr); +void iounmap(void __iomem *addr); static inline void __iomem * __ioremap(phys_addr_t offset, unsigned long size, pgprot_t prot) @@ -328,7 +328,7 @@ __ioremap_mode(phys_addr_t offset, unsigned long size, pgprot_t prot) #else #define __ioremap(offset, size, prot) ((void __iomem *)(offset)) #define __ioremap_mode(offset, size, prot) ((void __iomem *)(offset)) -#define __iounmap(addr) do { } while (0) +#define iounmap(addr) do { } while (0) #endif /* CONFIG_MMU */ static inline void __iomem *ioremap(phys_addr_t offset, unsigned long size) @@ -370,11 +370,6 @@ static inline int iounmap_fixed(void __iomem *addr) { return -EINVAL; } #define ioremap_nocache ioremap #define ioremap_uc ioremap -static inline void iounmap(void __iomem *addr) -{ - __iounmap(addr); -} - /* * Convert a physical pointer to a virtual kernel pointer for /dev/mem * access diff --git a/arch/sh/mm/ioremap.c b/arch/sh/mm/ioremap.c index d09ddfe58fd8..f6d02246d665 100644 --- a/arch/sh/mm/ioremap.c +++ b/arch/sh/mm/ioremap.c @@ -103,7 +103,7 @@ static inline int iomapping_nontranslatable(unsigned long offset) return 0; } -void __iounmap(void __iomem *addr) +void iounmap(void __iomem *addr) { unsigned long vaddr = (unsigned long __force)addr; struct vm_struct *p; @@ -134,4 +134,4 @@ void __iounmap(void __iomem *addr) kfree(p); } -EXPORT_SYMBOL(__iounmap); +EXPORT_SYMBOL(iounmap); -- 2.20.1