From patchwork Wed Jul 17 08:54:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2828496 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DC1D6C0AB2 for ; Wed, 17 Jul 2013 08:54:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AFDBE20150 for ; Wed, 17 Jul 2013 08:54:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C4A7B2015E for ; Wed, 17 Jul 2013 08:54:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751926Ab3GQIyX (ORCPT ); Wed, 17 Jul 2013 04:54:23 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:62344 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751543Ab3GQIyT (ORCPT ); Wed, 17 Jul 2013 04:54:19 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQ200EYPOQC4O10@mailout3.samsung.com>; Wed, 17 Jul 2013 17:54:12 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id F1.FA.03969.3BB56E15; Wed, 17 Jul 2013 17:54:12 +0900 (KST) X-AuditID: cbfee68f-b7f436d000000f81-87-51e65bb37688 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 2E.AD.32250.3BB56E15; Wed, 17 Jul 2013 17:54:11 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MQ200CW1OQBEP80@mmp1.samsung.com>; Wed, 17 Jul 2013 17:54:11 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, 'Joe Perches' , Jingoo Han Subject: [PATCH v2] spi: s3c64xx: fix casting warning Date: Wed, 17 Jul 2013 17:54:11 +0900 Message-id: <008101ce82cb$34f0eea0$9ed2cbe0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Content-language: ko Thread-index: Ac6Cyxay2OcQipZyQfSQQpEj9JO2zQ== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJIsWRmVeSWpSXmKPExsVy+t8zA90t0c8CDT58YrSY+vAJm8XlhZdY LWbff8xiMeP8PiaLxo832R1YPTat6mTz+LLqGrNH35ZVjB6fN8kFsERx2aSk5mSWpRbp2yVw ZXT2TWAs6OCqmLL3B3MD4yqOLkZODgkBE4mGuxOYIWwxiQv31rN1MXJxCAksY5RoPHSKGa7o 01JWiMQiRomlv3cyQTi/GCW2HfrLAlLFJqAm8eXLYfYuRg4OEQFVif+v3EHCzAKtjBK/ZnqA 2MICphKflr1nAilhASmZIwMS5hWwlHjY0s4OYQtK/Jh8jwWiVUti87YmVghbXmLzmrdQ9yhI 7Dj7mhEiLiKx78U7RoitehL3PuaDXCYhsI1d4uSViWA1LAICEt8mH2IBqZEQkJXYdABqjKTE wRU3WCYwis1CsnkWks2zkGyehWTbAkaWVYyiqQXJBcVJ6UXGesWJucWleel6yfm5mxgh0da/ g/HuAetDjMlA6ycyS4km5wOjNa8k3tDYzMjC1MTU2Mjc0ow0YSVxXrUW60AhgfTEkt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xF7f0Dv0mvdu//3J/ve+G3vtWlh8R6Q2 SImlOCPRUIu5qDgRAFkecpkpAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP sdd->ops->request is unsigned int, not unsigned long. Also, sdd->rx_dma.ch is a 'struct dma_chan *'. Thus, (void *) is converted to (struct dma_chan *)(unsigned long), in order to fix possible sparse warnings. Signed-off-by: Jingoo Han Cc: Joe Perches --- Changes since v1: - Replaced (unsigned long *) with (struct dma_chan *) to match the type of sdd->rx_dma.ch. drivers/spi/spi-s3c64xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 702a536..c9d0b12 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -336,10 +336,10 @@ static int acquire_dma(struct s3c64xx_spi_driver_data *sdd) req.cap = DMA_SLAVE; req.client = &s3c64xx_spi_dma_client; - sdd->rx_dma.ch = (void *)sdd->ops->request(sdd->rx_dma.dmach, - &req, dev, "rx"); - sdd->tx_dma.ch = (void *)sdd->ops->request(sdd->tx_dma.dmach, - &req, dev, "tx"); + sdd->rx_dma.ch = (struct dma_chan *)(unsigned long)sdd->ops->request( + sdd->rx_dma.dmach, &req, dev, "rx"); + sdd->tx_dma.ch = (struct dma_chan *)(unsigned long)sdd->ops->request( + sdd->tx_dma.dmach, &req, dev, "tx"); return 1; }