All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tlan: add cast needed for proper 64 bit operation
@ 2012-04-25 14:49 Benjamin Poirier
  2012-04-25 18:24 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Poirier @ 2012-04-25 14:49 UTC (permalink / raw)
  To: Samuel Chessman; +Cc: netdev, linux-kernel

Changes this beauty into a statement that actually has an effect on amd64.

Tested-by: Per Jessen <per@opensuse.org>
Signed-off-by: Benjamin Poirier <bpoirier@suse.de>
---
 drivers/net/ethernet/ti/tlan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c
index 817ad3b..efd3669 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;
 }
 
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tlan: add cast needed for proper 64 bit operation
  2012-04-25 14:49 [PATCH] tlan: add cast needed for proper 64 bit operation Benjamin Poirier
@ 2012-04-25 18:24 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-04-25 18:24 UTC (permalink / raw)
  To: bpoirier; +Cc: chessman, netdev, linux-kernel

From: Benjamin Poirier <bpoirier@suse.de>
Date: Wed, 25 Apr 2012 10:49:20 -0400

> Changes this beauty into a statement that actually has an effect on amd64.
> 
> Tested-by: Per Jessen <per@opensuse.org>
> Signed-off-by: Benjamin Poirier <bpoirier@suse.de>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-25 18:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-25 14:49 [PATCH] tlan: add cast needed for proper 64 bit operation Benjamin Poirier
2012-04-25 18:24 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.