Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1683547ybz; Thu, 16 Apr 2020 13:37:40 -0700 (PDT) X-Google-Smtp-Source: APiQypIVefUvD3BkY3u8K2D63sl9HwO+KKJBEufRRCbT+e9PolvbU+tDtkTbWR6sPCLLJULWCQIC X-Received: by 2002:a17:906:5c43:: with SMTP id c3mr11167281ejr.3.1587069460214; Thu, 16 Apr 2020 13:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587069460; cv=none; d=google.com; s=arc-20160816; b=jmXV5AAYk9PmEOvree6aLubEIELEuJplhQBcHKbGyRfkspR9TMBz9tbnfX7zcUn3bn B+xSZdlbA/k7nNSpefFxiHMwbHD5QQNLJamYNdMmNo+xqqOwi5OVMEw+TcvMS9BxA5er LaiaEmZPMlBih4eQssmhbcA9S3DeW9GwIeHpL/E2zrsAdyI7H3bL1O2JxsG6SaHtqcZw WU6VZm8O/oMJHf/PiQZzW1hDk/I133NEi9QtuS93AyFpPJ6eS87W6Qrf+5a5/tQs1UVh +rmAuG9Y6SBSvmQmodzuWoDs7KYqOmeZq8OJawPvoJwykuOPGWbnBBVxre5BQ5xPVZEY bIYQ== 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=dXuBFBbnPh0jm2FdA/nA/w2DXUiLI5MV1fvnzv/TpXU=; b=KrlIcUP7TcYh+RE28uFsWkFZafQg9mOkpBMekCZN/3IyuYyGh/oJbycDcsjHQnNkre xAHbOf5Jw4mOf6X9K+qxZu1xsxeuAEG5wJCUW7+pLMQ6B/EDpwsGGDJSZaJXkgyVwwWP jMW1rdhEjQRwYaPKtQNF0l6zIHqM041b2VHQckAed1fjT5+tHFiVQjb8KqTxN3Zth/Mm uesmq0AwcqA//hrN4qw+10W3UxJGU6rgQJFvM9I8hNTanJB++nMgkj2HulRrEU9JuuRU hU/n0Q+P2DGHubWasT+6L/7qWh7HCsS9+ocm7ky8fUJBEnaFaVjf9EihR4x3hbZUbXto Xqeg== 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 dk9si6821807edb.403.2020.04.16.13.37.17; Thu, 16 Apr 2020 13:37: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 S2395319AbgDPPge (ORCPT + 99 others); Thu, 16 Apr 2020 11:36:34 -0400 Received: from mail-m127101.qiye.163.com ([115.236.127.101]:3842 "EHLO mail-m127101.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410350AbgDPPgZ (ORCPT ); Thu, 16 Apr 2020 11:36:25 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by mail-m127101.qiye.163.com (Hmail) with ESMTPA id 07BE94636D; Thu, 16 Apr 2020 23:35:55 +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 v4,2/4] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram Date: Thu, 16 Apr 2020 08:35:35 -0700 Message-Id: <20200416153537.23736-3-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416153537.23736-1-wenhu.wang@vivo.com> References: <20200416153537.23736-1-wenhu.wang@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVITkNCQkJCTUxOTE5LTFlXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NC46Kgw6Mzg0Dg8vPD8#KSIS IigKCjVVSlVKTkNMS05KSE5NT0pOVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUhJT0M3Bg++ X-HM-Tid: 0a7183a1e0899865kuuu07be94636d 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 Changes since v3: * 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