Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1960054ybf; Sun, 1 Mar 2020 22:39:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxFHI9GJz/B8UODh7RF5jf7zDcTcIyCUYfer0xzykUSGIk5zoimJTwbFPFf3ep5l6im+FgR X-Received: by 2002:a05:6830:1d6f:: with SMTP id l15mr6186038oti.299.1583131172534; Sun, 01 Mar 2020 22:39:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583131172; cv=none; d=google.com; s=arc-20160816; b=scIH2gR9HS2LgFujZt7ge3MJEZAhPztdqOU+kgwbR4wVDnfOaSSmhuVAzWiKCkkWOe ynfiVYthVYOb4LWz0LKiL7vRj6GC2Sd8JldeubtoI77+Oxwche63Lsx57XmAe093rESg ruRWgm+zqteO8rOPUXcOVeyf+Y1V+ELc166d83RrlHlATUTZxgKf+eOFFDhdMpJPRTgq 78o85ZJLIz9kMKBZ9P+FcLD/LfcM0xfL6uGfV8lHbHQwsZRmgV9F2tLmD5B4MKnLSbwE pg9taKysMBLSSJ2IYIU+fWL4swpQdjMegMVDMKpKL/0NzXDwvsa3zcTrOco2SkoGLWxN EmzA== 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=N5Zqhy9GX98vBukvVYdHhi3AGA4xgTdqzzXq0Yk+kDc=; b=MUDr2COX2WUv5hgoAIw7C1SmZDkyiq36f8grCw8ChrDFz+bVZpDOI8UIsStgjDsKg7 rstK3rYhQfJ+g5QG+7awRA5I0FBQUoYJqSR1P26qI7FJmj2fMJ5tSdqJZ6PNcRKg2xwd 1OSZJSQspXkErHAQluUmSDmuYwdcF/mvgWvuc7HvQ3ywWakuLoBKMRr31BwiWHRGsE/A LZQMAQM8/V9zGUTsOhXjrUtyOf2fSpAc8PNuG7nJnGHjArC/D+k+7qs4jvolgnFumHUB 7wFW76SowNN/IBWs4V4bGBjTnh3vEebplOc29bIOC3UxhsiU+t6BsZjIrzeid0wa+GKM Itdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=oSz5S7kY; 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 q25si6505143otg.128.2020.03.01.22.39.19; Sun, 01 Mar 2020 22:39:32 -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=oSz5S7kY; 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 S1726621AbgCBGjB (ORCPT + 99 others); Mon, 2 Mar 2020 01:39:01 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:16436 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726204AbgCBGjB (ORCPT ); Mon, 2 Mar 2020 01:39:01 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48W9TV4TMwz9v0wq; Mon, 2 Mar 2020 07:38:54 +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=oSz5S7kY; 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 7EtWmBgG6SHY; Mon, 2 Mar 2020 07:38:54 +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 48W9TV3Nwbz9v0wj; Mon, 2 Mar 2020 07:38:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1583131134; bh=N5Zqhy9GX98vBukvVYdHhi3AGA4xgTdqzzXq0Yk+kDc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=oSz5S7kYIpq/S2GkRvO3/u1ec0jd0jGZ6JphG6qdC3YLxcAjB8Yw7m4bINUjkYJq9 ansn60dqfjQ2jB3DYikKqHP0jRkiHE4zFkbufuPGle+GYJZinjIVjbCowO2RsYki9A hv47Y7d15aosDKuaZJwAMbf51gErEhkoZ32AxjIw= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 027E88B7BC; Mon, 2 Mar 2020 07:38:59 +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 cnGJxBH8ofD8; Mon, 2 Mar 2020 07:38:58 +0100 (CET) Received: from [172.25.230.100] (unknown [172.25.230.100]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BEE338B776; Mon, 2 Mar 2020 07:38:58 +0100 (CET) Subject: Re: [PATCH] powerpc/sysdev: fix compile errors To: WANG Wenhu , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Kate Stewart , Greg Kroah-Hartman , Allison Randal , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: wenhu.pku@gmail.com, trivial@kernel.org References: <20200302053801.26027-1-wenhu.wang@vivo.com> From: Christophe Leroy Message-ID: <62251ec1-dd42-6522-dcb2-613838cd5504@c-s.fr> Date: Mon, 2 Mar 2020 07:38:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200302053801.26027-1-wenhu.wang@vivo.com> 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 02/03/2020 à 06:37, WANG Wenhu a écrit : > Include linux/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 > > Fixed: commit 6db92cc9d07d ("powerpc/85xx: add cache-sram support") > Signed-off-by: WANG Wenhu Reviewed-by: Christophe Leroy > --- > 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..be3aef4229d7 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" > >