From b88cafcc8253680d8a30e7f21a6b98570b3ff1dd Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 13 Aug 2006 10:32:12 +0200 Subject: [GCC4] fix warning in include/linux/atalk.h This patch fixes this warning with gcc 4 : In file included from /usr/src/git/linux-2.4/include/net/sock.h:90, from /usr/src/git/linux-2.4/include/net/ip.h:39, from /usr/src/git/linux-2.4/include/net/checksum.h:31, from /usr/src/git/linux-2.4/include/linux/raid/md.h:35, from check.c:21: /usr/src/git/linux-2.4/include/linux/atalk.h:140: warning: 'packed' attribute ignored for field of type '__u8[5u]' /usr/src/git/linux-2.4/include/linux/atalk.h:141: warning: 'packed' attribute ignored for field of type '__u8' /usr/src/git/linux-2.4/include/linux/atalk.h:143: warning: 'packed' attribute ignored for field of type '__u8' /usr/src/git/linux-2.4/include/linux/atalk.h:144: warning: 'packed' attribute ignored for field of type '__u8[5u]' /usr/src/git/linux-2.4/include/linux/atalk.h:145: warning: 'packed' attribute ignored for field of type '__u8' /usr/src/git/linux-2.4/include/linux/atalk.h:147: warning: 'packed' attribute ignored for field of type '__u8' --- include/linux/atalk.h | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/atalk.h b/include/linux/atalk.h index 5c2c0c3..def2ffe 100644 --- a/include/linux/atalk.h +++ b/include/linux/atalk.h @@ -137,14 +137,14 @@ #define AARP_PA_ALEN 4 #define AARP_REQUEST 1 #define AARP_REPLY 2 #define AARP_PROBE 3 - __u8 hw_src[ETH_ALEN] __attribute__ ((packed)); - __u8 pa_src_zero __attribute__ ((packed)); + __u8 hw_src[ETH_ALEN]; + __u8 pa_src_zero; __u16 pa_src_net __attribute__ ((packed)); - __u8 pa_src_node __attribute__ ((packed)); - __u8 hw_dst[ETH_ALEN] __attribute__ ((packed)); - __u8 pa_dst_zero __attribute__ ((packed)); + __u8 pa_src_node; + __u8 hw_dst[ETH_ALEN]; + __u8 pa_dst_zero; __u16 pa_dst_net __attribute__ ((packed)); - __u8 pa_dst_node __attribute__ ((packed)); + __u8 pa_dst_node; }; #define AARP_EXPIRY_TIME (5*60*HZ) /* Not specified - how long till we drop a resolved entry */ -- 1.4.2