From: Jason Gunthorpe Date: Fri, 19 Jan 2007 18:58:49 +0000 (-0700) Subject: IB: Make sure struct ib_user_mad.data is aligned X-Git-Tag: v2.6.21-rc2~42^2~19^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fa7252ed4d92397baf30e4a144af95a33eaa925b;p=linux-2.6-omap-h63xx.git IB: Make sure struct ib_user_mad.data is aligned Make the untyped data region in ib_user_mad have type u64 so that it gets aligned properly. This avoids alignment faults in ib_umad when casting the data field to an rmpp_mad and accessing the 64-bit tid field on architectures like ia64. Signed-off-by: Jason Gunthorpe Signed-off-by: Roland Dreier --- diff --git a/include/rdma/ib_user_mad.h b/include/rdma/ib_user_mad.h index 44537aa32e6..d66b15ea82c 100644 --- a/include/rdma/ib_user_mad.h +++ b/include/rdma/ib_user_mad.h @@ -98,7 +98,7 @@ struct ib_user_mad_hdr { */ struct ib_user_mad { struct ib_user_mad_hdr hdr; - __u8 data[0]; + __u64 data[0]; }; /**