From patchwork Sat Jan 11 09:00:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 3468891 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 F1F529F169 for ; Sat, 11 Jan 2014 08:46:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 30BE92013D for ; Sat, 11 Jan 2014 08:46:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CB2DE2013A for ; Sat, 11 Jan 2014 08:46:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751758AbaAKIqK (ORCPT ); Sat, 11 Jan 2014 03:46:10 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:9239 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751033AbaAKIqJ (ORCPT ); Sat, 11 Jan 2014 03:46:09 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZ8002XIB0VAX90@mailout4.samsung.com>; Sat, 11 Jan 2014 17:46:07 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id FF.94.09028.FC401D25; Sat, 11 Jan 2014 17:46:07 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-cd-52d104cf6fad Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 0E.87.29263.FC401D25; Sat, 11 Jan 2014 17:46:07 +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 <0MZ800LBNB0Q2W20@mmp2.samsung.com>; Sat, 11 Jan 2014 17:46:07 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: davem@davemloft.net, jg1.han@samsung.com, netdev@vger.kernel.org, Pankaj Dubey Subject: [PATCH v2] drivers: net: silence compiler warning. Date: Sat, 11 Jan 2014 18:00:59 +0900 Message-id: <1389430859-4726-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsVy+t8zA93zLBeDDLZe1bKYc76FxeLywkus FpseX2O1mHF+H5PFsQViFou2fmF3YPPYsvImk8fmJfUefVtWMXp83iQXwBLFZZOSmpNZllqk b5fAlXH7z0S2gnscFY8+n2NvYJzH3sXIwSEhYCIxfYFbFyMnkCkmceHeerYuRi4OIYFljBJ7 9h9ngUiYSCy4O5sRIjGdUWL3rnZ2CKeNSeLjwo9sIFVsAroST97PZQaxRQS8JSaf+Qu2gVkg X+LFUy+QsLCAtcT7H3tZQWwWAVWJ76ensYPYvALuEg2ti5kgDlKQmDPJBmS8hMBnNol3/3rZ IeoFJL5NPsQCUSMrsekAM8RtkhIHV9xgmcAouICRYRWjaGpBckFxUnqRkV5xYm5xaV66XnJ+ 7iZGSGj27WC8ecD6EGMy0LiJzFKiyfnA0M4riTc0NjOyMDUxNTYytzQjTVhJnHfRw6QgIYH0 xJLU7NTUgtSi+KLSnNTiQ4xMHJxSDYzx71nXJ/MlNDeKnn6j4fP1/2ePZIkH29bsz3z7VSJi acnhg49lv9x0OyVl3FtqzrnP/9zF3As+cTV78me8Z3VunpruqbLXP585PslDSe3qxc0cRgfK OoKN/eZ81CttXa/Bq5I+RcFu0ZpJU/OZAid45R+tF37jsTTJe7rg7gs6CYXSLzcalymxFGck GmoxFxUnAgB4DlT1YwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsVy+t9jQd3zLBeDDA5sVrOYc76FxeLywkus FpseX2O1mHF+H5PFsQViFou2fmF3YPPYsvImk8fmJfUefVtWMXp83iQXwBLVwGiTkZqYklqk kJqXnJ+SmZduq+QdHO8cb2pmYKhraGlhrqSQl5ibaqvk4hOg65aZA7RbSaEsMacUKBSQWFys pG+HaUJoiJuuBUxjhK5vSBBcj5EBGkhYx5hx+89EtoJ7HBWPPp9jb2Ccx97FyMkhIWAiseDu bEYIW0ziwr31bF2MXBxCAtMZJXbvameHcNqYJD4u/MgGUsUmoCvx5P1cZhBbRMBbYvKZv0BF HBzMAvkSL556gYSFBawl3v/YywpiswioSnw/PQ1sGa+Au0RD62ImkHIJAQWJOZNsJjByL2Bk WMUomlqQXFCclJ5rqFecmFtcmpeul5yfu4kRHPrPpHYwrmywOMQowMGoxMMbKHIhSIg1say4 MvcQowQHs5IIL+snoBBvSmJlVWpRfnxRaU5q8SHGZKDlE5mlRJPzgXGZVxJvaGxiZmRpZGZh ZGJuTpqwkjjvgVbrQCGB9MSS1OzU1ILUIpgtTBycUg2MgkrOt+fHztQO3mzCnWkre12OlWWi tM2Ld2aeE4O8zU8JZsRbFS31jdE68XWhlO69yiR5iZnvT2wPuPAhqdXQ3M/X9nUgm4pmmXzp 9e1b5JIPn7ocEzv/qNbRF8Fqk85LG32/23dwgQ6zn8XppUeu6/asm+5cfKPyJz87w+K+H4xC nw8yCi5TYinOSDTUYi4qTgQANqEj3sECAAA= 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.0 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 typecast from "unsigned int" to "unsigned long" Signed-off-by: Pankaj Dubey --- Changes since v2: Fix typo in commit message 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); }