From patchwork Thu Sep 13 18:47:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Dureghello X-Patchwork-Id: 10599983 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C676717DF for ; Thu, 13 Sep 2018 18:47:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC3B42B482 for ; Thu, 13 Sep 2018 18:47:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B051E2B484; Thu, 13 Sep 2018 18:47:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AB0B2B482 for ; Thu, 13 Sep 2018 18:47:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728084AbeIMX6O (ORCPT ); Thu, 13 Sep 2018 19:58:14 -0400 Received: from ec2-18-194-220-216.eu-central-1.compute.amazonaws.com ([18.194.220.216]:36182 "EHLO sysam.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728020AbeIMX6O (ORCPT ); Thu, 13 Sep 2018 19:58:14 -0400 Received: from localhost (localhost [127.0.0.1]) by sysam.it (Postfix) with ESMTP id 68F7C21DF6; Thu, 13 Sep 2018 18:47:29 +0000 (UTC) Received: from sysam.it ([127.0.0.1]) by localhost (sysam.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZQEzsozm_MvH; Thu, 13 Sep 2018 18:47:28 +0000 (UTC) Received: from localhost.localdomain (host238-237-dynamic.44-79-r.retail.telecomitalia.it [79.44.237.238]) by sysam.it (Postfix) with ESMTPSA id AAD4021DF5; Thu, 13 Sep 2018 18:47:28 +0000 (UTC) From: Angelo Dureghello To: vinod.koul@linaro.org Cc: dmaengine@vger.kernel.org, sfr@canb.auug.org.au, Angelo Dureghello Subject: [PATCH -next] dmaengine: mcf-edma: fix x86_64 allmodconfig compilation warning Date: Thu, 13 Sep 2018 20:47:24 +0200 Message-Id: <20180913184724.13495-1-angelo@sysam.it> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the compilation warning reported during x86_64 allmodconfig build. Signed-off-by: Angelo Dureghello --- drivers/dma/mcf-edma.c | 3 ++- include/linux/platform_data/dma-mcf-edma.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/dma/mcf-edma.c b/drivers/dma/mcf-edma.c index 4d30d5302649..e08e2409a102 100644 --- a/drivers/dma/mcf-edma.c +++ b/drivers/dma/mcf-edma.c @@ -292,8 +292,9 @@ bool mcf_edma_filter_fn(struct dma_chan *chan, void *param) { if (chan->device->dev->driver == &mcf_edma_driver.driver) { struct fsl_edma_chan *mcf_chan = to_fsl_edma_chan(chan); + unsigned int req = *(unsigned int *)param; - return (mcf_chan->slave_id == (u32)param); + return (mcf_chan->slave_id == req); } return false; diff --git a/include/linux/platform_data/dma-mcf-edma.h b/include/linux/platform_data/dma-mcf-edma.h index d718ccfa3421..97cb79bda646 100644 --- a/include/linux/platform_data/dma-mcf-edma.h +++ b/include/linux/platform_data/dma-mcf-edma.h @@ -21,7 +21,7 @@ struct dma_slave_map; bool mcf_edma_filter_fn(struct dma_chan *chan, void *param); -#define MCF_EDMA_FILTER_PARAM(ch) ((void *)ch) +#define MCF_EDMA_FILTER_PARAM(ch) ((int[]) { (ch) }) /** * struct mcf_edma_platform_data - platform specific data for eDMA engine