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: 3464241 Return-Path: X-Original-To: patchwork-linux-arm@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 CC0A0C02DC for ; Fri, 10 Jan 2014 02:50:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 107EA2010E for ; Fri, 10 Jan 2014 02:50: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 2754B2010B for ; Fri, 10 Jan 2014 02:50: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 1W1SAR-00066C-M4; Fri, 10 Jan 2014 02:49:51 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1SAK-00079q-MT; Fri, 10 Jan 2014 02:49:44 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1SAE-00077y-Ah for linux-arm-kernel@lists.infradead.org; Fri, 10 Jan 2014 02:49:40 +0000 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> for linux-arm-kernel@lists.infradead.org; Fri, 10 Jan 2014 11:49:14 +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 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+8knhDYzMjC1MTU2Mjc0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/8MCAAA= 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-20140109_214938_654517_4C140ED4 X-CRM114-Status: GOOD ( 10.20 ) X-Spam-Score: -6.9 (------) Cc: Pankaj Dubey , Jingoo Han , "David S. Miller" , netdev@vger.kernel.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 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); }