From patchwork Tue Aug 11 12:47:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 6992171 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B2FFCC05AD for ; Tue, 11 Aug 2015 12:47:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F078C205D4 for ; Tue, 11 Aug 2015 12:47:40 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id E873B205CB for ; Tue, 11 Aug 2015 12:47:39 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id F31392604FA; Tue, 11 Aug 2015 14:47:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id ACF0026051B; Tue, 11 Aug 2015 14:47:29 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8F5A126051F; Tue, 11 Aug 2015 14:47:28 +0200 (CEST) Received: from michel.telenet-ops.be (michel.telenet-ops.be [195.130.137.88]) by alsa0.perex.cz (Postfix) with ESMTP id 5E6142604FA for ; Tue, 11 Aug 2015 14:47:21 +0200 (CEST) Received: from ayla.of.borg ([84.193.93.87]) by michel.telenet-ops.be with bizsmtp id 3QnL1r00E1t5w8s06QnLfA; Tue, 11 Aug 2015 14:47:20 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1ZP8xc-00068X-8i; Tue, 11 Aug 2015 14:47:20 +0200 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1ZP8xc-0007XR-Pc; Tue, 11 Aug 2015 14:47:20 +0200 From: Geert Uytterhoeven To: Liam Girdwood , Mark Brown , Kuninori Morimoto Date: Tue, 11 Aug 2015 14:47:18 +0200 Message-Id: <1439297238-28943-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org, Geert Uytterhoeven , linux-sh@vger.kernel.org Subject: [alsa-devel] [PATCH] ASoC: rsnd: Silence DMA slave ID compile warning on 64-bit X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP On arm64: sound/soc/sh/rcar/dma.c: In function 'rsnd_dmaen_init': sound/soc/sh/rcar/dma.c:180:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)id); ^ include/linux/dmaengine.h:1185:75: note: in definition of macro 'dma_request_channel' #define dma_request_channel(mask, x, y) __dma_request_channel(&(mask), x, y) ^ Add an intermediate cast to "uintptr_t" to kill the compile warning. Signed-off-by: Geert Uytterhoeven --- sound/soc/sh/rcar/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sh/rcar/dma.c b/sound/soc/sh/rcar/dma.c index 305b129298538850..bfbb8a5e93bdce6c 100644 --- a/sound/soc/sh/rcar/dma.c +++ b/sound/soc/sh/rcar/dma.c @@ -177,7 +177,7 @@ static int rsnd_dmaen_init(struct rsnd_dai_stream *io, dma_cap_set(DMA_SLAVE, mask); dmaen->chan = dma_request_channel(mask, shdma_chan_filter, - (void *)id); + (void *)(uintptr_t)id); } if (IS_ERR_OR_NULL(dmaen->chan)) { dmaen->chan = NULL;