Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3930118imm; Mon, 8 Oct 2018 11:52:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV60S/OlRTQTj1TONsXQcVOESVJ2Nwdya9BS2EDYoGtTQbzTzgbRjOhWV9cplYqaBz2q3dCmQ X-Received: by 2002:a17:902:f096:: with SMTP id go22mr25488757plb.235.1539024735621; Mon, 08 Oct 2018 11:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024735; cv=none; d=google.com; s=arc-20160816; b=NTuG6jEsvsscZDSgbAfkEiJzHkacxt/Ada7ZvREPjX6pvrmOn9RhFTW9/7YtGUL6ez GZRhbbjFKCG3Bgderb7n2nRgw47T4FnPyl9vV/Q+B2DDgCJH9v1h8dfKnW75+L+aMpB2 fNW3wZt28A9fC+Ge9dZrd6mEn9Q2cbOF/jK0QmAFY1907r1rspikBp2RkHn+4jEmqaTn GVeZnkRMtEfr6fLozK7WFHJnBdM8QsYhQcO6fuMUAkej3vbsp/GN3f4jGAu98FKBPNOG AWwHlTzHrmZxrunHvLRYvHmi0ScNiSyBBqJb/l6Yjl04ct78DzHE08iQ9/o8AfE18HoD wD9A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QVeUwsHxPGSNFfw/DZ6Ed9C7sjPh2S5Ihiqx4aPBSbA=; b=WaYGEUzWVIYBKDGRMcWO+ewhFEr1xjYDspyszYRpyt2IJ8vU4NXLNxBo6WmT5RLXnD 3h4myYU3Xd2Mgal2lfP/mGpmEEH1acbr/oIdXv7ZulJFj+YN1DBYYyqURdHRwtx8Wr+X EdGlZmsYYECneOY7WCUgdlwIospA9tbaK21Ckd5I24NC7MDjZMTN/nYT+IdHJpZAdk9+ 0uQsivz1VapGGqun1u93baU+gnBF3U5xHwbRvTi+sOlL0LkaFGriCGBV5UsmIeon0ofj 4CfjXstwFeww5GIhCzgq4s6UcRNZLkUSIirjEy+WIm/e0GPWy34Bd95i44e20jQW+0PJ DiNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XNDAa92t; 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 s65-v6si17684550pgb.486.2018.10.08.11.52.00; Mon, 08 Oct 2018 11:52:15 -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; dkim=pass header.i=@kernel.org header.s=default header.b=XNDAa92t; 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 S1732423AbeJICFB (ORCPT + 99 others); Mon, 8 Oct 2018 22:05:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:55020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732400AbeJICFA (ORCPT ); Mon, 8 Oct 2018 22:05:00 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9F0A620645; Mon, 8 Oct 2018 18:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024713; bh=Xo2DQYeQi1G1wV7GKPesZ+qmopyTF4QkyqZoHlr7SVc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XNDAa92tbhHOEBBuvMWXY83kOdSi7VXYWhAHPmHsymNwUWu9i9uCZ3ZyJ+6slF6ZT A67ooldi3q2g7rk1iWz6VjVUJdDh4WnoHbvEEe3LrMDcNcC6XXvcrX/YRudK5fu/9w iVbqZJ8Yzw9QWKhVzt8ewfVGZ5JLLtT3rzA/hPzs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, Richard Kuo , Sasha Levin Subject: [PATCH 4.18 130/168] arch/hexagon: fix kernel/dma.c build warning Date: Mon, 8 Oct 2018 20:31:50 +0200 Message-Id: <20181008175624.987354723@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap [ Upstream commit 200f351e27f014fcbf69b544b0b4b72aeaf45fd3 ] Fix build warning in arch/hexagon/kernel/dma.c by casting a void * to unsigned long to match the function parameter type. ../arch/hexagon/kernel/dma.c: In function 'arch_dma_alloc': ../arch/hexagon/kernel/dma.c:51:5: warning: passing argument 2 of 'gen_pool_add' makes integer from pointer without a cast [enabled by default] ../include/linux/genalloc.h:112:19: note: expected 'long unsigned int' but argument is of type 'void *' Signed-off-by: Randy Dunlap Cc: Yoshinori Sato Cc: Rich Felker Cc: linux-sh@vger.kernel.org Patch-mainline: linux-kernel @ 07/20/2018, 20:17 [rkuo@codeaurora.org: fixed architecture name] Signed-off-by: Richard Kuo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/hexagon/kernel/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/hexagon/kernel/dma.c +++ b/arch/hexagon/kernel/dma.c @@ -60,7 +60,7 @@ static void *hexagon_dma_alloc_coherent( panic("Can't create %s() memory pool!", __func__); else gen_pool_add(coherent_pool, - pfn_to_virt(max_low_pfn), + (unsigned long)pfn_to_virt(max_low_pfn), hexagon_coherent_pool_size, -1); }