Whamcloud - gitweb
b=22588 fix compile issue with gcc 4.4
authorRobert Read <rread@whamcloud.com>
Thu, 9 Sep 2010 18:57:30 +0000 (22:57 +0400)
committerMikhail Pershin <tappro@sun.com>
Mon, 13 Sep 2010 05:05:19 +0000 (09:05 +0400)
i=brian
i=andrew

add may_alias attribute to struct lov_user_md_v1

lustre/include/lustre/lustre_user.h

index e275262..cb7d19d 100644 (file)
@@ -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 */
         __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 */
 
 struct lov_user_md_v3 {           /* LOV EA user data (host-endian) */
         __u32 lmm_magic;          /* magic number = LOV_USER_MAGIC_V3 */