Received: by 10.223.164.202 with SMTP id h10csp1591813wrb; Mon, 27 Nov 2017 04:59:00 -0800 (PST) X-Google-Smtp-Source: AGs4zMb47nWDfVtoqc6qIkcBXYPX7YCx2+fWwfLw3Nay7Gb+HgVB5znM6n1CzcWlHhMpZeagSRhC X-Received: by 10.99.148.1 with SMTP id m1mr24696855pge.237.1511787540102; Mon, 27 Nov 2017 04:59:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511787540; cv=none; d=google.com; s=arc-20160816; b=MkOtAb+w+5kbyNa9OL36hwmWixJ1lJRTx0QkVx7h661ZYXkHfdQQSlyvuz2AaBNkty n/oveyzbQaYMEONr7hXauQLnGQ9xWkk9+G/s5ZYkLDWuVBuc6cd4AkQ6h5pfY2OHRIqo VQTKmOo0QkhNZbfARonRhqU4oHKNDXsLOkWoqbAdHTnmFcs/A2S/kEcE+H7XBqc3MSgb sh8H+u6E7MimXh3vE7eTlHokXneC7jsw65j3Ydgu9T0VwoONMJGvksGahzsoLLrwTJ08 cUhgNRjni9lc5h+0TEG432sS53jC9FmzO18Vj/7iEdxW8ohd5QkSRZNU7sbdYoY6KAnk Yzlg== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=+F0QFjUkswY9smZDZY3bH/mY8pWffOjbfRWfR9ODe4k=; b=hgWoTlRYnmx+BLhDECzZ/NQ2f/PfOIwKcKFW1g2SNnnmRtrWUkkpRbKaozA1w2EfwO Wfh0n8P5mQi+wD5mSQsZZMdr+fz4gkGvxFbcp0gfd5ZjaNL6T4oKMObY61ZYr/76IP0z FlHYW0gqinAhIYBSAO2EsakrHp6h/l6JBk7NxSM329dSKwIkhUNtSUN3MSyPPwXl5kGl j9foVUM6GR/Trea0A8VTxv+C2rMKeck4xPaibTtuHsNQNfiTWKhpjycpSuVH21cWUz35 eXHELxgFVCL2Hb2I8gpeCtY1DzTN28wxBX9jvB53wCTjNVmaSNuHjVDtP1BY/0a8p1Cn sKlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m4AKAqP+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n59si17798124plb.209.2017.11.27.04.58.48; Mon, 27 Nov 2017 04:59:00 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m4AKAqP+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752838AbdK0MzU (ORCPT + 77 others); Mon, 27 Nov 2017 07:55:20 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:44071 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752060AbdK0MzQ (ORCPT ); Mon, 27 Nov 2017 07:55:16 -0500 Received: by mail-pf0-f196.google.com with SMTP id r14so10815330pfl.11; Mon, 27 Nov 2017 04:55:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=+F0QFjUkswY9smZDZY3bH/mY8pWffOjbfRWfR9ODe4k=; b=m4AKAqP+5TFcY9meH5KHurlutvg+scPJsm/uEW2xbsIhkosOlMjUoLNcS2zk9n5DZe 5Q1IpXj1fFqSH1JvHEPHL2EWWR6v+Dwh3HEMdGU0G4MAFmtpTGR9wvuI5s2yFLxGyKa4 n5lU+39m42kGMsXpUTCp1+fmA5TI35L/UG7E8JDzOY61zbev6+Z6YMg/jXpGJtrSr5ya FLP+Q+Qr45vQP6/IPKDBkZIJ1LlcgDSqOxTPBKVDzg6SqwIN/aykIRKpRoffDgFd3e/P Ephk0PowtpTLr4KtpuhZOp20/buxguGafR3X15kmUmoa03TzsZDHXr8nspjdiYGc+xir gc8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=+F0QFjUkswY9smZDZY3bH/mY8pWffOjbfRWfR9ODe4k=; b=HA+uS4eqDwT7rrQEXzgg3iPFFrL7qR96WfH5+DhiAHqkRNTjwmzYDGwSYRDHquRpRj wYyId0NY8OMh+3nyWySujwvt/feXCFEaYDESTFspu5QGgADdbYfNT/RVkYELD2QKaCmK KhWCC8TbChcvgrQPTskBZtXnvyXOebAPh1sUYBimYdxChdt950qtkds4FkUJ7Ea7TlXf 1rjNK55e/n9UpCIbsriurLryyAafpE5XY18sTy6NWT7rccYAhNekrGnw4SrXqtEyGiT9 inPmCCs8qwezN5Nv3KS+1dIDfJfJ0kaN83f3IlWZggPv7G9BAW4XzeTvFp7o349juBgx fG2Q== X-Gm-Message-State: AJaThX43NYXyeQgqKq1mAE34JDEXkNOBGYpQ509hC8E9g3/Xg2prFbPC 104yHddtO/vcezU+9Ol8ibY= X-Received: by 10.101.65.74 with SMTP id x10mr25145764pgp.388.1511787316029; Mon, 27 Nov 2017 04:55:16 -0800 (PST) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id w64sm55225459pfj.62.2017.11.27.04.55.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Nov 2017 04:55:15 -0800 (PST) From: Greentime Hu To: greentime@andestech.com, linux-kernel@vger.kernel.org, arnd@arndb.de, linux-arch@vger.kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, netdev@vger.kernel.org, deanbo422@gmail.com, devicetree@vger.kernel.org, viro@zeniv.linux.org.uk, dhowells@redhat.com, will.deacon@arm.com, daniel.lezcano@linaro.org, linux-serial@vger.kernel.org Cc: green.hu@gmail.com, Vincent Chen Subject: [PATCH v2 32/35] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU Date: Mon, 27 Nov 2017 20:28:19 +0800 Message-Id: <44e31de43dab9abecdc08f9a87244205f054cfa6.1511785528.git.green.hu@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greentime Hu It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- include/asm-generic/io.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index b4531e3..7c6a39e 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h @@ -852,7 +852,16 @@ static inline void __iomem *__ioremap(phys_addr_t offset, size_t size, } #endif +#ifndef iounmap +#define iounmap iounmap + +static inline void iounmap(void __iomem *addr) +{ +} +#endif +#endif /* CONFIG_MMU */ #ifndef ioremap_nocache +void __iomem *ioremap(phys_addr_t phys_addr, size_t size); #define ioremap_nocache ioremap_nocache static inline void __iomem *ioremap_nocache(phys_addr_t offset, size_t size) { @@ -884,15 +893,6 @@ static inline void __iomem *ioremap_wt(phys_addr_t offset, size_t size) } #endif -#ifndef iounmap -#define iounmap iounmap - -static inline void iounmap(void __iomem *addr) -{ -} -#endif -#endif /* CONFIG_MMU */ - #ifdef CONFIG_HAS_IOPORT_MAP #ifndef CONFIG_GENERIC_IOMAP #ifndef ioport_map -- 1.7.9.5 From 1586208371888689701@xxx Fri Dec 08 09:43:04 +0000 2017 X-GM-THRID: 1586208371888689701 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread