Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1029619ybz; Thu, 16 Apr 2020 01:13:54 -0700 (PDT) X-Google-Smtp-Source: APiQypLktdgbThKRMMPk0Aii8Y2/bNaJbuK9ccy80qp6cFXmab3C01m2TF/S65LpMe01fnwjUgZz X-Received: by 2002:a05:6402:204:: with SMTP id t4mr28053827edv.344.1587024834676; Thu, 16 Apr 2020 01:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587024834; cv=none; d=google.com; s=arc-20160816; b=tPFas5tnhQtnbzZ629tT6jQYAMtv9VtH977u5/ER1ii+nqsHS47yBfQzENR1fixNq2 Gdj5eTJrafBlY4HeQ86EdTpVWuT5L5QdjMqQ+wdcE+ptbsx2vhoHro45Bo2qfa7a18ru GdRsf9MQaTqivJuRlk7eZRZyfwr+7X5RiH+P5izkQJj5WOP62voqEt8iqEAEpabO5of3 lOpss4/trXcdK0bJWs/m9tzMHbkqGUHDIAB3eNe2fkT9HbtHLcpCWcT2vWFuc6kO9/k+ NZCbKXn1tp9mrShcp9m85/VW6m968QDHqAI2dNpxJWGrTN1pHkfVnjkcYGVrxq+ZLMaY hWew== 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=DiW7upNiqVH+NmipPoypIySdyxRjjsO4BfZBuc117K8=; b=nndpZ4x5yw7BtueEsTI5JaRNYgJtSrd3rnxRj23wnoK7TanhyAPqdBL7uIoqLTw6mQ /lQm/btrlqBVla81D9MM/DIJDpU46OBIAFoGe0prFF6/mkfAd/pSryMOI+lILun93k13 jf8jSO0NUWut6c4IedrGs+kNu0HeNDIlCaw7000A2Ey7x5LEl7PUI1aPxf9r6Gnrop4m z99cxsUtPsoDgvfITGtlUbC70fJnDWay5gyyG7GDCFk/5fkFpWYXNlkJ3LvVchhM5kk/ pVDzZFpDroOuMdEaKbAvjXR+hlxxquwYYbJ3lmarzlGJRHXFmKBs2yi+En4X6NUBBJTy U7Ag== 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 ca26si12503245edb.457.2020.04.16.01.13.30; Thu, 16 Apr 2020 01:13:54 -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 S2440757AbgDPILH (ORCPT + 99 others); Thu, 16 Apr 2020 04:11:07 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:9985 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440891AbgDPIFB (ORCPT ); Thu, 16 Apr 2020 04:05:01 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id C94384E3BE9; Thu, 16 Apr 2020 15:30:04 +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,2/4] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram Date: Thu, 16 Apr 2020 00:29:27 -0700 Message-Id: <20200416072929.3489-3-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: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NSI6URw4Mjg1NAgPKzk4Fyg1 ORZPCz5VSlVKTkNMS0lJSUtOSU1KVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUhIS0M3Bg++ X-HM-Tid: 0a7181e510d89376kuwsc94384e3be9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Include linux/io.h into fsl_85xx_cache_sram.c to fix the implicit-declaration compile error when building Cache-Sram. arch/powerpc/sysdev/fsl_85xx_cache_sram.c: In function ‘instantiate_cache_sram’: arch/powerpc/sysdev/fsl_85xx_cache_sram.c:97:26: error: implicit declaration of function ‘ioremap_coherent’; did you mean ‘bitmap_complement’? [-Werror=implicit-function-declaration] cache_sram->base_virt = ioremap_coherent(cache_sram->base_phys, ^~~~~~~~~~~~~~~~ bitmap_complement arch/powerpc/sysdev/fsl_85xx_cache_sram.c:97:24: error: assignment makes pointer from integer without a cast [-Werror=int-conversion] cache_sram->base_virt = ioremap_coherent(cache_sram->base_phys, ^ arch/powerpc/sysdev/fsl_85xx_cache_sram.c:123:2: error: implicit declaration of function ‘iounmap’; did you mean ‘roundup’? [-Werror=implicit-function-declaration] iounmap(cache_sram->base_virt); ^~~~~~~ roundup cc1: all warnings being treated as errors 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_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powerpc/sysdev/fsl_85xx_cache_sram.c index f6c665dac725..be3aef4229d7 100644 --- a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c +++ b/arch/powerpc/sysdev/fsl_85xx_cache_sram.c @@ -17,6 +17,7 @@ #include #include #include +#include #include "fsl_85xx_cache_ctlr.h" -- 2.17.1