Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1102877ybz; Thu, 16 Apr 2020 02:58:40 -0700 (PDT) X-Google-Smtp-Source: APiQypLqoRjCIfSUTQevpPW879LxbPnOdL3ydmXpQjD6S03nE1XsYOZ9SYeO380bth1G4F2njjbi X-Received: by 2002:aa7:d0cf:: with SMTP id u15mr18197349edo.233.1587031120206; Thu, 16 Apr 2020 02:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587031120; cv=none; d=google.com; s=arc-20160816; b=uXmBjK8txvlBImT8M73igMyzpy935IFYRTwQhvrKZXIDAhE+ItiBqWEfozhIjTw2eT jVm1jQTlsAPMWNefVD28nqDX6skZUC7Bf8tYSapdd46wmp3K68+o5+I76yTcLxZl0U3f oPKi7yRBzMtJUtZxNc2wB56m337mGnqTLrfvJZwEFTg2kWyrDp8kM8iEVPYvN4rTbh// fo8a8CtyEfK7hBTCNtv8YJjNXL8RdVKHHseXGt3+IGLY5T2VkQZzTE3npO6tanPYvCyq /1uQWi6s7Y1FYmjSleD/4lrPYhuv2pD3OvSQ67D7qLl7rHUjXsH0QJwaSBL3fxzpv2ur dltQ== 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=DpDaV+4llschsKoXj4IFtVPsZdFfh/looyzXL2AQouohrXDsNB2SbS8bOlSLzI6Dk3 AV2stvyO/pCpxETdE+c/QJLf8fipnWalCstZuVgtUPwXka4JoijDa24NZy0hYJKRPd0K ky3mkU1yKw/MsxlFNg9CFVneRQVzGogzPRzqtnR1MsUJPqA4aaTS/dxj9yxv2s+MEi7u FN7BtYLxL11v+8EqwmNkiycTKDLwz7Io0BQNc/sznsgyUL6jK/MP3INZonFB+UmZvd6G e7O/a6rYlFCYsCcs6XDPF7iiMexJJ8JmRgxJnrZ84VtvfXV6YJy4c6ux5EfJS9fKSaCr lr6Q== 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 a22si6167128eju.166.2020.04.16.02.58.17; Thu, 16 Apr 2020 02:58:40 -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 S2504556AbgDPJ5R (ORCPT + 99 others); Thu, 16 Apr 2020 05:57:17 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:50108 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504544AbgDPJ5O (ORCPT ); Thu, 16 Apr 2020 05:57:14 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 066344E65CF; Thu, 16 Apr 2020 15:41:57 +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:41:38 -0700 Message-Id: <20200416074141.3555-2-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416074141.3555-1-wenhu.wang@vivo.com> References: <20200415152442.122873-1-wenhu.wang@vivo.com> <20200416074141.3555-1-wenhu.wang@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVCS0pCQkJCTktPS0NCT1lXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MiI6Qgw4EzgrFgguKy0fKjwy NFYKCj5VSlVKTkNMS0lJQkpDT0pIVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUhKSEI3Bg++ X-HM-Tid: 0a7181eff2919376kuws066344e65cf 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