mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[PATCH] Eliminate __attribute__ ((packed)) warnings for gcc-4.1
Since version 4.1 the gcc is warning about ignored attributes. This patch is using the equivalent attribute on the struct instead of on each of the structure or union members. GCC Manual: "Specifying Attributes of Types packed This attribute, attached to struct or union type definition, specifies that each member of the structure or union is placed to minimize the memory required. When attached to an enum definition, it indicates that the smallest integral type should be used. Specifying this attribute for struct and union types is equivalent to specifying the packed attribute on each of the structure or union members." Signed-off-by: Jan Blunck <jblunck@suse.de> Cc: Dave Jones <davej@codemonkey.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
d8a3349667
commit
6a878184c2
15 changed files with 335 additions and 335 deletions
|
@ -577,8 +577,8 @@ struct ring_descr_hw {
|
|||
struct {
|
||||
u8 addr_res[3];
|
||||
volatile u8 status; /* descriptor status */
|
||||
} rd_s __attribute__((packed));
|
||||
} rd_u __attribute((packed));
|
||||
} __attribute__((packed)) rd_s;
|
||||
} __attribute((packed)) rd_u;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
#define rd_addr rd_u.addr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue