Skip to content

Commit 8a66cfa

Browse files
committed
rimage: Prepare to change uuid type in module manifest
Add a & symbol for getting the address of a variable to prepare the code for changing the uuid type from an array to a structure. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
1 parent cdbf72e commit 8a66cfa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/rimage/src/adsp_config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,7 +1910,7 @@ static int parse_module(const toml_table_t *toml, struct parse_ctx *pctx,
19101910
if (ret < 0)
19111911
return err_key_parse("uuid", NULL);
19121912

1913-
parse_uuid(buf, mod_man->uuid);
1913+
parse_uuid(buf, &mod_man->uuid);
19141914

19151915
mod_man->affinity_mask = parse_uint32_hex_key(mod_entry, &ctx_entry,
19161916
"affinity_mask", 1, &ret);
@@ -1952,7 +1952,7 @@ static int parse_module(const toml_table_t *toml, struct parse_ctx *pctx,
19521952
header->version_major = 2;
19531953
header->version_minor = 5;
19541954
header->ext_module_config_length = sizeof(struct fw_ext_mod_config_header);
1955-
memcpy(header->guid, mod_man->uuid, sizeof(mod_man->uuid));
1955+
memcpy(header->guid, &mod_man->uuid, sizeof(mod_man->uuid));
19561956

19571957
type = parse_uint32_hex_key(mod_entry, &ctx_entry, "module_type", 1, &ret);
19581958
if (ret < 0)

tools/rimage/src/manifest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static void man_get_section_manifest(struct image *image,
205205
memcpy(man_module->struct_id, "$AME", 4);
206206
man_module->entry_point = sof_mod->module.entry_point;
207207
memcpy(man_module->name, sof_mod->module.name, SOF_MAN_MOD_NAME_LEN);
208-
memcpy(man_module->uuid, sof_mod->module.uuid, 16);
208+
memcpy(&man_module->uuid, &sof_mod->module.uuid, sizeof(man_module->uuid));
209209
man_module->affinity_mask = sof_mod->module.affinity_mask;
210210
man_module->instance_max_count = sof_mod->module.instance_max_count;
211211
man_module->type.auto_start = sof_mod->module.type.auto_start;

0 commit comments

Comments
 (0)