Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2612719ybk; Mon, 18 May 2020 03:39:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUl4U6nVw/0Yu8hZMxEwYnrhm9IWN9/wluCP/qeKGGE9PQRsX0bgznbp5l1/pdHsjK2nxb X-Received: by 2002:a50:fe06:: with SMTP id f6mr11369039edt.125.1589798374452; Mon, 18 May 2020 03:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589798374; cv=none; d=google.com; s=arc-20160816; b=ZzJinJjDsBKpSWXQogOX0yT5AzX+Z78ohwPV0TvDvcCyZzgP/1du+waFrjTp6G3Toi jEGiIwqxmXruiGVrNxKI35BmAyYEkZHLXx3p8dqRxq7b3fDdFdPGXL7aGyN/5ecEFizm DtK57ifwF32sj9qAI/ZUQ0FGIDcCeDDv2a6VhdUg5qN1DWo8wmRo8P7n0ThgbxmsxenP OqCPpPeRpjyk1jtDC1hS2MQzSsbRHy0cNrxYQhSwq93eMkFOCHVGxMyG7wQDd1JIjK6i LDv2X2CzgI7AhigzT8XhlbMi1uswgLTLIsyOXmeVN+WPNkBKXwpHYPIG+rlWK7oCrVbe JMwQ== 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; bh=8r0acc5HEGEOABbQp258rJf4ilBqOyOMUAF+fCHM8Dk=; b=zTNsdUDDlJzoQ6J7OCyKaeEMa79aBpbyQKcPoDN5TsDIqLRS9HYYYzB4yTghf+FvQX Koeoq6mGR07Ln7YkF2BrhNd0ETZcdbiH8+l95F2u9/8XpFzWQK5QAZmkmM6T2i0lmbL4 7VnhSWDAYHYAAEim+tkfXl4kkm6mY8SckvdB/ib/kQLasSilE+WzTxzBq2RI5S8b2waP qJW35dOCIbslXn9KXM7R0a80+CrMSVpOJWMR+l60TdnO7rI1L5cUnHpAIBcaLvyhRAHw opzDx24LB84566TA2SlXFpMxgenR3Xf28zvwpV1fHsqaj+Cy3u6/lIvLWdq6ZJ1cwMai Wixg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id si3si6101209ejb.5.2020.05.18.03.39.09; Mon, 18 May 2020 03:39:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726499AbgERKhB (ORCPT + 99 others); Mon, 18 May 2020 06:37:01 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:38755 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbgERKhA (ORCPT ); Mon, 18 May 2020 06:37:00 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 49Qb6W1q99z9txc5; Mon, 18 May 2020 12:36:51 +0200 (CEST) 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 aoBlJkWUGX65; Mon, 18 May 2020 12:36:51 +0200 (CEST) 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 49Qb6W12mbz9txc4; Mon, 18 May 2020 12:36:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A6DC38B76A; Mon, 18 May 2020 12:36:57 +0200 (CEST) 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 ure_5nwPKksx; Mon, 18 May 2020 12:36:57 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 91A498B796; Mon, 18 May 2020 12:36:56 +0200 (CEST) Subject: Re: [PATCH] powerpc/sysdev: fix compile errors To: Jiri Kosina , Christophe Leroy Cc: 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, wenhu.pku@gmail.com References: <20200302053801.26027-1-wenhu.wang@vivo.com> <62251ec1-dd42-6522-dcb2-613838cd5504@c-s.fr> From: Christophe Leroy Message-ID: <494faa28-e994-14e9-71da-07f5214b4579@csgroup.eu> Date: Mon, 18 May 2020 12:36:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 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 18/05/2020 à 12:32, Jiri Kosina a écrit : > On Mon, 18 May 2020, Jiri Kosina wrote: > >>>> 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 >> >> As this doesn't seem to have been picked up for linux-next yet, I am >> picking it up now. > > Only now I've noticed that this is actually a dead code o_O as this file > can't be built by any combination of config options. So I am dropping the > patch again, but why do we keep it in the tree in the first place? > There is a series aiming at making use of it, see https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=172421 Christophe