Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1281147ybg; Fri, 18 Oct 2019 15:09:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL7l6F2SB70FEi4Fp0VXwcwSgVsY0g3fKj//Xu98A/NKEX+FAXKM9pvMQHxjYMm+O+GRX0 X-Received: by 2002:aa7:ca52:: with SMTP id j18mr12138520edt.299.1571436556535; Fri, 18 Oct 2019 15:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571436556; cv=none; d=google.com; s=arc-20160816; b=d19t6c7AkySnIxH8MnmvFoOLiz8W5MtRlMfRE+OErELD1K0pN1LSqQn6ms3S+mzMh0 0G2XU1thSgRMd0gf+zjVO5dRxd6CrDoxTPU2uwKxjVbw2QTl5Ka5CSasTZOoX5CyWItn kblDC/tJPfOd7/9nWM3qfg3H1wQAyOzO6dMIzq5C75r01Dzi3+7rrPQlK8d2ftKRbJ2Q TlQaRokT/35NZ59IaCal52n9ZAyYsAnOuEwdw39HH+R0Jt3bEZ9LHJW1s0INJ8WlYxlp +uCNVs74W0wDc3wC87za5D/dk8mjQv/lKMwmt7D1fanTHxZWF4xfVZ9Ss5LoDJTD2Ep9 4iww== 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=2xy2T9qOSPMGplEqKWJauskIbcbIDJKl6sQ804whqNU=; b=BCkkJn1jpGSJMf0giRJP0lJKKBTLU36XWMKxh7nKLsUSQtCbtFJ8+W4o0j+doQuh+K /FeKkjhZ6jdgW6Xn5xjvmKsdxq24bbhem3A8nEyE1b6Y+zJ/wx62P8aDbpW8TRzkaIEg 1z/Zerd5wsRe62fdx9oBkB+I0PYhTlC35HinZsnAVmm3+1qGgEX3RvE5rYVgsHTtw7ct W23h3wcWFt2xsGEI+Xitg5QNSTUphJgpXJKJU3BlHSAUUkiYCv9ZiZhECugueysHvd2u 5W+6OaQgqzebbCAuhwCSKpITuuGArD8daVc721WxiVnqyxyO4DAWBBOHRvNmFNWwJwjb aoJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ct+ldN6r; 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 v2si5028574edm.80.2019.10.18.15.08.53; Fri, 18 Oct 2019 15:09:16 -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=Ct+ldN6r; 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 S2440811AbfJQRqS (ORCPT + 99 others); Thu, 17 Oct 2019 13:46:18 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53554 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440771AbfJQRqQ (ORCPT ); Thu, 17 Oct 2019 13:46:16 -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=2xy2T9qOSPMGplEqKWJauskIbcbIDJKl6sQ804whqNU=; b=Ct+ldN6rk4PqkB+evT89HS0aI2 iuSsioqVAzvvnPglWYuo2PY4ic17xOid8hZq73VDPkHkJANCOk7fSMJ/AlTpqSxKoSIBO28z8pB+M CBJGy7GBGGXsIpFXUR/AYq0VGERcZdWHvyhLEEaS3bduWAlRoA9l4mwQWSyZi1ME1Ie1Lp6Tg9QIG UgqdC3qSGUZjPgmjJRDJrit1PvCjgLRyLC9sg9FZ5kgwZ8mKLlIejLie5kal4hO48xE68e+ICt+U9 7DqOI3lJ3mChXeZOB6/L975KjKQUPoBmruId7kvnHPgjz6+TeOzmOe5kAcMMV9WnihOD5X/u9PCMp 14GPk71w==; 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 1iL9qd-0005Sm-S2; Thu, 17 Oct 2019 17:46:04 +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 03/21] ia64: rename ioremap_nocache to ioremap_uc Date: Thu, 17 Oct 2019 19:45:36 +0200 Message-Id: <20191017174554.29840-4-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 On ia64 ioremap_nocache fails if attributs don't match. Not other architectures does this, and we plan to get rid of ioremap_nocache. So get rid of the special semantics and define ioremap_nocache in terms of ioremap as no portable driver could rely on the behavior anyway. However x86 implements ioremap_uc with a in a similar way as the ia64 version of ioremap_nocache, so implement that instead. Signed-off-by: Christoph Hellwig --- arch/ia64/include/asm/io.h | 6 +++--- arch/ia64/mm/ioremap.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h index 54e70c21352a..fec9df9609ed 100644 --- a/arch/ia64/include/asm/io.h +++ b/arch/ia64/include/asm/io.h @@ -256,16 +256,16 @@ static inline void outsl(unsigned long port, const void *src, # ifdef __KERNEL__ extern void __iomem * ioremap(unsigned long offset, unsigned long size); -extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long size); +extern void __iomem * ioremap_uc(unsigned long offset, unsigned long size); extern void iounmap (volatile void __iomem *addr); static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned long size) { return ioremap(phys_addr, size); } #define ioremap ioremap -#define ioremap_nocache ioremap_nocache +#define ioremap_nocache ioremap #define ioremap_cache ioremap_cache -#define ioremap_uc ioremap_nocache +#define ioremap_uc ioremap_uc #define iounmap iounmap /* diff --git a/arch/ia64/mm/ioremap.c b/arch/ia64/mm/ioremap.c index 0c0de2c4ec69..a09cfa064536 100644 --- a/arch/ia64/mm/ioremap.c +++ b/arch/ia64/mm/ioremap.c @@ -99,14 +99,14 @@ ioremap (unsigned long phys_addr, unsigned long size) EXPORT_SYMBOL(ioremap); void __iomem * -ioremap_nocache (unsigned long phys_addr, unsigned long size) +ioremap_uc(unsigned long phys_addr, unsigned long size) { if (kern_mem_attribute(phys_addr, size) & EFI_MEMORY_WB) return NULL; return __ioremap_uc(phys_addr); } -EXPORT_SYMBOL(ioremap_nocache); +EXPORT_SYMBOL(ioremap_uc); void early_iounmap (volatile void __iomem *addr, unsigned long size) -- 2.20.1