Message ID | 20221009103114.149036-5-bhe@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB456C4332F for <linux-mm@archiver.kernel.org>; Sun, 9 Oct 2022 10:32:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 78EA780008; Sun, 9 Oct 2022 06:32:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 716DC6B0075; Sun, 9 Oct 2022 06:32:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5908780008; Sun, 9 Oct 2022 06:32:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 452AD6B0074 for <linux-mm@kvack.org>; Sun, 9 Oct 2022 06:32:18 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 0B1E380992 for <linux-mm@kvack.org>; Sun, 9 Oct 2022 10:32:18 +0000 (UTC) X-FDA: 80001046356.29.A5656B8 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf24.hostedemail.com (Postfix) with ESMTP id A9FF3180020 for <linux-mm@kvack.org>; Sun, 9 Oct 2022 10:32:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665311537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h0wz1H1leA7CuWV687C4HqKWq96HEonICKC1esEFR0M=; b=UVwZlw4WqXhp9BksWl3tKN+S0tc7nYRn0rDC7AQ3ZaIw64UNEO6Srj+s2ullmlSFIyFVrg 4z7kzd4TQ/sdXKuwiPeo2FKnkCyOWZX5qwOqi8HBbesG9SsD2cMtDhg/dllVJH0VEuUIFn HAYes5OKz+XIcAQoAi0HoiSJ2yrtiFk= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-271-HV8un_y7MuqyqxHBgOZLEg-1; Sun, 09 Oct 2022 06:32:12 -0400 X-MC-Unique: HV8un_y7MuqyqxHBgOZLEg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5265729AB3FD; Sun, 9 Oct 2022 10:32:11 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-36.pek2.redhat.com [10.72.12.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1B8D640D298B; Sun, 9 Oct 2022 10:31:48 +0000 (UTC) From: Baoquan He <bhe@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, hch@infradead.org, agordeev@linux.ibm.com, wangkefeng.wang@huawei.com, christophe.leroy@csgroup.eu, schnelle@linux.ibm.com, David.Laight@ACULAB.COM, shorne@gmail.com, bhe@redhat.com, Arnd Bergmann <arnd@arndb.de>, linux-arch@vger.kernel.org Subject: [PATCH v3 04/11] mm: ioremap: allow ARCH to have its own ioremap definition Date: Sun, 9 Oct 2022 18:31:07 +0800 Message-Id: <20221009103114.149036-5-bhe@redhat.com> In-Reply-To: <20221009103114.149036-1-bhe@redhat.com> References: <20221009103114.149036-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1665311537; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=h0wz1H1leA7CuWV687C4HqKWq96HEonICKC1esEFR0M=; b=qeneita65pngql6ks8m0EqWj/ElRtJaIpBl242zjWbKYIRzXy0b1aRA6SFCEyZxoUZrjhr oVP2AceR6L8yvnGc8NrpLRl4Ez7Dh9IznpaNdGhQ88I6bKoDWW74yzR93N/u4sFwP+skOz Rq2i+5wnEveWP2U9vWOg4gbtp8vXm4Q= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=UVwZlw4W; spf=pass (imf24.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1665311537; a=rsa-sha256; cv=none; b=RjyEhML3AnC2UE5fxN6BpKWb6DMl61tgvEHkK7yKOiRLXSPV1JMWvepsZ6q5JcNm5jwyQF xseN7PZnUxyEfDEbJfMkhLPeQX/mZ8pES31nD+g2/Vvt7pBTWfKS2WgEbqIIPycww0flQo CzRFP+WfIE+sOlv9EjBQogVkst8C7kU= Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=UVwZlw4W; spf=pass (imf24.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: id6k4eze3c9gcde9bxhsxu741wzrb7nb X-Rspamd-Queue-Id: A9FF3180020 X-HE-Tag: 1665311537-333750 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
mm: ioremap: Convert architectures to take GENERIC_IOREMAP way
|
expand
|
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index 2ae16906f3be..8878914579d8 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h @@ -1078,11 +1078,14 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, unsigned long prot); void iounmap(volatile void __iomem *addr); +#ifndef ioremap +#define ioremap ioremap static inline void __iomem *ioremap(phys_addr_t addr, size_t size) { /* _PAGE_IOREMAP needs to be supplied by the architecture */ return ioremap_prot(addr, size, _PAGE_IOREMAP); } +#endif #endif /* !CONFIG_MMU || CONFIG_GENERIC_IOREMAP */ #ifndef ioremap_wc
Architectures like xtensa, arc, can be converted to GENERIC_IOREMAP, to take standard ioremap_prot() and ioremap_xxx() way. But they have ARCH specific handling for ioremap() method, than standard ioremap() method. In oder to convert them to take GENERIC_IOREMAP method, allow these architecutres to have their own ioremap definition. This is a preparation patch, no functionality change. Signed-off-by: Baoquan He <bhe@redhat.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: linux-arch@vger.kernel.org Cc: Kefeng Wang <wangkefeng.wang@huawei.com> --- include/asm-generic/io.h | 3 +++ 1 file changed, 3 insertions(+)