File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -300,13 +300,13 @@ struct cxl_mbox_identify {
300
300
} __packed ;
301
301
302
302
struct cxl_mbox_get_lsa {
303
- u32 offset ;
304
- u32 length ;
303
+ __le32 offset ;
304
+ __le32 length ;
305
305
} __packed ;
306
306
307
307
struct cxl_mbox_set_lsa {
308
- u32 offset ;
309
- u32 reserved ;
308
+ __le32 offset ;
309
+ __le32 reserved ;
310
310
u8 data [];
311
311
} __packed ;
312
312
Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ static int cxl_pmem_get_config_data(struct cxl_dev_state *cxlds,
108
108
return - EINVAL ;
109
109
110
110
get_lsa = (struct cxl_mbox_get_lsa ) {
111
- .offset = cmd -> in_offset ,
112
- .length = cmd -> in_length ,
111
+ .offset = cpu_to_le32 ( cmd -> in_offset ) ,
112
+ .length = cpu_to_le32 ( cmd -> in_length ) ,
113
113
};
114
114
115
115
rc = cxl_mbox_send_cmd (cxlds , CXL_MBOX_OP_GET_LSA , & get_lsa ,
@@ -139,7 +139,7 @@ static int cxl_pmem_set_config_data(struct cxl_dev_state *cxlds,
139
139
return - ENOMEM ;
140
140
141
141
* set_lsa = (struct cxl_mbox_set_lsa ) {
142
- .offset = cmd -> in_offset ,
142
+ .offset = cpu_to_le32 ( cmd -> in_offset ) ,
143
143
};
144
144
memcpy (set_lsa -> data , cmd -> in_buf , cmd -> in_length );
145
145
You can’t perform that action at this time.
0 commit comments