Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp690904ybz; Wed, 15 Apr 2020 16:49:19 -0700 (PDT) X-Google-Smtp-Source: APiQypJUi3kiSe20gcXxn88LZarR3Ke4M9RZBrB8wC54S8VKACVrUicZY+Jd1XsvEIA0ZaMrR/ib X-Received: by 2002:aa7:c781:: with SMTP id n1mr28017163eds.136.1586994559141; Wed, 15 Apr 2020 16:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586994559; cv=none; d=google.com; s=arc-20160816; b=PwsF2glKYTloRqwJlo6VaBS6fmMa+oTqlSe43PHggU+GLyvsTtkM5t2C+fSttqiiqe HlG6Bhv2fXUrVQXHfHP57XVyjimsFMkoFYA2Rtq5KFFBxGh3lMogfm9jo0PHAOdAONxN XSbvSxph0FmxJsoxa4YnqXRBIw5xbtJ9X9mFJOD7AfFjlGbMX/PGVF7xoFrg7IxiSa3L RXxGsd7hjgrCZsrv16el4/ZpN2PTMudiGTr6V/IsX/YhOgWjch3iuRFSbKJVRXXkVpCH 0pfaCiB2nahBsRG8ukV5h8XwyDDY1wzHtM92Np10ZFwCYRAro1T3veBMJd7QpTHeSJ9O l9FA== 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=1XNo9MZpI6x0s1YPvt4I/ed0Uzx9/kwwV/1585npe7c=; b=W7+qrkdHv5EBwHYjsZ3W9dBtPHnu1/9WsWMPcdkq0k1QmMFZCWs2bIMrYxrYZUT4RE kg93YQwK6A4iJUCWpDFUtju/2RklCdKJwEYdf8sIGB/sO4r0mQQ0GtRiC6bnjmndfCV7 E88gCLiOvU5MwD3a2rA5SphnAcpS6u62m5v6C153w4Sn8m9f1R3gVBaX4NKpZymaKA2T 5l91Xi11FX3oNWFFN8O1utRczaZR5gMOq5NwCzkcS1esivYQkXa+1v968l6R7xW6RFqs vVoqb1DM9DUtfuBoFKsFOzlm/JyNxQX/R+16NB4wAIO4IdL7FX08Wybk2GLUEuWqlkAM EoLQ== 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 d9si10726221ejb.387.2020.04.15.16.48.56; Wed, 15 Apr 2020 16:49:19 -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 S369885AbgDOMhH (ORCPT + 99 others); Wed, 15 Apr 2020 08:37:07 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:57479 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S369752AbgDOMe0 (ORCPT ); Wed, 15 Apr 2020 08:34:26 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 494524E2032; Wed, 15 Apr 2020 20:34:23 +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 2/5] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram Date: Wed, 15 Apr 2020 05:33:43 -0700 Message-Id: <20200415123346.116212-3-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200415123346.116212-1-wenhu.wang@vivo.com> References: <20200415123346.116212-1-wenhu.wang@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSFVLSE1LS0tLSkhITkpPT1lXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NBw6Azo4ODg2TwgrE0I*IzAW ORlPFCtVSlVKTkNNQk5PS01ITUxIVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUhKTkI3Bg++ X-HM-Tid: 0a717dd54ecd9376kuws494524e2032 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 --- 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