2011/9/30 Franky Lin <[email protected]>:
> From: Arend van Spriel <[email protected]>
> +struct d11rxhdr_le {
> + __le16 RxFrameSize;
> + u16 PAD;
> + __le16 PhyRxStatus_0;
> + __le16 PhyRxStatus_1;
> + __le16 PhyRxStatus_2;
> + __le16 PhyRxStatus_3;
> + __le16 PhyRxStatus_4;
> + __le16 PhyRxStatus_5;
> + __le16 RxStatus1;
> + __le16 RxStatus2;
> + __le16 RxTSFTime;
> + __le16 RxChan;
> +} __packed;
So you decided to use __packed here anyway for some reason? ;)
> struct d11rxhdr {
> u16 RxFrameSize;
> u16 PAD;
> @@ -1392,20 +1407,18 @@ struct d11rxhdr {
> u16 RxStatus2;
> u16 RxTSFTime;
> u16 RxChan;
> -} __packed;
> +};
You should be right, none compiler should break that alignment...
still no idea why usage of __packed hurt anyone, made code clear
according to me.
--
Rafał
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel