Received: by 10.223.185.116 with SMTP id b49csp919697wrg; Wed, 21 Feb 2018 09:02:39 -0800 (PST) X-Google-Smtp-Source: AH8x227+vQr1nMUebjsSWyqmuLSRSaesLQi90+x9v3svlPDFEGC6wUOz5lStSffMrhDp3EIkcbub X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr3714300plt.434.1519232559401; Wed, 21 Feb 2018 09:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519232559; cv=none; d=google.com; s=arc-20160816; b=ILqhyYlTT72MJxUwGAWD7AzKOl1fcFpHp4Hy2mdoYrAhVjimUMKt0kphkNp4xaaWgX cFVKXnjo/UCB1VWM6poMicKJBHPiW+WaZIvGCOMlOp3srV4lvTsT02ncqUdPt/JLJ29f fVvCkjrQKb8vU0F4crQGYkg+ruc5aNYc/rIcvS3OdUDHWgCVxmBge56z5P2tIjWaXpv0 Ds+RyZ/gbPFsPt/itCCsmDsEPDHzq2yRKi0QRUQmwcjrAwofTNXkox4lNVZiGa4HgxPs nZHyadIL46DB2L4WE49H7ngsq+3x2Et/Dt5hd8JeUeHI2lannvv3A6lvX9tSSsq/rxMi PeNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=WelYqCdFvzOu9sJtrCYFPM1B6+4V5PgaD6IdzXXib7Q=; b=wLtIFJ6sQ7uWo4u3euxALGvsY+SyqW/+U9BC3FpyebcQ71gIutolV1zbRJ+5nzah4d QDKBilS62eZrNNQqdAcRvzSeHA6ENq2Epdn8BXeA/tWh2mZzRQe5P7C8XKUofliIJNpq V7LUKyBa/IN9CAXLdUQSjRTv+1YNY7yalwgsgb0zgNPGwsacvgCJZqiz4U/ZOOfuAra/ gJYBLDr4ZzNlE8/DSu1QEQnYqV93kLRGWNTClFh4yU5N3C1pE+IXhAxouPiQuEzQqg2/ BxVX4Vw5JdpxyLXGlzHWSf/CQqCj5WZC2dmRtLFk9C/fyXPZHk02Vl2EUsCM5Tkqk0Qj kGjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SsupP/z3; 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 89-v6si171378ple.640.2018.02.21.09.02.02; Wed, 21 Feb 2018 09:02:39 -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=fail header.i=@gmail.com header.s=20161025 header.b=SsupP/z3; 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 S933476AbeBULhs (ORCPT + 99 others); Wed, 21 Feb 2018 06:37:48 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:35411 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753413AbeBULho (ORCPT ); Wed, 21 Feb 2018 06:37:44 -0500 Received: by mail-qt0-f193.google.com with SMTP id g14so1465267qti.2; Wed, 21 Feb 2018 03:37:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=WelYqCdFvzOu9sJtrCYFPM1B6+4V5PgaD6IdzXXib7Q=; b=SsupP/z3/nADNLYe42hh06bXZ3h5Pv/EvS5L9+Eb1Q+5kKU9FHmDS8kV8tnhkj0bR/ kaxT/7zr1b+ZDFpMSS3DRQc6xU7lyEuKoWmLqMXKehOK0sBjxfvi1qVaX6Djq4rOEADh GGWD32zE2fldWmbl5P+33oR+Z4eVHX747+se91L9fn1b5gn3Py3yWfLIOpRC2tsrhdn3 rp5hEeEn4Xenl4GlcbbYn+To2ElgDSzelZyGFAL+Dq0sSCY7/EjU9r1G6zyCcUdeVIdW 8kQfjPDOOT+KHg0aWDilQgUZwfyuneKvsZhRXWXNc6kuFMAgwx3BhN9NBoToSIZQPw37 jXSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=WelYqCdFvzOu9sJtrCYFPM1B6+4V5PgaD6IdzXXib7Q=; b=OvDs56SrYQZL2h0n/SlGLaMpP27WVK/KNyejrZBFu/a9ATU8nLQ3DtXk98fPebue4Q sCtUFzyXvIb9+hBifZCRkCwLqzy+liDXmPAlUpKsGOERmAK+jONEVRTNJyQ8hU9A5O6c +idfOse8DbCqhdmmJzUJve6EhpLqYDnoK91gWY3pIvqXtwsWCIeC5oD9aGDkfvPxM5+s ifmEtpQsR/jMWp9Xx+FDjXUr3EMXHOSvPKuN+rJd7S6umeoQZvrhp3ee77mHRGLRT5CG kykj9Y2Wc3gixItmFLOFBIyuJShKddNk0NihlYH9k+But/Wb3hUuL8JRUd0gfj/S22bs gZZg== X-Gm-Message-State: APf1xPB/Ktq/UOidv5IRqmltjGLftFfFckNi04Mb6885u/fCxuXjLUtR Y/bywddje3wBpkEWGbz3uhp3RdGeMZgFiH9/LIA= X-Received: by 10.237.55.225 with SMTP id j88mr4594333qtb.213.1519213063642; Wed, 21 Feb 2018 03:37:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.198.17 with HTTP; Wed, 21 Feb 2018 03:37:43 -0800 (PST) In-Reply-To: References: <201802161853.FKQRlYLX%fengguang.wu@intel.com> From: Arnd Bergmann Date: Wed, 21 Feb 2018 12:37:43 +0100 X-Google-Sender-Auth: Xpm7diPXRO0K7b3R_L5vsG0BGJw Message-ID: Subject: Re: [PATCH v7 02/37] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU To: Greentime Hu Cc: kbuild test robot , kbuild-all@01.org, Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , netdev , Vincent Chen , DTML , Al Viro , David Howells , Will Deacon , Daniel Lezcano , linux-serial@vger.kernel.org, Geert Uytterhoeven , Linus Walleij , Mark Rutland , Greg KH , Guo Ren , Randy Dunlap , David Miller , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Vincent Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 12:21 PM, Greentime Hu wrote: > 2018-02-16 18:47 GMT+08:00 kbuild test robot : > > From: Greentime Hu > Date: Wed, 21 Feb 2018 14:21:23 +0800 > Subject: [PATCH] xtensa: add ioremap_nocache declaration before include > asm-generic/io.h. > > A future commit for the nds32 architecture bootstrap("asm-generic/io.h: > move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef > CONFIG_MMU") will move the ioremap_nocache out of the CONFIG_MMU ifdef. > This means that in order to suppress re-definition errors we need to > setup #define's before importing asm-generic/io.h. > > Signed-off-by: Greentime Hu Don't you need to override both ioremap and ioremap_nocache? > --- > arch/xtensa/include/asm/io.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/xtensa/include/asm/io.h b/arch/xtensa/include/asm/io.h > index c38e5a732d86..acc5bb2cf1c7 100644 > --- a/arch/xtensa/include/asm/io.h > +++ b/arch/xtensa/include/asm/io.h > @@ -52,6 +52,7 @@ static inline void __iomem *ioremap_cache(unsigned > long offset, > return xtensa_ioremap_cache(offset, size); > } > #define ioremap_cache ioremap_cache > +#define ioremap_nocache ioremap_nocache > > #define ioremap_wc ioremap_nocache