Skip to content

Commit

Permalink
qseecom: Fix ignored attribute warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
  • Loading branch information
nathanchance authored and khusika committed Jun 15, 2018
1 parent df77d2b commit c6cdce0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
8 changes: 4 additions & 4 deletions drivers/misc/qseecom_legacy.h
Expand Up @@ -33,7 +33,7 @@ enum tz_sched_cmd_status {
TZ_SCHED_STATUS_MAX = 0x7FFFFFFF
};
/* Command structure for initializing shared buffers */
__packed struct qse_pr_init_sb_req_s {
struct __packed qse_pr_init_sb_req_s {
/* First 4 bytes should always be command id */
uint32_t pr_cmd;
/* Pointer to the physical location of sb buffer */
Expand All @@ -43,7 +43,7 @@ __packed struct qse_pr_init_sb_req_s {
uint32_t listener_id;
};

__packed struct qse_pr_init_sb_rsp_s {
struct __packed qse_pr_init_sb_rsp_s {
/* First 4 bytes should always be command id */
uint32_t pr_cmd;
/* Return code, 0 for success, Approp error code otherwise */
Expand All @@ -57,7 +57,7 @@ __packed struct qse_pr_init_sb_rsp_s {
* buffer
* @sb_in_cmd_len: length of command buffer
*/
__packed struct qseecom_command {
struct __packed qseecom_command {
uint32_t cmd_type;
uint8_t *sb_in_cmd_addr;
uint32_t sb_in_cmd_len;
Expand All @@ -70,7 +70,7 @@ __packed struct qseecom_command {
* buffer
* @sb_in_rsp_len: length of command response
*/
__packed struct qseecom_response {
struct __packed qseecom_response {
uint32_t cmd_status;
uint8_t *sb_in_rsp_addr;
uint32_t sb_in_rsp_len;
Expand Down
62 changes: 31 additions & 31 deletions include/soc/qcom/qseecomi.h
Expand Up @@ -104,82 +104,82 @@ enum qseecom_qsee_reentrancy_phase {
QSEE_REENTRANCY_PHASE_MAX = 0xFF
};

__packed struct qsee_apps_region_info_ireq {
struct __packed qsee_apps_region_info_ireq {
uint32_t qsee_cmd_id;
uint32_t addr;
uint32_t size;
};

__packed struct qsee_apps_region_info_64bit_ireq {
struct __packed qsee_apps_region_info_64bit_ireq {
uint32_t qsee_cmd_id;
uint64_t addr;
uint32_t size;
};

__packed struct qseecom_check_app_ireq {
struct __packed qseecom_check_app_ireq {
uint32_t qsee_cmd_id;
char app_name[MAX_APP_NAME_SIZE];
};

__packed struct qseecom_load_app_ireq {
struct __packed qseecom_load_app_ireq {
uint32_t qsee_cmd_id;
uint32_t mdt_len; /* Length of the mdt file */
uint32_t img_len; /* Length of .bxx and .mdt files */
uint32_t phy_addr; /* phy addr of the start of image */
char app_name[MAX_APP_NAME_SIZE]; /* application name*/
};

__packed struct qseecom_load_app_64bit_ireq {
struct __packed qseecom_load_app_64bit_ireq {
uint32_t qsee_cmd_id;
uint32_t mdt_len;
uint32_t img_len;
uint64_t phy_addr;
char app_name[MAX_APP_NAME_SIZE];
};

__packed struct qseecom_unload_app_ireq {
struct __packed qseecom_unload_app_ireq {
uint32_t qsee_cmd_id;
uint32_t app_id;
};

__packed struct qseecom_load_lib_image_ireq {
struct __packed qseecom_load_lib_image_ireq {
uint32_t qsee_cmd_id;
uint32_t mdt_len;
uint32_t img_len;
uint32_t phy_addr;
};

__packed struct qseecom_load_lib_image_64bit_ireq {
struct __packed qseecom_load_lib_image_64bit_ireq {
uint32_t qsee_cmd_id;
uint32_t mdt_len;
uint32_t img_len;
uint64_t phy_addr;
};

__packed struct qseecom_unload_lib_image_ireq {
struct __packed qseecom_unload_lib_image_ireq {
uint32_t qsee_cmd_id;
};

__packed struct qseecom_register_listener_ireq {
struct __packed qseecom_register_listener_ireq {
uint32_t qsee_cmd_id;
uint32_t listener_id;
uint32_t sb_ptr;
uint32_t sb_len;
};

__packed struct qseecom_register_listener_64bit_ireq {
struct __packed qseecom_register_listener_64bit_ireq {
uint32_t qsee_cmd_id;
uint32_t listener_id;
uint64_t sb_ptr;
uint32_t sb_len;
};

__packed struct qseecom_unregister_listener_ireq {
struct __packed qseecom_unregister_listener_ireq {
uint32_t qsee_cmd_id;
uint32_t listener_id;
};

__packed struct qseecom_client_send_data_ireq {
struct __packed qseecom_client_send_data_ireq {
uint32_t qsee_cmd_id;
uint32_t app_id;
uint32_t req_ptr;
Expand All @@ -190,7 +190,7 @@ __packed struct qseecom_client_send_data_ireq {
uint32_t sglistinfo_len;
};

__packed struct qseecom_client_send_data_64bit_ireq {
struct __packed qseecom_client_send_data_64bit_ireq {
uint32_t qsee_cmd_id;
uint32_t app_id;
uint64_t req_ptr;
Expand All @@ -201,28 +201,28 @@ __packed struct qseecom_client_send_data_64bit_ireq {
uint32_t sglistinfo_len;
};

__packed struct qseecom_reg_log_buf_ireq {
struct __packed qseecom_reg_log_buf_ireq {
uint32_t qsee_cmd_id;
uint32_t phy_addr;
uint32_t len;
};

__packed struct qseecom_reg_log_buf_64bit_ireq {
struct __packed qseecom_reg_log_buf_64bit_ireq {
uint32_t qsee_cmd_id;
uint64_t phy_addr;
uint32_t len;
};

/* send_data resp */
__packed struct qseecom_client_listener_data_irsp {
struct __packed qseecom_client_listener_data_irsp {
uint32_t qsee_cmd_id;
uint32_t listener_id;
uint32_t status;
uint32_t sglistinfo_ptr;
uint32_t sglistinfo_len;
};

__packed struct qseecom_client_listener_data_64bit_irsp {
struct __packed qseecom_client_listener_data_64bit_irsp {
uint32_t qsee_cmd_id;
uint32_t listener_id;
uint32_t status;
Expand All @@ -237,7 +237,7 @@ __packed struct qseecom_client_listener_data_64bit_irsp {
* buffer
* @sb_in_rsp_len: length of command response
*/
__packed struct qseecom_command_scm_resp {
struct __packed qseecom_command_scm_resp {
uint32_t result;
enum qseecom_command_scm_resp_type resp_type;
unsigned int data;
Expand All @@ -247,30 +247,30 @@ struct qseecom_rpmb_provision_key {
uint32_t key_type;
};

__packed struct qseecom_client_send_service_ireq {
struct __packed qseecom_client_send_service_ireq {
uint32_t qsee_cmd_id;
uint32_t key_type; /* in */
unsigned int req_len; /* in */
uint32_t rsp_ptr; /* in/out */
unsigned int rsp_len; /* in/out */
};

__packed struct qseecom_client_send_service_64bit_ireq {
struct __packed qseecom_client_send_service_64bit_ireq {
uint32_t qsee_cmd_id;
uint32_t key_type;
unsigned int req_len;
uint64_t rsp_ptr;
unsigned int rsp_len;
};

__packed struct qseecom_key_generate_ireq {
struct __packed qseecom_key_generate_ireq {
uint32_t qsee_command_id;
uint32_t flags;
uint8_t key_id[QSEECOM_KEY_ID_SIZE];
uint8_t hash32[QSEECOM_HASH_SIZE];
};

__packed struct qseecom_key_select_ireq {
struct __packed qseecom_key_select_ireq {
uint32_t qsee_command_id;
uint32_t ce;
uint32_t pipe;
Expand All @@ -280,31 +280,31 @@ __packed struct qseecom_key_select_ireq {
uint8_t hash32[QSEECOM_HASH_SIZE];
};

__packed struct qseecom_key_delete_ireq {
struct __packed qseecom_key_delete_ireq {
uint32_t qsee_command_id;
uint32_t flags;
uint8_t key_id[QSEECOM_KEY_ID_SIZE];
uint8_t hash32[QSEECOM_HASH_SIZE];

};

__packed struct qseecom_key_userinfo_update_ireq {
struct __packed qseecom_key_userinfo_update_ireq {
uint32_t qsee_command_id;
uint32_t flags;
uint8_t key_id[QSEECOM_KEY_ID_SIZE];
uint8_t current_hash32[QSEECOM_HASH_SIZE];
uint8_t new_hash32[QSEECOM_HASH_SIZE];
};

__packed struct qseecom_key_max_count_query_ireq {
struct __packed qseecom_key_max_count_query_ireq {
uint32_t flags;
};

__packed struct qseecom_key_max_count_query_irsp {
struct __packed qseecom_key_max_count_query_irsp {
uint32_t max_key_count;
};

__packed struct qseecom_qteec_ireq {
struct __packed qseecom_qteec_ireq {
uint32_t qsee_cmd_id;
uint32_t app_id;
uint32_t req_ptr;
Expand All @@ -315,7 +315,7 @@ __packed struct qseecom_qteec_ireq {
uint32_t sglistinfo_len;
};

__packed struct qseecom_qteec_64bit_ireq {
struct __packed qseecom_qteec_64bit_ireq {
uint32_t qsee_cmd_id;
uint32_t app_id;
uint64_t req_ptr;
Expand All @@ -326,15 +326,15 @@ __packed struct qseecom_qteec_64bit_ireq {
uint32_t sglistinfo_len;
};

__packed struct qseecom_client_send_fsm_key_req {
struct __packed qseecom_client_send_fsm_key_req {
uint32_t qsee_cmd_id;
uint32_t req_ptr;
uint32_t req_len;
uint32_t rsp_ptr;
uint32_t rsp_len;
};

__packed struct qseecom_continue_blocked_request_ireq {
struct __packed qseecom_continue_blocked_request_ireq {
uint32_t qsee_cmd_id;
uint32_t app_id;
};
Expand Down

0 comments on commit c6cdce0

Please sign in to comment.