From: "Dong, Eric" <eric.dong@intel.com>
To: "Bi, Dandan" <dandan.bi@intel.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Haug, Brian R" <brian.r.haug@intel.com>,
"Gao, Liming" <liming.gao@intel.com>
Subject: Re: [patch] MdeModulePkg/Setup: Update opcode number variable type to UINTN
Date: Wed, 15 Jan 2020 00:24:29 +0000 [thread overview]
Message-ID: <ED077930C258884BBCB450DB737E662259FA326B@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <20200114085647.1796-1-dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
> -----Original Message-----
> From: Bi, Dandan
> Sent: Tuesday, January 14, 2020 4:57 PM
> To: devel@edk2.groups.io
> Cc: Haug, Brian R <brian.r.haug@intel.com>; Gao, Liming
> <liming.gao@intel.com>; Dong, Eric <eric.dong@intel.com>
> Subject: [patch] MdeModulePkg/Setup: Update opcode number variable
> type to UINTN
>
> From: Brian R Haug <brian.r.haug@intel.com>
>
> Update data type of variables which save the opcode numbers to UINTN, in
> case some configuration module has lots of configuration items.
>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: Eric Dong <eric.dong@intel.com>
> Signed-off-by: Brian R Haug <brian.r.haug@intel.com>
> Reviewed-by: Dandan Bi <dandan.bi@intel.com>
> ---
> .../Universal/SetupBrowserDxe/IfrParse.c | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
> b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
> index 891b95cf9f..edb6a0fc4c 100644
> --- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
> +++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
> @@ -1,17 +1,17 @@
> /** @file
> Parser for IFR binary encoding.
>
> -Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2007 - 2020, Intel Corporation. All rights reserved.<BR>
> SPDX-License-Identifier: BSD-2-Clause-Patent
>
> **/
>
> #include "Setup.h"
>
> -UINT16 mStatementIndex;
> -UINT16 mExpressionOpCodeIndex;
> +UINTN mStatementIndex;
> +UINTN mExpressionOpCodeIndex;
> EFI_QUESTION_ID mUsedQuestionId;
> extern LIST_ENTRY gBrowserStorageList;
> /**
> Initialize Statement header members.
>
> @@ -1104,16 +1104,16 @@ IsUnKnownOpCode (
>
> **/
> VOID
> CountOpCodes (
> IN FORM_BROWSER_FORMSET *FormSet,
> - IN OUT UINT16 *NumberOfStatement,
> - IN OUT UINT16 *NumberOfExpression
> + OUT UINTN *NumberOfStatement,
> + OUT UINTN *NumberOfExpression
> )
> {
> - UINT16 StatementCount;
> - UINT16 ExpressionCount;
> + UINTN StatementCount;
> + UINTN ExpressionCount;
> UINT8 *OpCodeData;
> UINTN Offset;
> UINTN OpCodeLen;
>
> Offset = 0;
> @@ -1167,12 +1167,12 @@ ParseOpCodes (
> FORMSET_STORAGE *Storage;
> FORMSET_DEFAULTSTORE *DefaultStore;
> QUESTION_DEFAULT *CurrentDefault;
> QUESTION_OPTION *CurrentOption;
> UINT8 Width;
> - UINT16 NumberOfStatement;
> - UINT16 NumberOfExpression;
> + UINTN NumberOfStatement;
> + UINTN NumberOfExpression;
> EFI_IMAGE_ID *ImageId;
> BOOLEAN SuppressForQuestion;
> BOOLEAN SuppressForOption;
> UINT16 DepthOfDisable;
> BOOLEAN OpCodeDisabled;
> --
> 2.18.0.windows.1
prev parent reply other threads:[~2020-01-15 0:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-14 8:56 [patch] MdeModulePkg/Setup: Update opcode number variable type to UINTN Dandan Bi
2020-01-14 12:58 ` Liming Gao
2020-01-14 13:08 ` [edk2-devel] " Laszlo Ersek
2020-01-14 13:09 ` Laszlo Ersek
2020-01-15 0:24 ` Dong, Eric [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=ED077930C258884BBCB450DB737E662259FA326B@shsmsx102.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