aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/include/ib_mad.h
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2005-08-14 00:05:57 -0400
committerRoland Dreier <rolandd@cisco.com>2005-08-26 23:37:35 -0400
commit97f52eb438be7caebe026421545619d8a0c1398a (patch)
tree1085acb833b691e9cc7ef607e4b4ac8cbd81e03f /drivers/infiniband/include/ib_mad.h
parent92a6b34bf4d0d11c54b2a6bdd6240f98cb326200 (diff)
[PATCH] IB: sparse endianness cleanup
Fix sparse warnings. Use __be* where appropriate. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/include/ib_mad.h')
-rw-r--r--drivers/infiniband/include/ib_mad.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/infiniband/include/ib_mad.h b/drivers/infiniband/include/ib_mad.h
index 491b6f25b3b8..63237805d6af 100644
--- a/drivers/infiniband/include/ib_mad.h
+++ b/drivers/infiniband/include/ib_mad.h
@@ -111,12 +111,12 @@ struct ib_mad_hdr {
111 u8 mgmt_class; 111 u8 mgmt_class;
112 u8 class_version; 112 u8 class_version;
113 u8 method; 113 u8 method;
114 u16 status; 114 __be16 status;
115 u16 class_specific; 115 __be16 class_specific;
116 u64 tid; 116 __be64 tid;
117 u16 attr_id; 117 __be16 attr_id;
118 u16 resv; 118 __be16 resv;
119 u32 attr_mod; 119 __be32 attr_mod;
120}; 120};
121 121
122struct ib_rmpp_hdr { 122struct ib_rmpp_hdr {
@@ -124,8 +124,8 @@ struct ib_rmpp_hdr {
124 u8 rmpp_type; 124 u8 rmpp_type;
125 u8 rmpp_rtime_flags; 125 u8 rmpp_rtime_flags;
126 u8 rmpp_status; 126 u8 rmpp_status;
127 u32 seg_num; 127 __be32 seg_num;
128 u32 paylen_newwin; 128 __be32 paylen_newwin;
129}; 129};
130 130
131typedef u64 __bitwise ib_sa_comp_mask; 131typedef u64 __bitwise ib_sa_comp_mask;
@@ -139,9 +139,9 @@ typedef u64 __bitwise ib_sa_comp_mask;
139 * the wire so we can't change the layout) 139 * the wire so we can't change the layout)
140 */ 140 */
141struct ib_sa_hdr { 141struct ib_sa_hdr {
142 u64 sm_key; 142 __be64 sm_key;
143 u16 attr_offset; 143 __be16 attr_offset;
144 u16 reserved; 144 __be16 reserved;
145 ib_sa_comp_mask comp_mask; 145 ib_sa_comp_mask comp_mask;
146} __attribute__ ((packed)); 146} __attribute__ ((packed));
147 147