<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22847">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">amd/common/psp: Convert structure init to C99<br><br>Use C99 designated initializers for the psp_notify_dram() buffer<br>structure.<br><br>Change-Id: I2e18b3a2c19b8fb17d0f654b16def52517538957<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/soc/amd/common/block/psp/psp.c<br>1 file changed, 5 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/22847/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/common/block/psp/psp.c b/src/soc/amd/common/block/psp/psp.c<br>index c1174bc..cfe95f0 100644<br>--- a/src/soc/amd/common/block/psp/psp.c<br>+++ b/src/soc/amd/common/block/psp/psp.c<br>@@ -177,13 +177,14 @@<br>  */<br> int psp_notify_dram(void)<br> {<br>-     struct mbox_default_buffer buffer;<br>    int cmd_status;<br>+      struct mbox_default_buffer buffer = {<br>+                .header = {<br>+                  .size = sizeof(buffer)<br>+               }<br>+    };<br> <br>         printk(BIOS_DEBUG, "PSP: Notify that DRAM is available... ");<br>-<br>-   buffer.header.size = sizeof(struct mbox_default_buffer);<br>-     buffer.header.status = 0; /* PSP does not report status for this cmd */<br> <br>    cmd_status = send_psp_command(MBOX_BIOS_CMD_DRAM_INFO, &buffer);<br> <br></pre><p>To view, visit <a href="https://review.coreboot.org/22847">change 22847</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/22847"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2e18b3a2c19b8fb17d0f654b16def52517538957 </div>
<div style="display:none"> Gerrit-Change-Number: 22847 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>