Looks good.  Thanks!

> -----Original Message-----
> From: Kinney, Michael D
> Sent: Monday, December 14, 2015 10:14 AM
> To: Carsey, Jaben <[email protected]>; [email protected]; Kinney,
> Michael D <[email protected]>
> Cc: Ni, Ruiyu <[email protected]>
> Subject: RE: [Patch] ShellPkg/Mm: Fix build warnings
> Importance: High
> 
> Jaben,
> 
> Eric Tian made the commit.  Can you please verify that it was rebased 
> correctly.
> 
> Thanks,
> 
> Mike
> 
> > -----Original Message-----
> > From: Carsey, Jaben
> > Sent: Monday, December 14, 2015 8:12 AM
> > To: Kinney, Michael D <[email protected]>; edk2-
> > [email protected]
> > Cc: Ni, Ruiyu <[email protected]>; Carsey, Jaben
> > <[email protected]>
> > Subject: RE: [Patch] ShellPkg/Mm: Fix build warnings
> >
> > Mike,
> >
> > Your second patch needs to be rebased.  This is changing some of
> > the lines that were changed with the most recent patch to this
> > file.
> >
> > -Jaben
> >
> > > -----Original Message-----
> > > From: Kinney, Michael D
> > > Sent: Saturday, December 12, 2015 1:50 PM
> > > To: [email protected]
> > > Cc: Ni, Ruiyu <[email protected]>; Carsey, Jaben
> > <[email protected]>
> > > Subject: [Patch] ShellPkg/Mm: Fix build warnings
> > > Importance: High
> > >
> > > Fix build warnings for potentially uninitialized local
> > variables
> > > in the functions ShellMmLocateIoProtocol() and
> > ShellCommandRunMm()
> > > in the Shell implementation of the 'mm' command.
> > >
> > > Cc: Ruiyu Ni <[email protected]>
> > > Cc: Jaben Carsey <[email protected]>
> > > Contributed-under: TianoCore Contribution Agreement 1.0
> > > Signed-off-by: Michael Kinney <[email protected]>
> > > ---
> > >  ShellPkg/Library/UefiShellDebug1CommandsLib/Mm.c | 24
> > +++++++++++++-
> > > ----------
> > >  1 file changed, 13 insertions(+), 11 deletions(-)
> > >
> > > diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Mm.c
> > > b/ShellPkg/Library/UefiShellDebug1CommandsLib/Mm.c
> > > index 3f08cc8..1e2c0cb 100644
> > > --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Mm.c
> > > +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Mm.c
> > > @@ -328,6 +328,8 @@ ShellMmLocateIoProtocol (
> > >      return FALSE;
> > >    }
> > >
> > > +  Segment = 0;
> > > +  Bus     = 0;
> > >    if ((AccessType == ShellMmPci) || (AccessType ==
> > ShellMmPciExpress)) {
> > >      ShellMmDecodePciAddress ((BOOLEAN) (AccessType ==
> > ShellMmPci),
> > > Address, &Segment, &Bus, NULL, NULL, NULL);
> > >    }
> > > @@ -614,18 +616,18 @@ ShellCommandRunMm (
> > >          // skip space characters
> > >          //
> > >          for (Index = 0; InputStr[Index] == ' '; Index++);
> > > -      }
> > >
> > > -      if ((InputStr != NULL) && (InputStr[Index] !=
> > CHAR_NULL)) {
> > > -        if ((InputStr[Index] == '.') || (InputStr[Index] ==
> > 'q') || (InputStr[Index] ==
> > > 'Q')) {
> > > -          Complete = TRUE;
> > > -        } else if (!EFI_ERROR (ShellConvertStringToUint64
> > (InputStr + Index,
> > > &Buffer, TRUE, TRUE)) &&
> > > -                   (Buffer <= mShellMmMaxNumber[Size])
> > > -                   ) {
> > > -          ShellMmAccess (AccessType, PciRootBridgeIo, CpuIo,
> > FALSE, Address,
> > > Size, &Buffer);
> > > -        } else {
> > > -          ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN
> > (STR_MM_ERROR),
> > > gShellDebug1HiiHandle, L"mm");
> > > -          continue;
> > > +        if ((InputStr[Index] != CHAR_NULL)) {
> > > +          if ((InputStr[Index] == '.') || (InputStr[Index] ==
> > 'q') || (InputStr[Index]
> > > == 'Q')) {
> > > +            Complete = TRUE;
> > > +          } else if (!EFI_ERROR (ShellConvertStringToUint64
> > (InputStr + Index,
> > > &Buffer, TRUE, TRUE)) &&
> > > +                     (Buffer <= mShellMmMaxNumber[Size])
> > > +                     ) {
> > > +            ShellMmAccess (AccessType, PciRootBridgeIo,
> > CpuIo, FALSE, Address,
> > > Size, &Buffer);
> > > +          } else {
> > > +            ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN
> > (STR_MM_ERROR),
> > > gShellDebug1HiiHandle, L"mm");
> > > +            continue;
> > > +          }
> > >          }
> > >        }
> > >
> > > --
> > > 2.6.3.windows.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to