Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1958469ybh; Fri, 13 Mar 2020 10:21:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuzZpX3xiufrl8aESD/K3aubF5FwmyplvQNytZA6TCrxza3Sb/rcyc4/hVwB9fcgH4r2mpl X-Received: by 2002:a9d:6ad9:: with SMTP id m25mr12218979otq.119.1584120100553; Fri, 13 Mar 2020 10:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584120100; cv=none; d=google.com; s=arc-20160816; b=PbeWIPrYpMQjsfQi4OUmAnnhxmxjyefoVYKFA+gtDcP+Kf7qwYaau1Pzd+xK18QT8X hS1pwoQJJTPbocplCoOZZ2crx0mFX0XijzICyEcsGizioLcHEzRKnT46I7I4UPSN0bR4 XPwMJbTE+IGOmcboy168U+F3an6q2w4VFCgVfgEq4zJFJMuHbYS4hOZV3XecpkP1rcjx Ff53BZ5zizehEOEti/lFckc+VL1vOKfU+c2zwH0o7ruy2Rwyj2ZPuwzh0fkoJFmi5MCq wvsT38Hu5TtMmnQes1xWqmI9r46g9yZb2MCFjsWv0DjjKy8YL8HtkWuUyUsT1ASl5OlV WrSw== 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=oe2RbmNMgVeamzCiAiSZaQbnIOR9Qq8zE78SJyN2d1k=; b=yVHcvfJlIMOaYIYzB8uzysZXfRHt5kCUeZQ2Kb3XtlSSdW2inQ92iYqWmGwYNBkrs7 mBj7fPTaKWpBJeScFe5pZvPd+AiQApWl9uxtV+ppan17GK/n6K1xax6DzaPhUKog0+nl xtElZigbHQWrA6mGRu5GN7o3ySU38gwhg0ZhS8erMFYyue7XvHp4j/m1/EzpZu308ZDw HXmRyAluO5YSmUemkGV9ULu1HdHz8lCMqcHhp27IHwz+038i0yJuQTtYG5Tx+gQq0hTG o6suEDvoEzftzeWQn52p/tB6qFneKrFL8yAbXqutiIPvldyIVq/r89Q1ncuGE7eMfuIQ fTvg== 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 i2si5114029oth.186.2020.03.13.10.21.27; Fri, 13 Mar 2020 10:21:40 -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 S1726885AbgCMRUV (ORCPT + 99 others); Fri, 13 Mar 2020 13:20:21 -0400 Received: from m17617.mail.qiye.163.com ([59.111.176.17]:49280 "EHLO m17617.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726706AbgCMRUV (ORCPT ); Fri, 13 Mar 2020 13:20:21 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.227]) by m17617.mail.qiye.163.com (Hmail) with ESMTPA id 22AF0261556; Sat, 14 Mar 2020 01:20:03 +0800 (CST) From: WANG Wenhu To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , WANG Wenhu , Richard Fontana , Kate Stewart , Allison Randal , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: trivial@kernel.org, kernel@vivo.com Subject: [PATCH v2] powerpc/fsl-85xx: fix compile error Date: Fri, 13 Mar 2020 10:19:51 -0700 Message-Id: <20200313171953.63205-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: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZTlVDTUJCQkJDQ05OTkJLQ1lXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Ngg6MBw4LjgyLDA0IzoQGU4x K0gwClZVSlVKTkNPSklLS0tMQkhLVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlMWVdZCAFZQUlCSEs3Bg++ X-HM-Tid: 0a70d4e904379375kuws22af0261556 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 Fixes: 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