From: "Leif Lindholm" <leif@nuviainc.com>
To: "Chang, Abner (HPS SW/FW Technologist)" <abner.chang@hpe.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>,
"Chen, Gilbert" <gilbert.chen@hpe.com>,
"Schaefer, Daniel" <daniel.schaefer@hpe.com>
Subject: Re: [PATCH edk2-platforms 1/1] Silicon/SiFive: fix RELEASE builds of U54 PeiCoreInfoHobLib
Date: Sun, 30 Aug 2020 14:30:00 +0100 [thread overview]
Message-ID: <20200830133000.GE20124@vanye> (raw)
In-Reply-To: <CS1PR8401MB11448773C467845FA177D153FF500@CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM>
On Sun, Aug 30, 2020 at 12:59:06 +0000, Chang, Abner (HPS SW/FW Technologist) wrote:
> > > > @@ -63,7 +64,8 @@ CreateU54E51CoreProcessorSpecificDataHob (
> > > > return EFI_INVALID_PARAMETER;
> > > > }
> > > >
> > > > - ASSERT_EFI_ERROR (SbiGetFirmwareContext (&FirmwareContext));
> > > > + Status = SbiGetFirmwareContext (&FirmwareContext);
> > > > ASSERT_EFI_ERROR
> > > ASSERT_EFI_ERROR() should start at the new line. I see this macro just
> > > attached to the end of Status = SbiGetFirmwareContext
> > > (&FirmwareContext). Is my editor problem?
> >
> > INVALID URI REMOVED
> > 3A__edk2.groups.io_g_devel_message_64794&d=DwIBAg&c=C5b8zRQO1mi
> > GmBeVZ2LFWg&r=_SN6FZBN4Vgi4Ulkskz6qU3NYRO03nHp9P7Z5q59A3E&m=
> > UkdQYKg5exPcuGmzwjtBQvaRGX5SPNiaP9ko8nTDWgQ&s=r0p7ssf1Q8Y2070
> > L71hNFsILUzkHznlm5k8mpyVeV9k&e=
> > It's your editor.
> Ok.
> >
> > > > + (Status);
> > > Please add error condition check for the Status. Return
> > > EFI_INVALID_PARAMETERS to caller, and also update the function header
> > > for the case of @retval is EFI_INVALID_PARAMETER. Just realized that
> > > we use @return in the function header instead of @retval.
> >
> > I agree this looks like a better way of handling the failure, but I'll leave that to
> > you. This patch simply stops the current handling from breaking RELEASE
> > builds.
> Sure!
>
> Reviewed-by: Abner Chang <abner.chang@hpe.com>
Thanks.
Pushed as 50639477fc0f.
> >
> > Regards,
> >
> > Leif
> >
> > >
> > > Thanks for this.
> > > Abner
> > >
> > > > DEBUG ((DEBUG_INFO, " Firmware Context is at 0x%x.\n",
> > > > FirmwareContext));
> > > > FirmwareContextHartSpecific = FirmwareContext->HartSpecific[HartId];
> > > > DEBUG ((DEBUG_INFO, " Firmware Context Hart specific is at 0x%x.\n",
> > > > FirmwareContextHartSpecific));
> > > > --
> > > > 2.20.1
> > >
prev parent reply other threads:[~2020-08-30 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-29 13:41 [PATCH edk2-platforms 1/1] Silicon/SiFive: fix RELEASE builds of U54 PeiCoreInfoHobLib Leif Lindholm
2020-08-30 8:14 ` Abner Chang
2020-08-30 11:34 ` Leif Lindholm
2020-08-30 12:59 ` Abner Chang
2020-08-30 13:30 ` Leif Lindholm [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200830133000.GE20124@vanye \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox