]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Eliminate __attribute__ ((packed)) warnings for gcc-4.1
authorJan Blunck <jblunck@suse.de>
Sun, 8 Jan 2006 09:05:07 +0000 (01:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:14:07 +0000 (20:14 -0800)
commit2092cacb1943cbff42145b74a64c1a25f6e86faf
tree7a4143652fcb41693af44963b7e94b334dd94f54
parent1565ebd34aea4828baf40f516474b3deb75deb93
[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>
15 files changed:
drivers/isdn/hisax/hisax.h
drivers/isdn/hisax/hisax_fcpcipnp.h
drivers/net/3c527.h
drivers/net/irda/vlsi_ir.h
drivers/net/wan/sdla.c
include/linux/atalk.h
include/linux/cycx_x25.h
include/linux/if_frad.h
include/linux/isdnif.h
include/linux/ncp.h
include/linux/sdla.h
include/linux/wavefront.h
include/net/dn_dev.h
include/net/dn_nsp.h
include/sound/wavefront.h