From: Benjamin Poirier Date: Wed, 25 Apr 2012 04:49:20 +0000 (+0000) Subject: tlan: add cast needed for proper 64 bit operation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da3a9e9e7b8341cfc939818103cb7ef9f5293de2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tlan: add cast needed for proper 64 bit operation Changes this beauty into a statement that actually has an effect on amd64. Tested-by: Per Jessen Signed-off-by: Benjamin Poirier Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c index 817ad3bc4957..efd36691ce54 100644 --- a/drivers/net/ethernet/ti/tlan.c +++ b/drivers/net/ethernet/ti/tlan.c @@ -228,7 +228,7 @@ tlan_get_skb(const struct tlan_list *tag) unsigned long addr; addr = tag->buffer[9].address; - addr |= (tag->buffer[8].address << 16) << 16; + addr |= ((unsigned long) tag->buffer[8].address << 16) << 16; return (struct sk_buff *) addr; }