From: "Leif Lindholm" <leif@nuviainc.com>
To: Rebecca Cran <rebecca@nuviainc.com>
Cc: devel@edk2.groups.io, Ard Biesheuvel <ardb+tianocore@kernel.org>
Subject: Re: [PATCH v2 3/3] ArmPkg: Update OemGetChassisType function to return MISC_CHASSIS_TYPE
Date: Sun, 21 Feb 2021 21:36:15 +0000 [thread overview]
Message-ID: <20210221213615.GQ1664@vanye> (raw)
In-Reply-To: <20210221032900.6485-4-rebecca@nuviainc.com>
On Sat, Feb 20, 2021 at 20:29:00 -0700, Rebecca Cran wrote:
> Update OemGetChassisType in OemMiscLib to return MISC_CHASSIS_TYPE
> instead of EFI_STATUS, which matches other OemMiscLib functions.
>
> Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
> ---
> ArmPkg/Include/Library/OemMiscLib.h | 8 +++-----
> ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c | 11 ++++-------
> 2 files changed, 7 insertions(+), 12 deletions(-)
>
> diff --git a/ArmPkg/Include/Library/OemMiscLib.h b/ArmPkg/Include/Library/OemMiscLib.h
> index 31dfe7dac2a6..5f71b2ad48c7 100644
> --- a/ArmPkg/Include/Library/OemMiscLib.h
> +++ b/ArmPkg/Include/Library/OemMiscLib.h
> @@ -128,14 +128,12 @@ OemGetMaxProcessors (
>
> /** Gets the type of chassis for the system.
>
> - @param ChassisType The type of the chassis.
> -
> - @retval EFI_SUCCESS The chassis type was fetched successfully.
> + @retval The type of the chassis.
> **/
> -EFI_STATUS
> +MISC_CHASSIS_TYPE
> EFIAPI
> OemGetChassisType (
> - OUT UINT8 *ChassisType
> + VOID
> );
>
> /** Returns whether the specified processor is present or not.
> diff --git a/ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c b/ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c
> index b02a568426dd..6b233742feb0 100644
> --- a/ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c
> +++ b/ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c
> @@ -95,19 +95,16 @@ OemGetMaxProcessors (
>
> /** Gets the type of chassis for the system.
>
> - @param ChassisType The type of the chassis.
> -
> - @retval EFI_SUCCESS The chassis type was fetched successfully.
> + @retval The type of the chassis.
> **/
> -EFI_STATUS
> +MISC_CHASSIS_TYPE
> EFIAPI
> OemGetChassisType (
> - UINT8 *ChassisType
> + VOID
> )
> {
> ASSERT (FALSE);
> - *ChassisType = MiscChassisTypeUnknown;
> - return EFI_SUCCESS;
> + return MiscChassisTypeUnknown;
> }
>
> /** Returns whether the specified processor is present or not.
> --
> 2.26.2
>
prev parent reply other threads:[~2021-02-21 21:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-21 3:28 [PATCH v2 0/3] ArmPkg: Fix several issues in OemMiscLib Rebecca Cran
2021-02-21 3:28 ` [PATCH v2 1/3] ArmPkg: Fix ordering of return type and EFIAPI specifier " Rebecca Cran
2021-02-21 20:48 ` Leif Lindholm
2021-02-21 3:28 ` [PATCH v2 2/3] ArmPkg: Rename some functions and parameters " Rebecca Cran
2021-02-21 21:21 ` Leif Lindholm
2021-02-21 23:04 ` Rebecca Cran
2021-02-22 12:35 ` Leif Lindholm
2021-02-22 14:33 ` Rebecca Cran
2021-02-21 3:29 ` [PATCH v2 3/3] ArmPkg: Update OemGetChassisType function to return MISC_CHASSIS_TYPE Rebecca Cran
2021-02-21 21:36 ` 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=20210221213615.GQ1664@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