Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp710462ybz; Wed, 15 Apr 2020 17:14:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKXN/f7Rf40Jp/btq5rv7LV0snHUndcBacUn7aBLGKfBYtL6jXOnANQEcoNYPfaJSNEfe0q X-Received: by 2002:a05:6402:b49:: with SMTP id bx9mr19428671edb.24.1586996089649; Wed, 15 Apr 2020 17:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586996089; cv=none; d=google.com; s=arc-20160816; b=Y0Lwwnn6zIhe1XuBDDB5Snmqok/wQy3e3JnUZgPvo+Kp/TBlfGKhvAURQkWH7YZSEH wBxY4wxbjMTrq5uw22xYSOrIqqIJQ7amDMS2v3ugzIvpFSXlizQMvdaGrN2WkFikf6AT SUUn+takeG0auEzgz6tBCAcazTlDXD8sMqPTvEv2h/lz7qD0vYCiZOLSryR6DhW0m9sd mnfwioydaUYED3b8B6OIw9y8wwG0QZ59YLVCzqQwst9DSRvLY4yEWahkjXm0laTcYo7Q e2klfzWDvJ2bZCaeyHMPpd0A01CwP55iWrYhaAy8gi4bvTnRZCRTg4lxL5cJ59T/qtxW vbuQ== 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=JVEzRmdRv7Qpc7b080nko8rRfi2uZZJWtlBmnW1DAQg=; b=nI3vNRugKS+7vIWT9VHiYYQfaWPdyRQGLwpzm6sZTGxqO3uCbWUjDNGADTSv3ivK8n NLa0Jgu9Fpe/L/WWPbh/Gh6I1GReY83Wc9luK2qOcm9Rkuob1Tfeo1jD0Rc12tvzKf0t 50FzFypMzyWGMrYcPvmo1gu2sQFAAL9fFD+6ryKglZqkJsuT3fbx1KXPMUc95OYThbqf i61/szcqi2UvNV/j5osoH82+XNcBT7G2Cpxbqg1GU5gkHpTGAFtE/LiesV4+4hTfj2T1 TbyXxu9TycQbrNhbm8zC82MQs4675MKYmu+jBR61E0PsjkmUTBc6j+La/ZU2JD2kAnrS LF6g== 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 jr5si11295010ejb.378.2020.04.15.17.14.26; Wed, 15 Apr 2020 17:14:49 -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 S1414696AbgDOP01 (ORCPT + 99 others); Wed, 15 Apr 2020 11:26:27 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:15062 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2636874AbgDOPZj (ORCPT ); Wed, 15 Apr 2020 11:25:39 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 47E7D4E0F0E; Wed, 15 Apr 2020 23:25:37 +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 v2,2/5] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram Date: Wed, 15 Apr 2020 08:24:39 -0700 Message-Id: <20200415152442.122873-3-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200415152442.122873-1-wenhu.wang@vivo.com> References: <20200415124929.GA3265842@kroah.com> <20200415152442.122873-1-wenhu.wang@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVDTE5CQkJCSUxOSUtMTllXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OE06FCo6IzgzHggeLyozGQ8O OBUKFAhVSlVKTkNNQk1PSEhMTU5PVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUhJTE83Bg++ X-HM-Tid: 0a717e72138c9376kuws47e7d4e0f0e 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 --- 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