Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2648826ybk; Mon, 18 May 2020 04:39:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc8BRSbFdknnApZmPakZv1v0B92r26+H1RCecLdi2HbwTf/vOQHcCeeJwKKulrxqSX8Lwy X-Received: by 2002:a50:c60a:: with SMTP id k10mr6773555edg.326.1589801954621; Mon, 18 May 2020 04:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589801954; cv=none; d=google.com; s=arc-20160816; b=XS1eJTstTyrLK1qSQ8LoC6eaCS3yNPecQPoe3Llyu05RvNjEZ6Cn57qTGqL4tKfFf4 mDhj/KntBpzDYvC4FoEknr7KUm79v7FBvUKLluqzMDTXdfbKW2ko1rgYM7WcU8dMV1iA +svjM+aoPj4a/R2tOCnIc6+UrmCdnTc07057EmNKmHZghFOcbUyePBOVRu21/196AfVj aQ+IFI8R6rmWi/7y4Imhx29rMHUKf7gVcUWBK+muR+lTEftT/4lsYrIQ6PJLZbdiomyV y+3DkdLCcT4rZNCxq0+uO0Ay62ydA0dozL2nBic90kn9dLKHohmYjIMggnuJbnTvCKi6 iO/Q== 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 :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=WGvBhYyn57tsx/mOegyewb5s25GiufgJHF8aUQp3Vtw=; b=J0doAQGwbtOADC89HO9XdgcPtobiyVakpYWy2sWAzBPrPNxD2Hc41QD22gsqd1swjq 3Xz8BYST+Yen6p15bo1QwciVpGux8QyvgDJVyiRAV86TtepA4Qq/Dh2qFMigbzaFdBXp TdEjj+95+Cyph3lOr9GEXi1hv+eriuNAD95LsbnerpTcn2P29W2fWGip0LtNK2PQHEJj vGfKuFl8PE1CaAXSk7+9/yPF4037JQX9pr65Zt5h4s5vGmrkQ5dEcZJ0sPkUakL9pZ1+ Zm36SMbjXa4Dz8+hHFj0+1uRxsYKupY0X5VEJYyvKA/dRh3x6GqHNLvwpxMMPbcVvPa6 K+nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=c2mKFEGd; 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 v22si6236130ejx.259.2020.05.18.04.38.46; Mon, 18 May 2020 04:39:14 -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=@ellerman.id.au header.s=201909 header.b=c2mKFEGd; 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 S1727033AbgERLhS (ORCPT + 99 others); Mon, 18 May 2020 07:37:18 -0400 Received: from ozlabs.org ([203.11.71.1]:58779 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbgERLhR (ORCPT ); Mon, 18 May 2020 07:37:17 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49QcS93j2Jz9sTC; Mon, 18 May 2020 21:37:13 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1589801835; bh=sVwnIBZtE1XIU+cSVfb2AfLRaR5qbpYzuQwbYj/q+m0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=c2mKFEGd8gslESqqwyOhLqXMUh1eHhIqYtyIVao0KterI88UjafJ4vhk7YLcftmkE l/ebSBzr+IGn3Gg2bWU/4jX8nwYGdbRLjLZe0AyMQGT83o0J5GVTbHTSiN6ORWijcV iRJj78qVj1nnHPNiqYkHqniyOg5cqG1aIrrwLXJJycCaF3AFQCd/ypHTYp8vXSh+7l YdqArB4aSFZVZPLbUaHV+7iP/Td0Z5wJQxukfEwezPiUh5OIIUfdPfmKslafDJW7bR AzLYDJFulCwRUubVjFb4mmd4V6D6gse8kgdnv3eL8yFJNzQ4Z4haIHeo6S85v7OnGr UMA3Br6o/ybWw== From: Michael Ellerman To: Jiri Kosina , Christophe Leroy Cc: WANG Wenhu , Benjamin Herrenschmidt , Paul Mackerras , 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: References: <20200302053801.26027-1-wenhu.wang@vivo.com> <62251ec1-dd42-6522-dcb2-613838cd5504@c-s.fr> Date: Mon, 18 May 2020 21:37:33 +1000 Message-ID: <878shpa2yq.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jiri Kosina writes: > 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. >> > >=20 >> > > arch/powerpc/sysdev/fsl_85xx_cache_sram.c: In function >> > > =E2=80=98instantiate_cache_sram=E2=80=99: >> > > arch/powerpc/sysdev/fsl_85xx_cache_sram.c:97:26: error: implicit dec= laration >> > > of function =E2=80=98ioremap_coherent=E2=80=99; did you mean =E2=80= =98bitmap_complement=E2=80=99? >> > > [-Werror=3Dimplicit-function-declaration] >> > > cache_sram->base_virt =3D ioremap_coherent(cache_sram->base_phys, >> > > ^~~~~~~~~~~~~~~~ >> > > bitmap_complement >> > > arch/powerpc/sysdev/fsl_85xx_cache_sram.c:97:24: error: assignment m= akes >> > > pointer from integer without a cast [-Werror=3Dint-conversion] >> > > cache_sram->base_virt =3D ioremap_coherent(cache_sram->base_phys, >> > > ^ >> > > arch/powerpc/sysdev/fsl_85xx_cache_sram.c:123:2: error: implicit dec= laration >> > > of function =E2=80=98iounmap=E2=80=99; did you mean =E2=80=98roundup= =E2=80=99? >> > > [-Werror=3Dimplicit-function-declaration] >> > > iounmap(cache_sram->base_virt); >> > > ^~~~~~~ >> > > roundup >> > > cc1: all warnings being treated as errors >> > >=20 >> > > Fixed: commit 6db92cc9d07d ("powerpc/85xx: add cache-sram support") >> > > Signed-off-by: WANG Wenhu >> >=20 >> > Reviewed-by: Christophe Leroy >>=20 >> As this doesn't seem to have been picked up for linux-next yet, I am=20 >> picking it up now. > > Only now I've noticed that this is actually a dead code o_O as this file= =20 > can't be built by any combination of config options. So I am dropping the= =20 > patch again, but why do we keep it in the tree in the first place? Yeah, sigh. As Christophe pointed out, it has been dead code for a long time but there is a series in flight that's trying to make it usable. cheers