Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1511041ybz; Thu, 16 Apr 2020 10:25:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLnYVqtJWUYzDlEsuQM4AWtPs7zC/5NpXVspapcfqAPpuf74jYOGZ/Dzehn+8fNUzKT7WaA X-Received: by 2002:aa7:c352:: with SMTP id j18mr12795173edr.196.1587057904818; Thu, 16 Apr 2020 10:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587057904; cv=none; d=google.com; s=arc-20160816; b=FAfdN8gK5CqOlGQym5imYhyGMcccg9iTGf9ifQpFYlUDtdIQGM4kaHL2rBGwJPdBLS qk9A9ZVkiQ9ez3b/eERAJ0Jyq3UNxMVrBJWN/2GWDZNrirRluEJjeWVG2trP+sWJsf9V PlYQkxVAzICx5V2YJ5/e+eUHayOz+vzrpxrPp5OTHAzVsyMhr97QIeUw7EA72mCwgRd2 +vgfEicqeBC7guhB0ze1cChbjgF1m60a2rNK4OM5sFVdIPKpSOROw1uNeVa0Q2WupSeN vBtt43MTka3fH2RB60wwrkOR5wKZuQ8DCSSiBqrrn3VeLx8QLvXXUMYPS5+Ldr9WQox1 sn5A== 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=I9NtCvlSKl2bJBp6hBQjPuPbqDwcIvBXR1B14d9YkEM=; b=0c7VjiEaa8RVCRrloEeyIEjALKbAxf9UtdYj9ln9kFB77txd/HZ2hlHMR5E9nw8uQK s1NZBMSzCgUPheHDHAlwg2Zb8Fm6+rhvgFOmRdM4AoT+7hFyesvj6sG91AdLOjMlpeb/ RdwIbC//bWhvwXlPN+L6B2psyZHyhwoFtMzR+Asxlt5h2HbYsNDKzCXIWzmMvDLm0gcM 0tluOK98x//fIONEQTFkJuZ1GPu/K/tpVtVhEr7H30DrVY0ov4VGRzRXMvJjw6HJ3rxK guLfEC2IHR/onTNFz9s9//c4jPSe6mkNRdOXho75Fr2y6grQouzThmD+8fpSW2rEq1Qf DU4Q== 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 y5si15153822edm.492.2020.04.16.10.24.40; Thu, 16 Apr 2020 10:25:04 -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 S2633722AbgDPLd5 (ORCPT + 99 others); Thu, 16 Apr 2020 07:33:57 -0400 Received: from mail-m127101.qiye.163.com ([115.236.127.101]:1189 "EHLO mail-m127101.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2633505AbgDPLdP (ORCPT ); Thu, 16 Apr 2020 07:33:15 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by mail-m127101.qiye.163.com (Hmail) with ESMTPA id 49AF3483C3; Thu, 16 Apr 2020 19:16:46 +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 RESEND,v3,1/4] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr Date: Thu, 16 Apr 2020 04:16:06 -0700 Message-Id: <20200416111609.4191-2-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416111609.4191-1-wenhu.wang@vivo.com> References: <20200416111609.4191-1-wenhu.wang@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVDSkhCQkJDQkpJQ0pKSFlXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6KzY6GQw*AzgrMA8#EQgiEgIi Tk0wCRpVSlVKTkNMS0hOQ0tNTUJIVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUhLTkI3Bg++ X-HM-Tid: 0a7182b49b729865kuuu49af3483c3 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 --- 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