From: Pankaj Dubey Date: Fri, 10 Jan 2014 03:04:06 +0000 (+0900) Subject: drivers: net: silence compiler warning in smc91x.c X-Git-Tag: v4.0~2533^2~217 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bc21eedcfbf35a087911578e7e30f98c5ece478;p=platform%2Fkernel%2Flinux-amlogic.git drivers: net: silence compiler warning in smc91x.c 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" CC: "David S. Miller" CC: Jingoo Han CC: netdev@vger.kernel.org Signed-off-by: Pankaj Dubey Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index 96f79f7..a6a9e1e 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); }