Received: by 10.223.185.116 with SMTP id b49csp7642483wrg; Thu, 1 Mar 2018 08:41:04 -0800 (PST) X-Google-Smtp-Source: AG47ELsj43GbSZSeINM2rQiXJmfNwg+gKQUaKmM2p9lryw6SH0PzziIbyaXUV9CZH84L/B83NdyR X-Received: by 10.98.82.144 with SMTP id g138mr2499398pfb.239.1519922464414; Thu, 01 Mar 2018 08:41:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519922464; cv=none; d=google.com; s=arc-20160816; b=uL5s6sJBmo3kQ7SigkiiuEj1qv9CTgbOnIK8RNRWk3l0nhWu8pAQd25a6/htmveL3h Ef8oVwoX8hDfN3Sz8q1GW61TRq4fIHMIlfvrzTWEG7pWNwiiurgbhhC4Oxe9CL59ch43 eCebkSpk8uGn6RcaX4DxAhXyura4QEpMSLawJ32C+GUDsxHI04Gi+j9LXr6mCs2xQCse HDDJiu2njeJlypIkt1mhR6qykDx0rORY53+1DOZW05x4dRs26qoLZsP88may84TOk0Ee kMq8J63NuueEvLSIAKNlVdeu3UsWITiwpTR/DaqiDyOLo7JhHTraNJPw7WC6Tyqoploo NueA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=zHwiBI+wLRkR0P7BMnADlJBDF2rNImscs7Aw4EPse7s=; b=DqAAgLs9sO8Hh2GcouW87VUBfB5XVHN7Kju44B5Jst2PQDMlW2wR9b/TfK5qEZIHRy GsO37mxcjQVBPLyvGoHdNlUm1Q08KQbDStumHisk+1CxOGIN9lTqfwB+7hu4NwmGUYVl j6O5GrNtKCOxwlVgYXdG41XbcOvpBEBvO4VOgo7Lj8jiLzcT/+uFwEejjV6Qxaca8LLT 0glFqTZ/Lk7f8zIJ89qDfv0Zze0QZ2qV8+OjSZoqWT1twlo6DO9lVWvbRQ5gZBkqJEah zilmM1iIrE189ZFF/abOwqEDZxp3UPNaF4VW3SSl0peOcntR6f358AtybcmKr1DD1ENh GDSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BgZzuZci; 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 w3si2660284pgb.258.2018.03.01.08.40.49; Thu, 01 Mar 2018 08:41:04 -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=BgZzuZci; 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 S1033186AbeCAQjv (ORCPT + 99 others); Thu, 1 Mar 2018 11:39:51 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33986 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032948AbeCAQjf (ORCPT ); Thu, 1 Mar 2018 11:39:35 -0500 Received: by mail-pg0-f65.google.com with SMTP id m19so2524335pgn.1; Thu, 01 Mar 2018 08:39:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=zHwiBI+wLRkR0P7BMnADlJBDF2rNImscs7Aw4EPse7s=; b=BgZzuZcijXucFO4eKsUb6CvDQLH2xJp0MAuzdkcHlXkh026ozvGsPMgqzyqN/cUJyU /atP/STJRhAQlXsx1ZGCBE+IZ3K9KzbM8spltVyuXWIao18wXx9XdWZ+PiEZeYUDhDww w+qXRTQ5HI9pxyHqGe+1FhxkzpjUIqO84KB+q65ULyeqpUjw3uGsIe10VNmjekPdZl0F 6Bff24yOrKUhZu1BW6/ARw+wzKpDPL+Q0v9uOIGsHo9TOfbjK4ybYTLL8UHUqYmoPaSy TMF1ry0dN5M3hVSsP8TQL4Nm4oQoqUMT6ZZsI0OsuWz/Z7NOwgO1qBjbOmnjWDN50ylA 34Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=zHwiBI+wLRkR0P7BMnADlJBDF2rNImscs7Aw4EPse7s=; b=rqc/bCGb/6wEe/LtvzCt3yRMKroaMHsa5LbdXTbGH/lGsRAIXgs7nJGeFl0mmw3gya fgwS4zhfT1d4IzfCzp95EFhfBcMOpTRP/7wP8lS8pWlDRKQlAIdabKypWSV5UnTObgKD +TTzQqaLwM/jbgqANUMa3UWsretPWQhD8cffNyPwvQbMbhOpzcjCqzQKd9IVIIMnAPK1 KTQnvK1ldGQkBWLROdR2cFq1f/S2+CK12O2Xj22nZc5EiM8ZX2lmXFsF6XMnm9wCBQMV nL7IdFl55kdVWDQz3+mgcSAn5e8bYa38BrY2U0OIuv8Ejf0iEwt9/ncq27mAFOe1alov iqIw== X-Gm-Message-State: APf1xPAJrLiYLfIid9waw8tqVNTcuSmBnq50pR8jvqFtNlLu0ZTJtc/v Mym7ukNtdTVrZMyyo+OP1cg= X-Received: by 10.101.68.193 with SMTP id g1mr1998999pgs.302.1519922374171; Thu, 01 Mar 2018 08:39:34 -0800 (PST) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id d4sm6999045pgv.24.2018.03.01.08.39.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 08:39:33 -0800 (PST) From: Greentime Hu X-Google-Original-From: Greentime Hu To: linux-cris-kernel@axis.com, linux-kernel@vger.kernel.org, arnd@arndb.de, linux-arch@vger.kernel.org, greentime@andestech.com, green.hu@gmail.com, jesper.nilsson@axis.com, starvik@axis.com Subject: [PATCH] cris: add ioremap_nocache declaration before include asm-generic/io.h. Date: Fri, 2 Mar 2018 00:38:38 +0800 Message-Id: <20180301163838.10818-1-greentime@andestech.com> X-Mailer: git-send-email 2.16.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); ^~~~~~~