lkml.org 
[lkml]   [2005]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [BK PATCHES] 2.6.x libata fixes (mostly)
From
Date
    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/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.074 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site