Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1049296ybz; Thu, 16 Apr 2020 01:42:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLz5GVp0883wMpZ8NniuJCRyI8T8cWYZEmGlKWteDmp2xNQ9x4yrlWWhhAyBbRcNak55OOw X-Received: by 2002:a05:6402:8d8:: with SMTP id d24mr29947678edz.173.1587026553870; Thu, 16 Apr 2020 01:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587026553; cv=none; d=google.com; s=arc-20160816; b=kmanx3P6tvMOzu5EL3w+yzBU2tYfEi8OQwPb8XyzUnCaB6ibKwGqnFcFTF42rCrTdT ExZhUhQ9U8vsNU7939DWXjk6Nxw6HpfAxk/6IdJyUZ6dpOhWbiaxMK+3HMEXBepCXpE6 rCkyjdjfv8LrnVMpLn3453XsNlbz+37MOuvC/lq50de7rz+zRZhSagkpfWGDkbvm+ByZ WAOtiDokSqlBaxTOsYHRp0b26OaQdeAKQWmIiMHM6qAYmVmfZHm6mPFujXIrQu2GRAaM X1OkSOjIuqDYq1pkluIYUcA0BWSET4M4wlGVVtbdhwdUuJ9FJpu87yeMCkfT+236TG/p XkDA== 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=cyQZvdx6kl9v9bKc7rnL8xQ5i2BlCVrdV2XMnPCSFuXUsl12+xEJq96Pe+xPhY7TcM w93+MLkqVUc3FEh02af6aFgnCjOge/OEKl/ZBvZa/QurNs+ZZkHdcsCls3yaAaX3Q/Nf asTMMHsYkxp42sqVqXZDo37sMKuq9Iv1m0AgwgVq3bCLlobBjhFR1mfQ1g7vkh4+1QY+ 6xWPUFso+acON+e6RLMDS73DAMsw0bvF6z19TNCY0Qvl9WupyKT/hL8BWFNQTb7mmY0J Q41LGr4Y08nNcC6+rSN7wmWA97oW8SblvLV4z3feBdJMP0/8ujZuqNyu4docH5q/xKiC oyCg== 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 bs1si3451305edb.200.2020.04.16.01.42.11; Thu, 16 Apr 2020 01:42:33 -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 S2502682AbgDPIk4 (ORCPT + 99 others); Thu, 16 Apr 2020 04:40:56 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:9067 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441345AbgDPIfX (ORCPT ); Thu, 16 Apr 2020 04:35:23 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 91F444E2730; Thu, 16 Apr 2020 15:49:33 +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:49:15 -0700 Message-Id: <20200416074918.3617-2-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416074918.3617-1-wenhu.wang@vivo.com> References: <20200415152442.122873-1-wenhu.wang@vivo.com> <20200416074918.3617-1-wenhu.wang@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVNQk1LS0tLQkJKQ0lKSFlXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OAg6DCo5PTg3Dgg1DRE*Myg2 MkpPFEhVSlVKTkNMS0lISExIQk1CVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUhKSEI3Bg++ X-HM-Tid: 0a7181f6e61f9376kuws91f444e2730 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