Re: [patch 34/54] Staging: hv: remove STRUCT_PACKED and STRUCT_ALIGNED defines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 21 July 2009 01:46:41 +0200, Arnd Bergmann wrote:> On Friday 17 July 2009, Greg Kroah-Hartman wrote:> > @@ -43,7 +43,7 @@ typedef struct _RING_BUFFER {> >         // volatile u32 InterruptMask;> >         // Ring data starts here + RingDataStartOffset !!! DO NOT place any fields below this !!!> >      u8         Buffer[0];> > -} STRUCT_PACKED RING_BUFFER;> > +} __attribute__((packed)) RING_BUFFER;> >  > > The data structure is actually packed already, the attribute does not make it better> and could be removed. We also have __packed as a shortcut for __attribute__((packed)).
Honestly, I don't know how useful __packed really is.  In a sharedkernel/userspace header, it is only defined for the kernel.
Jörn
-- Do not stop an army on its way home.-- Sun Tzu_______________________________________________Virtualization mailing listVirtualization@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx://lists.linux-foundation.org/mailman/listinfo/virtualization


[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux