On Wed, 15 Jun 2005 16:04:26 +0200, "Jochen Karrer" <[EMAIL PROTECTED]> wrote:
> It seems to be the conversion to a pointer and back that makes > le16_to_cpus to loose the __attribute__((packed)). In my opinion > the compiler should warn that it discards the attribute. > I suspect it does something wrong on other architectures too, but most > support non aligned access. All architectures support unaligned access, including ARM. Some do it by the way of trap processing. It's just your particular kernel is broken for some reason. Talk to your supplier about it. > So my proposal is to avoid the call of the macro with a pointer. No. This is not the only place where kernel does unaligned accesses. -- Pete ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
