Skip to content

Commit

Permalink
elfloader: initialise stack allocated struct
Browse files Browse the repository at this point in the history
Only results in a compilation error on newer GCC versions.

Signed-off-by: Ivan Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Aug 13, 2024
1 parent fd0a5ec commit c4220b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elfloader-tool/src/plat/tx2/platform_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static __attribute__((noinline)) int send_smc(uint8_t func, struct mce_regs *reg

static void tegra_mce_write_uncore_mca(mca_cmd_t cmd, uint64_t data, uint32_t *err)
{
struct mce_regs regs;
struct mce_regs regs = {0};
regs.args[0] = cmd.data;
regs.args[1] = data;
send_smc(13, &regs);
Expand Down

0 comments on commit c4220b3

Please sign in to comment.