]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit6a878184c202395ea17212f111ab9ec4b5f6d6ee
tree7a4143652fcb41693af44963b7e94b334dd94f54
parentd8a33496671e4533aed090793436d58debea6f3a
[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