Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1031463ybz; Thu, 16 Apr 2020 01:16:26 -0700 (PDT) X-Google-Smtp-Source: APiQypLf4JAhF/vt33gv7ollayfw9mShuYcYNWroI86HpW8h7wxxpwLPDqM5bJeaumscr7PmxAfZ X-Received: by 2002:a50:ee0e:: with SMTP id g14mr6311433eds.34.1587024986260; Thu, 16 Apr 2020 01:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587024986; cv=none; d=google.com; s=arc-20160816; b=Mz7euh/L6a9XqaR/VzlShlh4yGRUQQeSLXqATpgbXPdOTdNG7nS9QYBaHRLc8kBckO d6N0istd4Ll1IQ51Hrf1Tm1zabt5PSPoa8rno/DMCDNg+tBT6dyjKD+etlGNnFt4jVTS sYIMMPrclUdxNviy/ahBUEBBygpNmDmRcSfrM6xDKdd1+5zLPE2rPDBQFbhic5yyRIah NNW9Zkf8kcVD3d6qKhzDu57iFHyFjnz+vUoeCxPWKNoSyTiQu1ISTRBi9G8+/rsrYruY PCKHhL34Tiwed8xHOEKxilpAoGcwpOY35zkCN0CVjVl5TlrkPcUDaTeyutaeZ8738d4S e70w== 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=gmfBREXf/HpVzhBzH91UMupi46CdlLotA1Jgwvwh2LLIxiH9JB8z3+dl773covLYy9 Mv+Njhr/hfOVePJ9J3POKG1Mm3G3FnyH8Jx8Gu6g0Y+PyK2pG2xJgjqGOeuScoy+cfm8 BE3WrU9BZ7xiCf5lgWtKRP5z21FEqehMiS16gavta5DUa+XXIhtevOF6IWrBRwDb5ifF oXfNmJrTYbzGJPiqTYzksLKJDIpRwBZvid6TS5kniGEmd69o6fmtmxdTKVwVfhZz/rFv 2XPPLynfgRErJeL5ryM7w2WS9630RgEf0CU8JPARfjSNMhGAqy4wWyXhZkYa0miVm0Nc wljA== 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 y44si11798300ede.532.2020.04.16.01.16.02; Thu, 16 Apr 2020 01:16:26 -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 S2441191AbgDPIMP (ORCPT + 99 others); Thu, 16 Apr 2020 04:12:15 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:9517 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440883AbgDPIE6 (ORCPT ); Thu, 16 Apr 2020 04:04:58 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 89EF64E5FBD; Thu, 16 Apr 2020 15:30:02 +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 v3,1/4] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr Date: Thu, 16 Apr 2020 00:29:26 -0700 Message-Id: <20200416072929.3489-2-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416072929.3489-1-wenhu.wang@vivo.com> References: <20200415152442.122873-1-wenhu.wang@vivo.com> <20200416072929.3489-1-wenhu.wang@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVDTk1CQkJDTE9KSk9CQllXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Mgg6SCo5ETg#LAghDT84FzYV Gh0KCyhVSlVKTkNMS0lJSUtJQk1JVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUhKSEI3Bg++ X-HM-Tid: 0a7181e507d29376kuws89ef64e5fbd 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