Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3448337ybl; Tue, 21 Jan 2020 00:38:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwx+pq3D1Ri9k6+l8A+SsKJ430E18YauY4blfUKanSCtErkxSpKRZsjREfFEVEJcGUjduhj X-Received: by 2002:aca:33d5:: with SMTP id z204mr2127064oiz.120.1579595897470; Tue, 21 Jan 2020 00:38:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579595897; cv=none; d=google.com; s=arc-20160816; b=DAIvOs/nVISPEF0Emg1x6enNCzyaOP57U3QaqVYgjtXwHKg2brLEdIOT+JaaonORLE TQJck6IlQIT+blw6czbcoWKLL2AD+uNZysBUJoFpEf8W3nvd3CydRh4fnHNPeXEkcp1b iYSefExCUy0qPECk16TcvmlC+y9Xi9XYB+zQC/YpqlssHnjVB7d/jsdR4KI+rixZeNsB mIr451OM+RWhLOfSQGxJPgW31yZYL79VX9SKB4OW7MqvKq2EAmAO2OnhH9IXlTUZkuXP JBuIl0DiQpm9QqcemZayDAmchaZi7yfsQCAdNGf21D6Ift+qDM8Yi3qLYKCY8tgLL4Ft E4Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=pWuTMOvIrZ5e55NW6SuX7mpcZeq3kBteI+512yICmEk=; b=kcjA8nXC4OqHcro1+DaNr3b6WNa5f5WyNTotg/txCov6lQxS9OoSFTdlmCd2c9L4M3 Yi3cHKQgsbqm5qvxf7QLq83rljvOJwcwnjXYCwYXL21LeQAiCS5uJHBzVkeg5CBDpfG1 yglePCpU/lpLxqxkXMBqgCmJPCs0WxZIfyDauho43RGUcm3YLMV6CKKEJi86F3TNYTsk RKh12raenSmJIZ3reGPGJM9C8FYEOd9SRAp6WdT3s2uXjeoGTRreEPmrvKX0iYLFiyK4 U2IspGFDqagElXvXMTA5Kztj6TBbZQgg523e+eSPCjbm6VYce9OdAcJDa1I/7mhOPwm+ PT/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=vYJPhRPa; 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 i8si20723116otp.254.2020.01.21.00.38.05; Tue, 21 Jan 2020 00:38:17 -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=@c-s.fr header.s=mail header.b=vYJPhRPa; 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 S1728680AbgAUIhL (ORCPT + 99 others); Tue, 21 Jan 2020 03:37:11 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:55485 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728139AbgAUIhL (ORCPT ); Tue, 21 Jan 2020 03:37:11 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48222r2tbWz9v0DF; Tue, 21 Jan 2020 09:37:08 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=vYJPhRPa; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id gKX4BKKZNaEM; Tue, 21 Jan 2020 09:37:08 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 48222r1nMXz9v0DD; Tue, 21 Jan 2020 09:37:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1579595828; bh=pWuTMOvIrZ5e55NW6SuX7mpcZeq3kBteI+512yICmEk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=vYJPhRPa4PwpO2Lpn0rpPnvwd5qCVoDLsK/98O8D06VUkF7nz0YMzO6YDfvBZnHFC ZUpSHzlOFHz5jTl8QTVvKYd3kGrCEUejTSh1ERLdgMz3xpPruS5N3hMoP4EavI6vhI mFIKJqImSrrJ2DP3Cos/mGRPynA+uBt6fEKnYwQY= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 44B3E8B7DB; Tue, 21 Jan 2020 09:37:09 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id AVCj8jgSnr4G; Tue, 21 Jan 2020 09:37:09 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 70EFA8B776; Tue, 21 Jan 2020 09:37:07 +0100 (CET) Subject: Re: [PATCH] powerpc/sysdev: fix compile errors To: =?UTF-8?B?546L5paH6JmO?= , Andrew Donnellan Cc: Kate Stewart , Richard Fontana , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, wangwenhu , Paul Mackerras , trivial@kernel.org, Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, lonehugo@hotmail.com References: From: Christophe Leroy Message-ID: Date: Tue, 21 Jan 2020 09:37:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 21/01/2020 à 07:59, 王文虎 a écrit : > 发件人:Andrew Donnellan > 发送日期:2020-01-21 14:13:07 > 收件人:wangwenhu ,Benjamin Herrenschmidt ,Paul Mackerras ,Michael Ellerman ,Kate Stewart ,Greg Kroah-Hartman ,Richard Fontana ,Thomas Gleixner ,linuxppc-dev@lists.ozlabs.org,linux-kernel@vger.kernel.org > 抄送人:trivial@kernel.org,lonehugo@hotmail.com,wenhu.wang@vivo.com > 主题:Re: [PATCH] powerpc/sysdev: fix compile errors>On 21/1/20 4:31 pm, wangwenhu wrote: >>> From: wangwenhu >>> >>> Include arch/powerpc/include/asm/io.h into fsl_85xx_cache_sram.c to >>> fix the implicit declaration compile errors when building Cache-Sram. >>> >>> arch/powerpc/sysdev/fsl_85xx_cache_sram.c: In function ‘instantiate_cache_sram’: >>> arch/powerpc/sysdev/fsl_85xx_cache_sram.c:97:26: error: implicit declaration of function ‘ioremap_coherent’; did you mean ‘bitmap_complement’? [-Werror=implicit-function-declaration] >>> cache_sram->base_virt = ioremap_coherent(cache_sram->base_phys, >>> ^~~~~~~~~~~~~~~~ >>> bitmap_complement >>> arch/powerpc/sysdev/fsl_85xx_cache_sram.c:97:24: error: assignment makes pointer from integer without a cast [-Werror=int-conversion] >>> cache_sram->base_virt = ioremap_coherent(cache_sram->base_phys, >>> ^ >>> arch/powerpc/sysdev/fsl_85xx_cache_sram.c:123:2: error: implicit declaration of function ‘iounmap’; did you mean ‘roundup’? [-Werror=implicit-function-declaration] >>> iounmap(cache_sram->base_virt); >>> ^~~~~~~ >>> roundup >>> cc1: all warnings being treated as errors >>> >>> Signed-off-by: wangwenhu >> >> How long has this code been broken for? > > It's been broken almost 15 months since the commit below: > "commit aa91796ec46339f2ed53da311bd3ea77a3e4dfe1 > Author: Christophe Leroy > Date: Tue Oct 9 13:51:41 2018 +0000 > > powerpc: don't use ioremap_prot() nor __ioremap() unless really needed." > > And we are working on it now for further development. That's pretty surprising. That commit didn't change the iounmap(). It only replaced ioremap_prot() by ioremap_coherent(). Both are defined in io.h Christophe > >> >>> --- >>> arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powerpc/sysdev/fsl_85xx_cache_sram.c >>> index f6c665dac725..29b6868eff7d 100644 >>> --- a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c >>> +++ b/arch/powerpc/sysdev/fsl_85xx_cache_sram.c >>> @@ -17,6 +17,7 @@ >>> #include >>> #include >>> #include >>> +#include >>> >>> #include "fsl_85xx_cache_ctlr.h" >>> >> >> -- >> Andrew Donnellan OzLabs, ADL Canberra >> ajd@linux.ibm.com IBM Australia Limited >> > > Wenhu >