Messages in this thread | | | Subject | Re: [BK PATCHES] 2.6.x libata fixes (mostly) | From | Roland Dreier <> | Date | Wed, 23 Feb 2005 14:01:44 -0800 |
| |
Prakash> If I am not totally mistaken this is not gcc4 friendly Prakash> code. (lvalue thing...)
Actually you misread the code slightly. It's a little subtle, but code like
*(__le32 *)prd = cpu_to_le32(len);
is not using a cast as an lvalue. It's dereferencing a cast and as such is totally correct, idiomatic and clean C.
- Roland - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |