From cae5044b4a422eb794627992f3344dec28813523 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Thu, 20 Nov 2008 06:27:17 +0000 Subject: [PATCH] GCC Build Clean: Add doxygen comment and fix build break issue. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6647 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Compatibility/Fv2ToFvThunk/Fv2ToFvThunk.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/EdkCompatibilityPkg/Compatibility/Fv2ToFvThunk/Fv2ToFvThunk.c b/EdkCompatibilityPkg/Compatibility/Fv2ToFvThunk/Fv2ToFvThunk.c index 6a2b1f8643..6b825e1e6f 100644 --- a/EdkCompatibilityPkg/Compatibility/Fv2ToFvThunk/Fv2ToFvThunk.c +++ b/EdkCompatibilityPkg/Compatibility/Fv2ToFvThunk/Fv2ToFvThunk.c @@ -783,6 +783,14 @@ InitializeFirmwareVolume ( return EFI_SUCCESS; } +/** + Convert FV attributes defined in Framework Specification + to FV attributes defined in PI specification. + + @param FvAttributes The FV attributes defined in Framework Specification. + + @retval The FV attributes defined in PI Specification. +**/ EFI_FV_ATTRIBUTES FvAttributesToFv2Attributes ( EFI_FV_ATTRIBUTES FvAttributes @@ -836,7 +844,6 @@ Fv2GetVolumeAttributes ( EFI_STATUS Status; FIRMWARE_VOLUME2_PRIVATE_DATA *Private; EFI_FIRMWARE_VOLUME_PROTOCOL *FirmwareVolume; - INTN Alignment; Private = FIRMWARE_VOLUME2_PRIVATE_DATA_FROM_THIS (This); FirmwareVolume = Private->FirmwareVolume; @@ -845,7 +852,7 @@ Fv2GetVolumeAttributes ( (FRAMEWORK_EFI_FV_ATTRIBUTES *)FvAttributes ); if (!EFI_ERROR (Status)) { - *FvAttributes = FvAttributeToFv2Attribute (*FvAttributes); + *FvAttributes = FvAttributesToFv2Attributes (*FvAttributes); } return Status; }