Benjamin Herrenschmidt wrote: (bitfields as accessors to on-the-wire data) ... > relies on the fact that it -seems- that by luck, gcc only has two > representations around and they match little/big endian archs (though > have we verified that is always correct, especially between 32 and 64 > bits archs ?)
As you perhaps noticed, this is already used on very basic packets (the selfIDs which are the first ones generated by PHYs after each bus reset). Therefore I suppose that it works also on 64bit architectures even though they are certainly less extensively tested than 32bit ones. But since there are no guarantees for it to work as intended,... > It's still wrong to do. ...I added it to my list of things to fix. Thanks, -- Stefan Richter -=====-=-==- ==-- --==- http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/