Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2171886ybh; Mon, 9 Mar 2020 00:05:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvdMSlyK/GyFDxLVIs98REW5qTvj5/lYVE6XJnQukjCKTkLua/11SL/gNQwDJ7yOLnG2TeB X-Received: by 2002:a9d:1a4:: with SMTP id e33mr6599616ote.343.1583737503012; Mon, 09 Mar 2020 00:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583737503; cv=none; d=google.com; s=arc-20160816; b=n+38Uhj4/Q8Juo+Rgkm6be3qIEC4e13VyP5LEa7dvo7I7w0TlVf/hu3FAwsMdPebTh qiAD4CeSxv24ICZ+2zlF+oqHIKNuj1YZpfXlUMOBqnzpUiBsywnjbykp6OtkX3EVkMz4 5RXL+KumgihvAMVSkeM6iq11FlgKRZMstuLaoGqzhlx3Mhy3EVdrhDjRfXmdLAOzdxhy 94vcstCHB9UKxi5v3C3zpf4FR/+twZKUltijwL3Vyyrp+GjtfrefVfB6JX6Qs+vAi67a zrICu0AcWASFqwhcxqoDcJNU477670bo34N3ibtCo2dfGnevV658iQ2H2FSo9/Z6RwFE PuAQ== 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:subject:cc:to:from; bh=ksjFtTYy3AJSQtkW1UBPvcSnwdEfpNTlumL50Xz6v5c=; b=MaNsCxfioZuey5XEos27re1kbkED7CAowIddUTwsgUU/IWmZfbPFq9ofjyD9JF56yr nZ9TcZ1JkMDvu6iiFV3IZEWlNGiiEYQUoer+atA8xeuz6Zj0+JxCPZiHFmTuc7S+r0HX Xgf+ecrBBBuHgDWxl3NGw82vdWh40KLxSwjjbUyGJIr9psdas91Uybc2CNLPPtHRT89i pK0g/uVy8cAiaEVYwEZPLqhzJgKOaIOP9/E/ZwgF76VTEEUysjaDHqEQxFmZQYJdiBrj K4Mrq8JLbQnBsTXCDzzuHiKiSu3mVEuXz61nRP3eSxFrKL1749AoC7mDJAJ69jj0NV3Z Gqbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y17si2901445oto.70.2020.03.09.00.04.50; Mon, 09 Mar 2020 00:05:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726383AbgCIHDz (ORCPT + 99 others); Mon, 9 Mar 2020 03:03:55 -0400 Received: from m177134.mail.qiye.163.com ([123.58.177.134]:61130 "EHLO m177134.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbgCIHDz (ORCPT ); Mon, 9 Mar 2020 03:03:55 -0400 X-Greylist: delayed 792 seconds by postgrey-1.27 at vger.kernel.org; Mon, 09 Mar 2020 03:03:53 EDT Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17617.mail.qiye.163.com (Hmail) with ESMTPA id 8610F261D10; Mon, 9 Mar 2020 14:49:37 +0800 (CST) From: WANG Wenhu To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Thomas Gleixner , WANG Wenhu , Kate Stewart , Richard Fontana , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: trivial@kernel.org, wenhu.pku@gmail.com Subject: [PATCH] powerpc/fsl-85xx: fix compile error Date: Sun, 8 Mar 2020 23:49:22 -0700 Message-Id: <20200309064926.27107-1-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUlXWQgYFAkeWUFZTVVITkxCQkJDS0pNSE5MT1lXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Njo6Cgw6ATgzEj0YGUIpTDcZ HiFPCy1VSlVKTkNITEhNTkNLS0NNVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUlDSEs3Bg++ X-HM-Tid: 0a70be0e5fb09375kuws8610f261d10 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 while compiling file 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 Fixed: commit 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: WANG Wenhu --- 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