Fix modem/alt1250/altcom_cmd_sms.h:148:7: error: field u within 'struct apicmd_sms_msg_s' is less aligned than 'union

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-30 12:18:34 +08:00 committed by Petro Karashchenko
parent e9f630ecb5
commit 59416af3e6
1 changed files with 6 additions and 4 deletions

View File

@ -123,7 +123,7 @@ begin_packed_struct struct apicmd_sms_msg_s
{ {
/* SMS-DELIVER */ /* SMS-DELIVER */
struct begin_packed_struct struct
{ {
uint8_t valid_indicator; uint8_t valid_indicator;
struct apicmd_sms_addr_s src_addr; struct apicmd_sms_addr_s src_addr;
@ -134,17 +134,19 @@ begin_packed_struct struct apicmd_sms_msg_s
/* Variable length array */ /* Variable length array */
uint16_t user_data[0]; uint16_t user_data[0];
} recv; }
end_packed_struct recv;
/* SMS-STATUS-REPORT */ /* SMS-STATUS-REPORT */
struct begin_packed_struct struct
{ {
uint8_t status; uint8_t status;
struct apicmd_sms_time_s sc_time; struct apicmd_sms_time_s sc_time;
uint8_t ref_id; uint8_t ref_id;
struct apicmd_sms_time_s discharge_time; struct apicmd_sms_time_s discharge_time;
} delivery_report; }
end_packed_struct delivery_report;
} u; } u;
} end_packed_struct; } end_packed_struct;