[PATCH 1/1] drivers: net: silence compiler warning in smc91x.c

Sergei Shtylyov sergei.shtylyov at cogentembedded.com
Fri Jan 10 15:42:41 EST 2014


Hello.

On 01/10/2014 06:04 AM, Pankaj Dubey wrote:

> 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"

    Only "typecast".

> CC: "David S. Miller" <davem at davemloft.net>
> CC: Jingoo Han <jg1.han at samsung.com>
> CC: netdev at vger.kernel.org
> Signed-off-by: Pankaj Dubey <pankaj.dubey at samsung.com>

WBR, Sergei




More information about the linux-arm-kernel mailing list