Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1408225ybz; Thu, 16 Apr 2020 08:38:46 -0700 (PDT) X-Google-Smtp-Source: APiQypJJEn5uBPb+QUm3Vo7nwUepjTqAo5Rm4ubv6GhXGAo9E4ECl88WdqgpTjtBSS6UMTjWgmyA X-Received: by 2002:a50:8a03:: with SMTP id i3mr30754920edi.121.1587051525816; Thu, 16 Apr 2020 08:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587051525; cv=none; d=google.com; s=arc-20160816; b=LBWw5fFmSuUKz6UH10scpigDrRnq486jN+FwMGP7A1Ypvppvyf++dIW25YCfOFPYbg WkS/pPdGJIoKfrDF3J9YgZimaYeaTUVxmNczCuPurCRExf05iNjmqIuUHd9oszRdJbYM v8mTE7DwEHyCtlIctPpeRLR7GpPrH1Wv0qgmELFeCLP2kzivx/q3xW54mOcY2O5N409s zhmZpWSxW1sBmratWE7l1w22Xy/ZfChfcIJD9LZDpSdoXmcyTGJFOvWQUIvs68bOYCmL XNAEJQMJVLeVbvZD/mPsL1bfL6y4vRfYInyHMYa2niDn1OtvBCbi+pJEEY5sqvF0LLQW ik9w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=tqDwTagJc7suQCZUIDfJHwNleTx5b/wMd/CJjFiVIhs=; b=V4D4xHzU0U+5R7iS9iu48rzcaggxeI+++gtu/P3myNwIGVoIS9f2N8UvQFDcBwV/S8 MYuO0Oz87dP/0XzudwSvrYuaqhCshJCb2pc29E0Y+/6iVHqjZxZ6SzlM+V1DOVbSjDgh 7g9a4HiMPgR0ka3qCI1f4ZtE4dEJjMuUkt8HhmWGO+Z31EdHExrJgCBWDKKt0roM8mpT MtWBhs4RNdzQkmgbm8UhSnnsC9sPsPYj8rO8faMBxWjmkQt7YGSsTWl64POzJfn1E+xG l6eQFy1r+SXrm0CG3cDGsoUwbLzZYxFFn83T1erOVpO/x31aDgtJnCOZ5iu4kELM3h9G QHRw== 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 r28si7736901edi.545.2020.04.16.08.38.22; Thu, 16 Apr 2020 08:38:45 -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 S2635052AbgDPPgN (ORCPT + 99 others); Thu, 16 Apr 2020 11:36:13 -0400 Received: from mail-m127101.qiye.163.com ([115.236.127.101]:3786 "EHLO mail-m127101.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410327AbgDPPgA (ORCPT ); Thu, 16 Apr 2020 11:36:00 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by mail-m127101.qiye.163.com (Hmail) with ESMTPA id 229B94772C; Thu, 16 Apr 2020 23:35:54 +0800 (CST) From: Wang Wenhu To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, oss@buserror.net, christophe.leroy@c-s.fr, linuxppc-dev@lists.ozlabs.org Cc: kernel@vivo.com, Wang Wenhu , Michael Ellerman Subject: [PATCH v4,1/4] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr Date: Thu, 16 Apr 2020 08:35:34 -0700 Message-Id: <20200416153537.23736-2-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416153537.23736-1-wenhu.wang@vivo.com> References: <20200416153537.23736-1-wenhu.wang@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVKQ0NCQkJDQkpJQ0pKSFlXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Pjo6KRw6ATg4Dg9MPUINTkIS HRoaCkJVSlVKTkNMS05KSE5PTkpDVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUhLTEI3Bg++ X-HM-Tid: 0a7183a1d9219865kuuu229b94772c Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Include "linux/of_address.h" to fix the compile error for mpc85xx_l2ctlr_of_probe() when compiling fsl_85xx_cache_sram.c. CC arch/powerpc/sysdev/fsl_85xx_l2ctlr.o arch/powerpc/sysdev/fsl_85xx_l2ctlr.c: In function ‘mpc85xx_l2ctlr_of_probe’: arch/powerpc/sysdev/fsl_85xx_l2ctlr.c:90:11: error: implicit declaration of function ‘of_iomap’; did you mean ‘pci_iomap’? [-Werror=implicit-function-declaration] l2ctlr = of_iomap(dev->dev.of_node, 0); ^~~~~~~~ pci_iomap arch/powerpc/sysdev/fsl_85xx_l2ctlr.c:90:9: error: assignment makes pointer from integer without a cast [-Werror=int-conversion] l2ctlr = of_iomap(dev->dev.of_node, 0); ^ cc1: all warnings being treated as errors scripts/Makefile.build:267: recipe for target 'arch/powerpc/sysdev/fsl_85xx_l2ctlr.o' failed make[2]: *** [arch/powerpc/sysdev/fsl_85xx_l2ctlr.o] Error 1 Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: Wang Wenhu --- Changes since v1: * None Changes since v2: * None Changes since v3: * None --- arch/powerpc/sysdev/fsl_85xx_l2ctlr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c index 2d0af0c517bb..7533572492f0 100644 --- a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c +++ b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include "fsl_85xx_cache_ctlr.h" -- 2.17.1