On Tuesday 28 April 2009, Oliver Neukum wrote: > Am Dienstag 28 April 2009 04:52:34 schrieb Sarah Sharp: > > +/** > > + * struct doorbell_array > > + * > > + * Section 5.6 > > + */ > > +struct xhci_doorbell_array { > > + u32 doorbell[256]; > > +} __attribute__ ((packed)); > > If you declare this packed, does gcc still give you atomic writes on > all platforms or will it write bytewise? For that matter ... why "packed"? To ensure that it can be un-aligned? I thought it was pretty much guaranteed that an array of same-size values will have no padding. :) -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html