From patchwork Fri Jan 10 03:04:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 3464221 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 C31639F1C4 for ; Fri, 10 Jan 2014 02:49:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E24CA2010E for ; Fri, 10 Jan 2014 02:49:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DEEDB2010B for ; Fri, 10 Jan 2014 02:49:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751730AbaAJCtR (ORCPT ); Thu, 9 Jan 2014 21:49:17 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:44387 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751490AbaAJCtQ (ORCPT ); Thu, 9 Jan 2014 21:49:16 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZ500HV0ZU2F9C0@mailout1.samsung.com>; Fri, 10 Jan 2014 11:49:15 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 21.DB.12635.AAF5FC25; Fri, 10 Jan 2014 11:49:14 +0900 (KST) X-AuditID: cbfee68d-b7fcd6d00000315b-32-52cf5faac73d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 28.68.28157.AAF5FC25; Fri, 10 Jan 2014 11:49:14 +0900 (KST) Received: from localhost.localdomain ([12.23.120.139]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MZ5001UUZTZO6B0@mmp2.samsung.com>; Fri, 10 Jan 2014 11:49:14 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Pankaj Dubey , "David S. Miller" , Jingoo Han , netdev@vger.kernel.org Subject: [PATCH 1/1] drivers: net: silence compiler warning in smc91x.c Date: Fri, 10 Jan 2014 12:04:06 +0900 Message-id: <1389323046-4521-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsVy+t8zA91V8eeDDL6eVrOYc76FxeLywkus FpseX2O1mHF+H5PFsQViFou2fmF3YPPYsvImk8fmJfUefVtWMXp83iQXwBLFZZOSmpNZllqk b5fAldGxYA97wVzOipWT+tkbGG+xdzFyckgImEhMPbyLDcIWk7hwbz2QzcUhJLCMUeLJ3CPM MEUzZ61hhkhMZ5R41PmHHcJpY5LYvecDI0gVm4CuxJP3c8E6RAS8JSaf+QtWxCwwiVFiyv2F YDuEBdwlHp+fwwpiswioSuzZ0gh2By9QfHbTVqBmDqB1ChJzJtlAbP7MJtG2Rw+iXEDi2+RD LBAlshKbDkAdJylxcMUNlgmMggsYGVYxiqYWJBcUJ6UXGeoVJ+YWl+al6yXn525ihIRn7w7G 2wesDzEmA42byCwlmpwPDO+8knhDYzMjC1MTU2Mjc0sz0oSVxHmTHiYFCQmkJ5akZqemFqQW xReV5qQWH2Jk4uCUamA0Ko+cbfrlqriOxNq6G25SUdu6HDdfvXXV5pNEfsOeq7Js/UWl3+du is/2vx5/PzfGYN3Z7JPpbC5FovWNO2Pj8x1P/shN9FTPncztn3478hJLgdn6gyWV4o5f12ff PDa7QpL/xDG5u0ZTTn2+V9a6P/KP9ao9v56dTdZn8yss3bddYtuHGCMlluKMREMt5qLiRAAX JCwaZQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsVy+t9jQd1V8eeDDPa+VLKYc76FxeLywkus FpseX2O1mHF+H5PFsQViFou2fmF3YPPYsvImk8fmJfUefVtWMXp83iQXwBLVwGiTkZqYklqk kJqXnJ+SmZduq+QdHO8cb2pmYKhraGlhrqSQl5ibaqvk4hOg65aZA7RbSaEsMacUKBSQWFys pG+HaUJoiJuuBUxjhK5vSBBcj5EBGkhYx5jRsWAPe8FczoqVk/rZGxhvsXcxcnJICJhIzJy1 hhnCFpO4cG89WxcjF4eQwHRGiUedf9ghnDYmid17PjCCVLEJ6Eo8eT8XrENEwFti8pm/YEXM ApMYJabcX8gGkhAWcJd4fH4OK4jNIqAqsWdLI9g6XqD47KatQM0cQOsUJOZMspnAyL2AkWEV o2hqQXJBcVJ6rpFecWJucWleul5yfu4mRnD4P5PewbiqweIQowAHoxIP74ris0FCrIllxZW5 hxglOJiVRHhZvc8HCfGmJFZWpRblxxeV5qQWH2JMBlo+kVlKNDkfGJt5JfGGxiZmRpZGZhZG JubmpAkrifMebLUOFBJITyxJzU5NLUgtgtnCxMEp1cCY/PrbvNdCTedyOiqFbmhdMTj+4Iby jh1Huh892q/nVztdIWOD+p0vTrMFPE8qShbl63b/7duyJ379krXVq/PjZqh0bzl1KSg86UmJ kJ3e1dWafipa8y2Z//JZnni7aMmHnZs8zzXf/cd8U82+2vNyDUeDfUjnu7uVvjZPLy2Zu2PP kkIPrqsflFiKMxINtZiLihMBG3vr/8MCAAA= 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=-6.9 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 If used 64 bit compiler GCC warns that: drivers/net/ethernet/smsc/smc91x.c:1897:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] This patch fixes this by changing typecase from "unsigned int" to "unsigned long" CC: "David S. Miller" CC: Jingoo Han CC: netdev@vger.kernel.org Signed-off-by: Pankaj Dubey --- drivers/net/ethernet/smsc/smc91x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index 0c9b5d9..42e79b4 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c @@ -1894,7 +1894,7 @@ static int smc_probe(struct net_device *dev, void __iomem *ioaddr, SMC_SELECT_BANK(lp, 1); val = SMC_GET_BASE(lp); val = ((val & 0x1F00) >> 3) << SMC_IO_SHIFT; - if (((unsigned int)ioaddr & (0x3e0 << SMC_IO_SHIFT)) != val) { + if (((unsigned long)ioaddr & (0x3e0 << SMC_IO_SHIFT)) != val) { netdev_warn(dev, "%s: IOADDR %p doesn't match configuration (%x).\n", CARDNAME, ioaddr, val); }