Commit:     fa7252ed4d92397baf30e4a144af95a33eaa925b
Parent:     1033ff670d49760604f5d4c73a1b60741863a406
Author:     Jason Gunthorpe <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 19 11:58:49 2007 -0700
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Sun Feb 4 14:11:56 2007 -0800

    IB: Make sure struct 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 <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 include/rdma/ib_user_mad.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/rdma/ib_user_mad.h b/include/rdma/ib_user_mad.h
index 44537aa..d66b15e 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];
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to