Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1823965imm; Mon, 3 Sep 2018 10:22:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaKojBdlga610NdbjWkIcTs1X64/tiuE20bdXynspY3QtQ+Dx6VNZadKGVYfKBaebzNQBOX X-Received: by 2002:a62:7885:: with SMTP id t127-v6mr30571373pfc.6.1535995346932; Mon, 03 Sep 2018 10:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995346; cv=none; d=google.com; s=arc-20160816; b=CUdy4lqkt5HhiKPIg/u53q/vprDYlwWyvm2+SGwX1NwCuKrkl6PosM1AwQzqndCuTq 0ytVrVo9iApWMWleeVG+UXX1J6d1eHOwhmPBSkGW0THvC0jH3KAONqSP7XtuqphZMc1n 0GtYBv0A4vMefXO1fzQGNYaDHiUJ7njiDUYmnUL+0TQF24czmzgDjHdI7pEp9HIzBG4D H/tZ2+UXw92IaFJT5lA+FMakBgNDcclMWl762Ti1tG4f/yORlh1nNONTBz1uuzRlRdJs JuyJFaBuNE8WCeF7qwznhC9MZtaXr6OmkmhIuunu95kFaNaLTv3SIizBAEwr4Ewck6f8 n1nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=TYrY/F2wUaB+J2L4XvJMUfNE9SAmhwcO6PBoC4YFB0I=; b=THntt1NUpo21XzKCydZuC7b0IVUO/Iq62xCnmJqt1oCdCv4qr3l3t2FPg7RAgm640Z IbNQYSWZ3Qex0tIQPo7ibibQKK4xBC7FE8u1ikXeoOt+LQaTy3XQzwj16EY9lQpQm1EI 0FrxQ10axnXZ6OXEiLmeGw1YaKyRw1dZ43Qzw1kS4IhGE9ApXrGf1AqFZYM2nTj54j3m h0j3+BtCJmDD6E3qQiYqIH2urp6e0YmztaIxstKBIfoiS9QcLCgIgCyODaGsVY+k9yVs 7s3GxwmfPj9GggdmVJVR3NHmllFR0RactqSz4SS5B9aNbz4IH++2vQUFplloH3JFTTwH X1Kw== 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 m124-v6si18086925pfm.303.2018.09.03.10.22.12; Mon, 03 Sep 2018 10:22:26 -0700 (PDT) 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 S1730409AbeICVjv (ORCPT + 99 others); Mon, 3 Sep 2018 17:39:51 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43118 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728036AbeICVju (ORCPT ); Mon, 3 Sep 2018 17:39:50 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 89DA0D16; Mon, 3 Sep 2018 17:18:45 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Vineet Gupta , linux-snps-arc@lists.infradead.org, Elad Kanfi , Leon Romanovsky , Ofer Levi , Sasha Levin Subject: [PATCH 4.14 068/165] arc: fix type warnings in arc/mm/cache.c Date: Mon, 3 Sep 2018 18:55:54 +0200 Message-Id: <20180903165658.522610801@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap [ Upstream commit ec837d620c750c0d4996a907c8c4f7febe1bbeee ] Fix type warnings in arch/arc/mm/cache.c. ../arch/arc/mm/cache.c: In function 'flush_anon_page': ../arch/arc/mm/cache.c:1062:55: warning: passing argument 2 of '__flush_dcache_page' makes integer from pointer without a cast [-Wint-conversion] __flush_dcache_page((phys_addr_t)page_address(page), page_address(page)); ^~~~~~~~~~~~~~~~~~ ../arch/arc/mm/cache.c:1013:59: note: expected 'long unsigned int' but argument is of type 'void *' void __flush_dcache_page(phys_addr_t paddr, unsigned long vaddr) ~~~~~~~~~~~~~~^~~~~ Signed-off-by: Randy Dunlap Cc: Vineet Gupta Cc: linux-snps-arc@lists.infradead.org Cc: Elad Kanfi Cc: Leon Romanovsky Cc: Ofer Levi Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arc/mm/cache.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/arch/arc/mm/cache.c +++ b/arch/arc/mm/cache.c @@ -1035,7 +1035,7 @@ void flush_cache_mm(struct mm_struct *mm void flush_cache_page(struct vm_area_struct *vma, unsigned long u_vaddr, unsigned long pfn) { - unsigned int paddr = pfn << PAGE_SHIFT; + phys_addr_t paddr = pfn << PAGE_SHIFT; u_vaddr &= PAGE_MASK; @@ -1055,8 +1055,9 @@ void flush_anon_page(struct vm_area_stru unsigned long u_vaddr) { /* TBD: do we really need to clear the kernel mapping */ - __flush_dcache_page(page_address(page), u_vaddr); - __flush_dcache_page(page_address(page), page_address(page)); + __flush_dcache_page((phys_addr_t)page_address(page), u_vaddr); + __flush_dcache_page((phys_addr_t)page_address(page), + (phys_addr_t)page_address(page)); }