From: Robert Read Date: Thu, 9 Sep 2010 18:57:30 +0000 (+0400) Subject: b=22588 fix compile issue with gcc 4.4 X-Git-Tag: 2.0.52.0~5 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=5d8b18f84628a6bc9f6615ca8f6939ecf2376006 b=22588 fix compile issue with gcc 4.4 i=brian i=andrew add may_alias attribute to struct lov_user_md_v1 --- diff --git a/lustre/include/lustre/lustre_user.h b/lustre/include/lustre/lustre_user.h index e275262..cb7d19d 100644 --- a/lustre/include/lustre/lustre_user.h +++ b/lustre/include/lustre/lustre_user.h @@ -195,7 +195,7 @@ struct lov_user_md_v1 { /* LOV EA user data (host-endian) */ __u16 lmm_stripe_count; /* num stripes in use for this object */ __u16 lmm_stripe_offset; /* starting stripe offset in lmm_objects */ struct lov_user_ost_data_v1 lmm_objects[0]; /* per-stripe data */ -} __attribute__((packed)); +} __attribute__((packed, __may_alias__)); struct lov_user_md_v3 { /* LOV EA user data (host-endian) */ __u32 lmm_magic; /* magic number = LOV_USER_MAGIC_V3 */