Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1925308ybf; Sun, 1 Mar 2020 21:48:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxgYYSFV45/DBE1iiqFr38rXB8PFfhH3eWcS+CSdWHU9AyDxah+2op18Gr9J7n20kGYemRR X-Received: by 2002:a05:6808:b23:: with SMTP id t3mr10657241oij.88.1583128124380; Sun, 01 Mar 2020 21:48:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583128124; cv=none; d=google.com; s=arc-20160816; b=JtD+XGhV0QuhEiqsWzWSYpL4KX9BjNDfb5dHCUQQad4H7He/ryd7mmTWs6PCkai94E 1r/MyMFyCroqypYhXNVkozyzUu4QKmlY2cHRRZSN0bcFXy6dch6bDu5L5d+A1DZaSy7J M6w+mTBra30nQNCDZfd3lqPmLWTVMSQxET42brke6RJSgtRazfCeoq7oztmA21S8uw5M kRKQMuJZtOCbSW70CwUrwBFO0dstPKhM0QST6Ex7gC9mSNgFMirN3ZTEnFkIj8f8IdNJ 2yWX/JDcM5S+DBGv6gLpdF7G7PSThrq3cpqfeo9q1u3dpA3r522Mi1i/aY3kaoWQh9Qe v6ZQ== 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 :message-id:date:subject:cc:to:from; bh=uv2/2WtZZt1zOO1xGHYG2z/22QXDZ1z3E1Tgafdei5o=; b=E5YgniGDDk9+Qog8++Mjai/c6gsA6ac6XBFcxGlyTOgc6xz06QO5CHUvJleWabru0Y eL09sfuindQT7fUpyIRqAaNo1TiKz3y5Umn8jSKBmlE1VCtuuWRRNEIP/U+1zvUh7QfE WuigJic6HF5q6hosJm/I30RaqrI6PgHLm1AZl1aYeOfLc6lDe646MYSjE2RCf16R9kg3 n8uganesIS/aFDV3/++0ZTIEo8noJm609J8taUMV0A9FdnCpoUqFsaNDBkKQC05OqVVo nSjLjtUibOSBplZ0rvrVsv9u/OcSTCna+JQOHaSubzIbiQa2nyBh9ygcp2sv1JOTTO+5 9m1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p13si5547440otq.210.2020.03.01.21.48.30; Sun, 01 Mar 2020 21:48:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726098AbgCBFrt (ORCPT + 99 others); Mon, 2 Mar 2020 00:47:49 -0500 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:1126 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgCBFrt (ORCPT ); Mon, 2 Mar 2020 00:47:49 -0500 X-Greylist: delayed 553 seconds by postgrey-1.27 at vger.kernel.org; Mon, 02 Mar 2020 00:47:46 EST Received: from ubuntu.localdomain (unknown [58.251.74.227]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id DA66B4E14F3; Mon, 2 Mar 2020 13:38:26 +0800 (CST) From: WANG Wenhu To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Kate Stewart , Greg Kroah-Hartman , Allison Randal , Thomas Gleixner , wangwenhu , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: trivial@kernel.org, wenhu.pku@gmail.com Subject: [PATCH] powerpc/sysdev: fix compile errors Date: Sun, 1 Mar 2020 21:37:59 -0800 Message-Id: <20200302053801.26027-1-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZTlVOS0tCQkJCSUxOSUtMTllXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PE06ODo4Ejg1IUIOVgk9HB1P CDBPCRZVSlVKTkNISklMTktCTk5KVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlMWVdZCAFZQUhKSks3Bg++ X-HM-Tid: 0a7099c0b1c19376kuwsda66b4e14f3 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 errors 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 Fixed: commit 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: WANG Wenhu --- 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