From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21009C433DF for ; Mon, 18 May 2020 10:33:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F14E32081A for ; Mon, 18 May 2020 10:32:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589797980; bh=FoTk8zGbyQhLWnQF+6rWBcKNCczuvfeAk/nbxrmO/Ag=; h=Date:From:To:cc:Subject:In-Reply-To:References:List-ID:From; b=D6iREdlv727c9Fm/b9dnz5dEyOYS4/oL8PryCl5sg74xK1cuBdg6wkkNuSZTh+XaN xVhnMN9EPhy00rlEcK9KMIzw0g2hMPkdAJ2QNEHs5ANRySYObFX9/Qmy0gMf2FitPF c+dDKymsZqNF3TJJal8slBsUotMJTSA3BoiUhMr4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726494AbgERKc7 (ORCPT ); Mon, 18 May 2020 06:32:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:34286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbgERKc6 (ORCPT ); Mon, 18 May 2020 06:32:58 -0400 Received: from pobox.suse.cz (nat1.prg.suse.com [195.250.132.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A6956207ED; Mon, 18 May 2020 10:32:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589797977; bh=FoTk8zGbyQhLWnQF+6rWBcKNCczuvfeAk/nbxrmO/Ag=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=rScxuk1uhjeA7R0gJmBaGzaZdn7rhVquPJ/JiSKJMjHCd5r110YAA7L/YaRRR7ikB MXZfmn0V0xzCp1hRp7QzeFoobRXgnV3FsmZw1hTGWnlFw6NUBpU6DJ/Lp7zsG8otb0 ld2XsF3bHH1bD0pLERZGzeN/FYLSzqqoSN6WWHKc= Date: Mon, 18 May 2020 12:32:53 +0200 (CEST) From: Jiri Kosina To: 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 Subject: Re: [PATCH] powerpc/sysdev: fix compile errors In-Reply-To: Message-ID: References: <20200302053801.26027-1-wenhu.wang@vivo.com> <62251ec1-dd42-6522-dcb2-613838cd5504@c-s.fr> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Jiri Kosina SUSE Labs