Received: by 10.213.65.68 with SMTP id h4csp227091imn; Fri, 16 Mar 2018 00:46:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELu+MVcySuAnHk7B4FN2nYSoff2u/y0ikwPpK9CH04rjukGUu20nIbIszfqu6ys0PUNMZvVK X-Received: by 2002:a17:902:b901:: with SMTP id bf1-v6mr1000159plb.175.1521186396134; Fri, 16 Mar 2018 00:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521186396; cv=none; d=google.com; s=arc-20160816; b=gA+QMWvxlp0wd9uyljKlwoE1Lb8pPkZ2f7LamChCLzRTJkpHG8JExXJjcs1XLS7kRt ahwji0LzaVaeN+YK5zHasrXMmUnc+Sy4uCQArJrjY/DqI3zYCk03800L+XcOzgnY24z5 xElqEZpDQ1lPNdjYbiN/QEyOnrHpG6BjpQz/5zydDgBM3wkRxbdrG340Xa0ad8S2fj7W lKW/2lJKA7w6LYyPILTuPZKZnj5VjFZL0HFph7zzy/SaZPOyjcIhMHwKyo0++G1LdKnU OUpFuMz0HO9UhXP4gKCSU+1suMu7j6kv4KsJbmjLpGx1yC2hAuTeYYf0IMIvtu2G51vw eYgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=LWKCK+T3UrqNyi6sinlj0gRPLRGzZC51Tp28PykVQ/g=; b=uWsD1E+0tPapdP4c/vG/lxiN5K4Oma04qq73sx5fihP6droDFkapyqYSY0tWMKyt5p +5uPmW3O0yUNWMzmFhQGbZmDJJFuRqG6vByG2kFG98Bncm99eZv2/J15s/5Egn4PNgJC 8g3QAlvESEsGdF1qb+J4z0D0lyNGDUuqVzRsgLzPz5DEvCxqXz4MusFRU90IdRA4H7eP PalyPcr1PM7KX4GoWXCLu1ag/umPXBlraXh0SSijezZRIIEW67+cQc/auGMOD+e2UKH+ sewJQVFYgMGqxrz1GNvBV25bOzM+tWy9i+Q/na5GLXQqBDEbPk926yVxOJmgZbnFZgnC Cnrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rubbfBW1; 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=QUARANTINE 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 g24si4653891pgv.396.2018.03.16.00.46.21; Fri, 16 Mar 2018 00:46:36 -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=pass header.i=@gmail.com header.s=20161025 header.b=rubbfBW1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753241AbeCPHpS (ORCPT + 99 others); Fri, 16 Mar 2018 03:45:18 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:45176 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752014AbeCPHpR (ORCPT ); Fri, 16 Mar 2018 03:45:17 -0400 Received: by mail-ua0-f195.google.com with SMTP id n24so6013354ual.12; Fri, 16 Mar 2018 00:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=LWKCK+T3UrqNyi6sinlj0gRPLRGzZC51Tp28PykVQ/g=; b=rubbfBW1xSTtmfZXM3m+geon4XkZk3XUiCCHdB85nf9XkxJqKjeevHMSYkRpRzAvya kko0nBxYnioZwIPbiWCSg0NMjo0jEzgMTAQKvlA8g4ZOrtYsT0TE5XVYqNcTdxoMbHV2 FWZWNVVlxt+4Y6DUKNtzhD4vRBJCqlGrKEB1PrYlv7fGDUvQE3qIUTKl5sNONMx6YNnc WgSjWOrTspjh5jGJuwobGbX/Wz6VfsnftJ2nXH+rhRfTJewlULh7QSMnwu5iLzRLgok7 OFZVE0nMrSJVrd+UNsZVC64aBHmTZau17lsK5SNzM/4ivxaNN0snDptYbGw0Dg7idKcB Xwiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=LWKCK+T3UrqNyi6sinlj0gRPLRGzZC51Tp28PykVQ/g=; b=ZMuQH2yvWqFNu68VbMi12h8wb3342mLEmbEKUHgFYOk+4OZCRsq0HyCf/F09GniLrb zGQ4jU38By6q7iJCJ+Ia40JYOPhXzaq76HPffBys5EPwl6qXGlKLlyImxLRgP4mWt88w 8sUGBx8Pv0Lf2xa89jc02rdNgi8+3MwnUSg189GrBRnmVqlQ8pT4HO7TLOFEbnwHe4va GRcvwVq1QlATyZMnGov6LjlFYkiH0Fe54x7QchkHfF84su8g4Rp+yPbHAhZEI+UzRoxJ LpN4NxgtWT+PRlV72e6zoOtAe053rROgcSj+mMRL9P9u7ICEIAXz+eCD20akjPUTPJlM Mifg== X-Gm-Message-State: AElRT7GSOnW/TnzPQQvNB8TJRJpnjL3/cq8XaCnZ3oOMAKG1LYZUD8eW KzwqAi4uOUKh8SCg/uqCEtC/tRW/GAAMqaguioA= X-Received: by 10.176.85.15 with SMTP id t15mr518064uaa.49.1521186316166; Fri, 16 Mar 2018 00:45:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.49.66 with HTTP; Fri, 16 Mar 2018 00:44:35 -0700 (PDT) In-Reply-To: <20180301163838.10818-1-greentime@andestech.com> References: <20180301163838.10818-1-greentime@andestech.com> From: Greentime Hu Date: Fri, 16 Mar 2018 15:44:35 +0800 Message-ID: Subject: Re: [PATCH] cris: add ioremap_nocache declaration before include asm-generic/io.h. To: linux-cris-kernel@axis.com, Linux Kernel Mailing List , Arnd Bergmann , linux-arch , Greentime , Green Hu , jesper.nilsson@axis.com, starvik@axis.com 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 2018-03-02 0:38 GMT+08:00 Greentime Hu : > 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 > --- > arch/cris/include/asm/io.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/cris/include/asm/io.h b/arch/cris/include/asm/io.h > index c92712d30f54..3867db75c314 100644 > --- a/arch/cris/include/asm/io.h > +++ b/arch/cris/include/asm/io.h > @@ -20,6 +20,7 @@ static inline void __iomem * ioremap (unsigned long offset, unsigned long size) > extern void iounmap(volatile void * __iomem addr); > > extern void __iomem * ioremap_nocache(unsigned long offset, unsigned long size); > +#define ioremap_nocache ioremap_nocache > > #include > > -- > I am picking up the patch in the nds32 tree that caused the regression. > Subject: [linux-next:master 3188/3885] include/asm-generic/io.h:864:15: error: conflicting types for 'ioremap' > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: eced78aae9cba83072d5335fbc9b2282a9270469 > commit: b3ada9d0ce8d286c8bbbb02fdbddec5036242b42 [3188/3885] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU > config: cris-etrax-100lx_v2_defconfig (attached as .config) > compiler: cris-linux-gcc (GCC) 7.2.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout b3ada9d0ce8d286c8bbbb02fdbddec5036242b42 > # save the attached .config to linux build tree > make.cross ARCH=cris > > All errors (new ones prefixed by >>): > > In file included from arch/cris/include/asm/io.h:24:0, > from include/linux/io.h:25, > from include/linux/irq.h:25, > from include/asm-generic/hardirq.h:13, > from ./arch/cris/include/generated/asm/hardirq.h:1, > from include/linux/hardirq.h:9, > from include/linux/trace_events.h:9, > from include/trace/syscall.h:7, > from include/linux/syscalls.h:82, > from init/main.c:20: >>> include/asm-generic/io.h:864:15: error: conflicting types for 'ioremap' > void __iomem *ioremap(phys_addr_t phys_addr, size_t size); > ^~~~~~~ > Drop this patch due to not supporting cris port. https://lkml.org/lkml/2018/3/13/200