Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3436750ybl; Tue, 21 Jan 2020 00:22:29 -0800 (PST) X-Google-Smtp-Source: APXvYqx91tpcR9w2kCbKgVXwxPXju5uxom0vxLI0viuzHLT/T2h/sd++NPPSb72U6hUIzBXmgcYj X-Received: by 2002:a05:6830:1d7b:: with SMTP id l27mr2505689oti.251.1579594949384; Tue, 21 Jan 2020 00:22:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579594949; cv=none; d=google.com; s=arc-20160816; b=UBTnrfuBdl7u2SfF2XeUC32gpT5V+HpphFuiuPMRQWXyEVBPJtwQPCXyfV8BIiu2aU tUPgJAm5tRZxNi+27fffsBEKCIh7Bq3wfTEOuc8JbUCXTg7IS1NZhUvyw9ldDvNnFjwX t7e9BqIXLIOanbndDGQjtqOftr3xZPcb8gxGIoaePxT+KyCG06g5q0tcxMzFbaepM8Tk vN5wl7sq1TPrKsqSVHFdNHkVqvbtsL83heKLJ7vRnwOTHMGLU6iGIpiIGFezJZAubKsJ ejFpsKlsieYUdqtN8nE3z79DLGzT/w0aI+Y/mxOgKN3lu1TCGzDP1Mx3wLwUtDmwTMSZ SW7w== 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=oGUF+BNPGftCGW3dISgEIF2yqNvo6BJ3zmTHJ4nPG3s=; b=KJMFJAvxptssz6OBqp6P7aPIpX3HQ33jI6qUqiCvT55QN8kObG2BkJbTHspK+AK2bt fthCSL7Zdk4lrsfjXniBk3zStfX8XUo3fQdBFaJV7j5ey3IKmwgRQ46dIWRaPJmE75mm eb/kD60tS+PXzCwjr6vjVhyuQdOYkb0RShXVFFOPGzseP8QJGMDrXVXbLG+IiUkcdACy wmy2Si3lTJctWzaFB35qRToK0TbsLb6Ugc1KpjfH2f4SiOkhh4eeCufGgvA+IOv1JAZB 9BN/KGEv0TgbAPbT+LV5WtjOBpjCeRgpkzpcaWZp0WUEWdGV8//LH1gIVKz9z6HOPMMe hGUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="om3HH/h1"; 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 c19si23572153oto.129.2020.01.21.00.22.17; Tue, 21 Jan 2020 00:22:29 -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="om3HH/h1"; 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 S1728748AbgAUIVX (ORCPT + 99 others); Tue, 21 Jan 2020 03:21:23 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:57055 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbgAUIVW (ORCPT ); Tue, 21 Jan 2020 03:21:22 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4821hb2t7rz9txkq; Tue, 21 Jan 2020 09:21:19 +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=om3HH/h1; 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 51BydYp8UKfd; Tue, 21 Jan 2020 09:21:19 +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 4821hb1p5vz9v0yr; Tue, 21 Jan 2020 09:21:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1579594879; bh=oGUF+BNPGftCGW3dISgEIF2yqNvo6BJ3zmTHJ4nPG3s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=om3HH/h1IIoLi1XQBnSo1OU3BjcuIrUa1xNZFjufyFWs1+fdxZUPsFEUiVXhYzobi KhErHAyC//pTb+n4I82rNwPuGjsHUugx1eAdR2HaaJZPmsp4K/8zQSv8jF4j5ncZzp 6vU1RBtDhUr4z+m33RJ3n6MSuCQiG+yanG5JbDPo= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2C2A48B7DB; Tue, 21 Jan 2020 09:21:20 +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 LAV7Ig-UZZ_C; Tue, 21 Jan 2020 09:21:20 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 729648B7D9; Tue, 21 Jan 2020 09:21:18 +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:21:18 +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 Can you then add a Fixes: tag ? Thanks Christophe > 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. > >> >>> --- >>> 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 >