From patchwork Wed Feb 26 02:42:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 3720301 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 656BE9F2ED for ; Wed, 26 Feb 2014 02:27:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 89C68201F4 for ; Wed, 26 Feb 2014 02:27:20 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E146201F0 for ; Wed, 26 Feb 2014 02:27:19 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIUDF-0007hI-Uz; Wed, 26 Feb 2014 02:27:10 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIUDD-0007KC-HL; Wed, 26 Feb 2014 02:27:07 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIUD9-0007JX-JW for linux-arm-kernel@lists.infradead.org; Wed, 26 Feb 2014 02:27:05 +0000 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1L005JE04DGSC0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 26 Feb 2014 11:26:37 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id EE.05.12635.DD05D035; Wed, 26 Feb 2014 11:26:37 +0900 (KST) X-AuditID: cbfee68d-b7fcd6d00000315b-b1-530d50dd8436 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id CB.C6.28157.DD05D035; Wed, 26 Feb 2014 11:26:37 +0900 (KST) Received: from localhost.localdomain ([12.36.165.191]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N1L00HBE0463WL0@mmp1.samsung.com>; Wed, 26 Feb 2014 11:26:37 +0900 (KST) From: Pankaj Dubey To: t.figa@samsung.com, mturquette@linaro.org Subject: [PATCH] clk: samsung: fixed compiler warning [-Wpointer-to-int-cast] Date: Wed, 26 Feb 2014 11:42:41 +0900 Message-id: <1393382561-5388-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrILMWRmVeSWpSXmKPExsVy+t8zA927AbzBBjt+6FhsenyN1eLyrjls FjPO72OyeDrhIpvFoq1f2C3Wz3jN4sDmcefaHjaPzUvqPfq2rGL0+LxJLoAlissmJTUnsyy1 SN8ugSvj9MrnzAXT2Suadi9lbGCcwtbFyMEhIWAi8e5LbRcjJ5ApJnHh3nqgMBeHkMAyRomD Jw6yQCRMJP4t/cEEkVjEKDHlz09mCKeNSWLmg29gVWwCuhJP3s9lBrFFgOzzy26AdTALTGGU +N72kQVknbCAr8TsZncQk0VAVeLEDnaQcl4Bd4mtz+YzQxykIDFnkg1Ip4TAZzaJhkUnmEBq WAQEJL5NPsQCUSMrsekAM8RtkhIHV9xgmcAouICRYRWjaGpBckFxUnqRoV5xYm5xaV66XnJ+ 7iZGSHD27mC8fcD6EGMy0LiJzFKiyfnA4M4riTc0NjOyM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vtypNXK7EUZyQaajEXFScCAI/T/GDCAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140225_212703_860388_94FF38E4 X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) Cc: Pankaj Dubey , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 When compiled using ARM64 cross compiler, gcc complains as drivers/clk/samsung/clk.c:293:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Pankaj Dubey --- drivers/clk/samsung/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c index 91bec3e..59142ba 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c @@ -278,7 +278,7 @@ void __init samsung_clk_of_register_fixed_ext( for_each_matching_node_and_match(np, clk_matches, &match) { if (of_property_read_u32(np, "clock-frequency", &freq)) continue; - fixed_rate_clk[(u32)match->data].fixed_rate = freq; + fixed_rate_clk[(unsigned long)match->data].fixed_rate = freq; } samsung_clk_register_fixed_rate(fixed_rate_clk, nr_fixed_rate_clk); }