Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1103634ybz; Thu, 16 Apr 2020 02:59:41 -0700 (PDT) X-Google-Smtp-Source: APiQypILgMgoJB1yH3ymLLYaRtGFe3IP9eKISzapJR02js8PaIeWbbDa5U4aBC2/8idNk9Lrqp1S X-Received: by 2002:a50:a285:: with SMTP id 5mr28379686edm.360.1587031180898; Thu, 16 Apr 2020 02:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587031180; cv=none; d=google.com; s=arc-20160816; b=UiklGx15jlzdo5lf5JKeBExZid+wzGO5hx/iGKTVAKwqu13ewB9p9z5aVmICd1d1VT q9k6X/zcUO6UqsPfD5EPr1anwEQCJpCHqGfAfwQrDbigT5KL0DQgabEQxxI2GJCCxPTv dWWF8c2/zm/abJhyscJkWhY5IwPXvVcPsnkMQSt7bw76kagOCP3o/RHZ13yYFDqK9Ljv MdGjVVUNMY965SJCu7zt7YvK1XBbsaS4sjJ3V+NRQrhTOX8Vyqf7HIsSWeOAO+KPnnK6 oPh3ZXiAiWX5zwDPph9IQmso1cI5zZ/WAO0DHtKWX0Zb1iuJ1TH9wttupsouQxVO9yXJ Q44Q== 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=QkfkJZQPKt9KQGobBiIUplJ4IL6ZF2G3j+qsqqM0Ci/rJAEVTsRIa/WiCAFoXL3boD beTK00Xze5wPi7ieG2f6UbXwGfYOhLLezKJnqb0KIP8J0H5HpoHp17DqxfOtcIDx/YKA esvV2HNeG5UvIzjqMxqZbHTtUDYLMBPiTwqSMbwZe+NgwbPzY7N5L98KJDCisBJTEDs5 U9kDlup5JbNnipI4jvrQwCB8eXb9BMo4YbF2qWjYs3aJ5IKUrNyNXkNeWuigSmf4xu5r RXFaCqw0UgrQlmJpEVIw0E5OFc1HTXHm7Liw+zReABQVZ0cEzAnlIpQk+I7LHi0D+ht8 xUcQ== 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 p7si12019782ejz.412.2020.04.16.02.59.18; Thu, 16 Apr 2020 02:59: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 S2504459AbgDPJzo (ORCPT + 99 others); Thu, 16 Apr 2020 05:55:44 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:49294 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504147AbgDPJzl (ORCPT ); Thu, 16 Apr 2020 05:55:41 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id A18BC4E30C2; Thu, 16 Apr 2020 15:42:00 +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:41:39 -0700 Message-Id: <20200416074141.3555-3-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: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Pjo6HSo4Vjg#OAg3HSxIKjYt SU4wFBJVSlVKTkNMS0lJQklKS09KVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUhIS0M3Bg++ X-HM-Tid: 0a7181effcdd9376kuwsa18bc4e30c2 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