Message ID | 1389430859-4726-1-git-send-email-pankaj.dubey@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 BA5669F169 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 11 Jan 2014 08:46:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F41632013D for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 11 Jan 2014 08:46:47 +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 F2D5A2013A for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 11 Jan 2014 08:46:46 +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 1W1uDI-0006OO-MF; Sat, 11 Jan 2014 08:46:40 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1uDG-0002Id-8x; Sat, 11 Jan 2014 08:46:38 +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 1W1uDC-0002Hs-TW for linux-arm-kernel@lists.infradead.org; Sat, 11 Jan 2014 08:46:36 +0000 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> for linux-arm-kernel@lists.infradead.org; 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 <pankaj.dubey@samsung.com> To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 IeoFJL5NPsQCUSMrsekAM8RtkhIHV9xgmcAouICRYR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e1b5JIPn7ocEzv/qNbRF8Fqk85LG32/23dwgQ6zn8XppUeu6/asm+5cfKPyJz87w+K+H4xC nw8yCi5TYinOSDTUYi4qTgQANqEj3sECAAA= 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-20140111_034635_168402_DB569CCA X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.0 (-------) Cc: netdev@vger.kernel.org, jg1.han@samsung.com, davem@davemloft.net, Pankaj Dubey <pankaj.dubey@samsung.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 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 |
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); }
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 <pankaj.dubey@samsung.com> --- Changes since v2: Fix typo in commit message drivers/net/ethernet/smsc/smc91x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)