From: Andrew Morton Date: Fri, 26 Aug 2005 00:14:46 +0000 (-0700) Subject: [PATCH] s2io build fix X-Git-Tag: v2.6.14-rc1~1032^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7ef24b69f9ff4858d7242059fbb19477c10e6dd7;p=linux-2.6-omap-h63xx.git [PATCH] s2io build fix Damir Perisa reports: drivers/net/s2io.h:765: error: invalid lvalue in assignment drivers/net/s2io.h:766: error: invalid lvalue in assignment That's a gcc4 error. I don't see why the casts are there anyway.. Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h index 5d9270730ca..bc64d967f08 100644 --- a/drivers/net/s2io.h +++ b/drivers/net/s2io.h @@ -762,8 +762,8 @@ static inline u64 readq(void __iomem *addr) { u64 ret = 0; ret = readl(addr + 4); - (u64) ret <<= 32; - (u64) ret |= readl(addr); + ret <<= 32; + ret |= readl(addr); return ret; }