Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp674717ybz; Wed, 15 Apr 2020 16:25:44 -0700 (PDT) X-Google-Smtp-Source: APiQypIGCv/rtUTuSLJRgKLPrZHeeoX5v3obaD5tto6bNf6ZjT77LUvxuz6jmi7poCM6y3ZGJXlr X-Received: by 2002:a17:906:164f:: with SMTP id n15mr6908370ejd.322.1586993144452; Wed, 15 Apr 2020 16:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586993144; cv=none; d=google.com; s=arc-20160816; b=yRfks6gkj/NemMssJP2Jrrz6X6UYW64g58tW8ej8LaqK/tF96c8keXpPzmq5HaZb2q K8JXHWS7c36kHK0bH1m4F1bQPFzDWAXiV+Uvb6YJ7wx8HSSgiO/0MInFFnNb+R5xSAC2 2ERnGiL5dNfBBAsxC1rd1jg4xs+Mu0eUa/rJk+/l34/5ODQPhRmlsrBhHLM5RYjfwaQo j/BCG9N4xY67IodfzgtfqeegoXIB+lzMn9dAkFVSy0EL59b/CEsKvv392hIDInmw2imi Hp+RgaJfC25Hz93Q00ia0ZX2VH8Sue73yOEbzC7WpgVqm1g9X7J/3hgUTfYzqQxS9qhq uF5g== 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=8mAmuy+vWEXEuhE7B7c2vx26E7vIRpFEdCE2AtAvTPY=; b=dhD1OpbimOtEhK7pSaLZKmHaefHmzrHtDjK8dyHYZb9zgmX62aP3wzh4EpigMrZZWr GLW5Nyag564Qr/xOcDyBEgQ1otZxLYp+w5r5QVEe0VFYHmd498FNi5nzybN7wYMcWGEx PDso11WFXP/HuOtV9q7S//W68upyrLSY4m6VOfHm0yM5GUtkAbYmKNUKdSDEP1Ay0eOb RaO6qRW6feGIlUSDbZvoSv5sFAdPc7eq3w1o3PwQEoUSANxzRDZ5DCgeObuahngI7/UM PoeSzSTtJ2Tmq6LT20TMjKmN6x+k7EjbD1GLKV0SDff+7PUS9dZ2pVr7KaAuOqzwIGIC 5GMg== 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 fx19si2938703ejb.39.2020.04.15.16.25.20; Wed, 15 Apr 2020 16:25:44 -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 S369873AbgDOMgz (ORCPT + 99 others); Wed, 15 Apr 2020 08:36:55 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:57727 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S369757AbgDOMe1 (ORCPT ); Wed, 15 Apr 2020 08:34:27 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 5BB5F4E237F; Wed, 15 Apr 2020 20:34:26 +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 4/5] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr Date: Wed, 15 Apr 2020 05:33:45 -0700 Message-Id: <20200415123346.116212-5-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200415123346.116212-1-wenhu.wang@vivo.com> References: <20200415123346.116212-1-wenhu.wang@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSFVLSE1LS0tLSkhITkpPT1lXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Ni46Kxw6PTg6HggwOUI0Izww ARoKCQ1VSlVKTkNNQk5PS01NTEtNVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUlCQks3Bg++ X-HM-Tid: 0a717dd55ac69376kuws5bb5f4e237f 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 --- 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