public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gao, Liming" <liming.gao@intel.com>
To: "Marvin.Haeuser@outlook.com" <Marvin.Haeuser@outlook.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: [PATCH] MdePkg/UefiLib: Add 'OUT' decorator where necessary.
Date: Wed, 28 Feb 2018 02:49:28 +0000	[thread overview]
Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E1D47DC@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <AM4PR06MB149183786387C9C6C910B83D80C00@AM4PR06MB1491.eurprd06.prod.outlook.com>

Please also update the one in IntelFrameworkPkg UefiLib.

> -----Original Message-----
> From: Marvin Häuser [mailto:Marvin.Haeuser@outlook.com]
> Sent: Wednesday, February 28, 2018 12:47 AM
> To: edk2-devel@lists.01.org
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming <liming.gao@intel.com>
> Subject: [PATCH] MdePkg/UefiLib: Add 'OUT' decorator where necessary.
> 
> The functions AddUnicodeString() and AddUnicodeString2() might return
> a new value into their parameter UnicodeStringTable, hence add the
> appropiate 'OUT' decorator.
> 
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
> ---
>  MdePkg/Library/UefiLib/UefiLib.c | 18 +++++++++---------
>  MdePkg/Include/Library/UefiLib.h | 18 +++++++++---------
>  2 files changed, 18 insertions(+), 18 deletions(-)
> 
> diff --git a/MdePkg/Library/UefiLib/UefiLib.c b/MdePkg/Library/UefiLib/UefiLib.c
> index f1a3f1c7af05..ba449a1c34ce 100644
> --- a/MdePkg/Library/UefiLib/UefiLib.c
> +++ b/MdePkg/Library/UefiLib/UefiLib.c
> @@ -888,10 +888,10 @@ LookupUnicodeString2 (
>  EFI_STATUS
>  EFIAPI
>  AddUnicodeString (
> -  IN CONST CHAR8               *Language,
> -  IN CONST CHAR8               *SupportedLanguages,
> -  IN EFI_UNICODE_STRING_TABLE  **UnicodeStringTable,
> -  IN CONST CHAR16              *UnicodeString
> +  IN     CONST CHAR8               *Language,
> +  IN     CONST CHAR8               *SupportedLanguages,
> +  IN OUT EFI_UNICODE_STRING_TABLE  **UnicodeStringTable,
> +  IN     CONST CHAR16              *UnicodeString
>    )
>  {
>    UINTN                     NumberOfEntries;
> @@ -1065,11 +1065,11 @@ AddUnicodeString (
>  EFI_STATUS
>  EFIAPI
>  AddUnicodeString2 (
> -  IN CONST CHAR8               *Language,
> -  IN CONST CHAR8               *SupportedLanguages,
> -  IN EFI_UNICODE_STRING_TABLE  **UnicodeStringTable,
> -  IN CONST CHAR16              *UnicodeString,
> -  IN BOOLEAN                   Iso639Language
> +  IN     CONST CHAR8               *Language,
> +  IN     CONST CHAR8               *SupportedLanguages,
> +  IN OUT EFI_UNICODE_STRING_TABLE  **UnicodeStringTable,
> +  IN     CONST CHAR16              *UnicodeString,
> +  IN     BOOLEAN                   Iso639Language
>    )
>  {
>    UINTN                     NumberOfEntries;
> diff --git a/MdePkg/Include/Library/UefiLib.h b/MdePkg/Include/Library/UefiLib.h
> index 54bc2cc5a334..256498e3fd8d 100644
> --- a/MdePkg/Include/Library/UefiLib.h
> +++ b/MdePkg/Include/Library/UefiLib.h
> @@ -587,10 +587,10 @@ LookupUnicodeString2 (
>  EFI_STATUS
>  EFIAPI
>  AddUnicodeString (
> -  IN CONST CHAR8               *Language,
> -  IN CONST CHAR8               *SupportedLanguages,
> -  IN EFI_UNICODE_STRING_TABLE  **UnicodeStringTable,
> -  IN CONST CHAR16              *UnicodeString
> +  IN     CONST CHAR8               *Language,
> +  IN     CONST CHAR8               *SupportedLanguages,
> +  IN OUT EFI_UNICODE_STRING_TABLE  **UnicodeStringTable,
> +  IN     CONST CHAR16              *UnicodeString
>    );
> 
>  /**
> @@ -638,11 +638,11 @@ AddUnicodeString (
>  EFI_STATUS
>  EFIAPI
>  AddUnicodeString2 (
> -  IN CONST CHAR8               *Language,
> -  IN CONST CHAR8               *SupportedLanguages,
> -  IN EFI_UNICODE_STRING_TABLE  **UnicodeStringTable,
> -  IN CONST CHAR16              *UnicodeString,
> -  IN BOOLEAN                   Iso639Language
> +  IN     CONST CHAR8               *Language,
> +  IN     CONST CHAR8               *SupportedLanguages,
> +  IN OUT EFI_UNICODE_STRING_TABLE  **UnicodeStringTable,
> +  IN     CONST CHAR16              *UnicodeString,
> +  IN     BOOLEAN                   Iso639Language
>    );
> 
>  /**
> --
> 2.16.0.windows.2



      reply	other threads:[~2018-02-28  2:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-27 16:47 [PATCH] MdePkg/UefiLib: Add 'OUT' decorator where necessary Marvin Häuser
2018-02-28  2:49 ` Gao, Liming [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=4A89E2EF3DFEDB4C8BFDE51014F606A14E1D47DC@SHSMSX104.ccr.corp.intel.com \
    --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