Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2609988ybk; Mon, 18 May 2020 03:35:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl9xrASaX4nSCsils0gcb1VEwTu2fFQn1C4octElMfcKxpYKpkDKQIzJy9mkshpVVTKjP1 X-Received: by 2002:a50:e696:: with SMTP id z22mr8773209edm.231.1589798102072; Mon, 18 May 2020 03:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589798102; cv=none; d=google.com; s=arc-20160816; b=Sfw5ZpGRhvCpiWGDG71VMS1NGCQNArQVNiJ4unGFN61KV7NRyMOZnY29/3fMLQb0cO Ks+BsbgUyqYtLhtqxzljtgMeerUUaW6n/hQQ1kYW9vcsbIZekW3N2gvbpELiFW9qDRLQ qNkdn9LAEKlAqm8bC83p5Bg/NdxpRd4lg/cOE8q3oF2Bd4dGvvymoHHD27z6hNQnfEQu 4o6Um/xDC2kzFHdA2WFNPQ4qmrY6vKfg9fl9EXYgnKdtlt8xuJ0UAwvp/th3NmHSMBVc WIHt7OwwEa4rCFcwwI5xsp16MFtaTRglosusKaJT9IFfxmL5Nl8ncEPT4NSVUvmUy65/ ONiw== 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:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=uXIYMdpsoKcsIR5YeJCrkHWD2k2mulEoRV5Q82ZAgyI=; b=v/29uBQcBvLfDEvvYJuNMQS/vtN+zHE9VBcJZ3gNYgUzmhiH280oStS7d5IJH1RhuJ UL8v2Q7VBeLwazDhSCVSD/NsgbZwAwdDgvY8KqxIglYw8QqPzu5xiWTF7M2ZUHJlD8Wj yose0ledCmbAN8eJ73EaUVo72ybmQAI5JEmSXxb5vgnyjHNQdTEFqfAEVZPQ21RnBkuH 6mq+qgkR4YxMVDLXirEq82JzMsVy9dFM/Q5WmU0cinOMsRWihObh/KvrfnWKWaXsOHuq 8+dTrMm+wNseKaTQZSeiJGgMytBdap/IV57KVoIq+xcwnGcrTEbhWEdjfIAxzjbFg4lv BjJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rScxuk1u; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pk4si6392043ejb.118.2020.05.18.03.34.38; Mon, 18 May 2020 03:35:02 -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; dkim=pass header.i=@kernel.org header.s=default header.b=rScxuk1u; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726399AbgERKc7 (ORCPT + 99 others); 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