From patchwork Fri Feb 22 18:50:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 159069 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2070851jaa; Fri, 22 Feb 2019 10:51:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IaF1isGj2Y5ErJ2BYiFY1h5qSiEfbNPDPpELsZ5OU1MqHL0VbosdAVK6h3R38h1DwYOwCmM X-Received: by 2002:a17:902:7586:: with SMTP id j6mr5634028pll.259.1550861507921; Fri, 22 Feb 2019 10:51:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550861507; cv=none; d=google.com; s=arc-20160816; b=a1ZvabUmqh48hidO3mukYSPhUzGu7rMdu3ZluLPUE/SXApxpwBqn9DX7JYtvELzssx GbiHRf8BysQ2QQe7y5h7jlhY5UvFjVawM2QwkdJvsI5C07nHKiz5qfo1UNsdgQHUWGMJ Ea5y9J+8h7UKcnYx1sVv6IHKT8cGSd+YB3GraSl5HjjsEo54wmL7eUq1n2v6BbshnpEL UldJiZRFgafsfEaJ3Yt05X7WFqixvLxYS3m9i09zkf/aB4az6DOrGoKFcF+X3UQ0UiyM 9jrGNLt91xYlzxrLqjn1WXMW/mlEMCyfPd5QHN0QqsjSVAepUqa82QGwJorUZ6SOsw2o XbOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=NDM5ayP6H8cACSVkWoQxS954qKd9R4Ehw1ZlzBSau5E=; b=hiZVElhkxwwiv0wxB44Qly7RbQcd6RxIki+QV9g5dX68ze2HGIMxYeFiXPNj8s0fZ4 meQyd8hSZ8XSe6nIVQrdf46W9dIX589j2cQHZ/KD3OdugufVzqPNC82oADtfwajIeWg2 noMTMCGPAlyZvZ7A7NlifP+rMyIeOosQDjbTqZXIghhilPclh3xqxzw+7eTzYNIaNXl6 MOjcAQgVlDQ+fCxpsvqw3bIknE/FB/+hDUzEPGYodnV52TdvRsxTZ12vupLMHHl84Lnd 4GXZM/eJBFIgdPa749xnVyJTCqICbDsE7gLgYDSSi6cF/lk+M28UcGNFwCINc7wJdiEv SXZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 q17si1923788pgv.39.2019.02.22.10.51.47; Fri, 22 Feb 2019 10:51:47 -0800 (PST) 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; 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 S1727729AbfBVSvq (ORCPT + 32 others); Fri, 22 Feb 2019 13:51:46 -0500 Received: from foss.arm.com ([217.140.101.70]:39810 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbfBVSvq (ORCPT ); Fri, 22 Feb 2019 13:51:46 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BDA6D174E; Fri, 22 Feb 2019 10:51:45 -0800 (PST) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 82CF03F5C1; Fri, 22 Feb 2019 10:51:42 -0800 (PST) From: Will Deacon To: linux-arch@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Will Deacon , "Paul E. McKenney" , Benjamin Herrenschmidt , Michael Ellerman , Arnd Bergmann , Peter Zijlstra , Andrea Parri , Palmer Dabbelt , Daniel Lustig , David Howells , Alan Stern , Linus Torvalds , "Maciej W. Rozycki" , Paul Burton , Ingo Molnar , Yoshinori Sato , Rich Felker , Tony Luck Subject: [RFC PATCH 20/20] arch: Remove dummy mmiowb() definitions from arch code Date: Fri, 22 Feb 2019 18:50:26 +0000 Message-Id: <20190222185026.10973-21-will.deacon@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190222185026.10973-1-will.deacon@arm.com> References: <20190222185026.10973-1-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that no driver code is using mmiowb() directly, we can remove the dummy definitions from the architectures that don't make use of asm-generic/io.h Signed-off-by: Will Deacon --- arch/alpha/include/asm/io.h | 2 -- arch/hexagon/include/asm/io.h | 2 -- arch/parisc/include/asm/io.h | 2 -- arch/sparc/include/asm/io_64.h | 2 -- 4 files changed, 8 deletions(-) -- 2.11.0 diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h index 4c533fc94d62..ccf9d65166bb 100644 --- a/arch/alpha/include/asm/io.h +++ b/arch/alpha/include/asm/io.h @@ -513,8 +513,6 @@ extern inline void writeq(u64 b, volatile void __iomem *addr) #define writel_relaxed(b, addr) __raw_writel(b, addr) #define writeq_relaxed(b, addr) __raw_writeq(b, addr) -#define mmiowb() - /* * String version of IO memory access ops: */ diff --git a/arch/hexagon/include/asm/io.h b/arch/hexagon/include/asm/io.h index e17262ad125e..3d0ae09c2b8e 100644 --- a/arch/hexagon/include/asm/io.h +++ b/arch/hexagon/include/asm/io.h @@ -184,8 +184,6 @@ static inline void writel(u32 data, volatile void __iomem *addr) #define writew_relaxed __raw_writew #define writel_relaxed __raw_writel -#define mmiowb() - /* * Need an mtype somewhere in here, for cache type deals? * This is probably too long for an inline. diff --git a/arch/parisc/include/asm/io.h b/arch/parisc/include/asm/io.h index afe493b23d04..b163043d49db 100644 --- a/arch/parisc/include/asm/io.h +++ b/arch/parisc/include/asm/io.h @@ -229,8 +229,6 @@ static inline void writeq(unsigned long long q, volatile void __iomem *addr) #define writel_relaxed(l, addr) writel(l, addr) #define writeq_relaxed(q, addr) writeq(q, addr) -#define mmiowb() do { } while (0) - void memset_io(volatile void __iomem *addr, unsigned char val, int count); void memcpy_fromio(void *dst, const volatile void __iomem *src, int count); void memcpy_toio(volatile void __iomem *dst, const void *src, int count); diff --git a/arch/sparc/include/asm/io_64.h b/arch/sparc/include/asm/io_64.h index b162c23ae8c2..688911051b44 100644 --- a/arch/sparc/include/asm/io_64.h +++ b/arch/sparc/include/asm/io_64.h @@ -396,8 +396,6 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, } } -#define mmiowb() - #ifdef __KERNEL__ /* On sparc64 we have the whole physical IO address space accessible