From 92df3ca8983576626e2e157475d34a07e6180253 Mon Sep 17 00:00:00 2001 From: Sami Mujawar Date: Thu, 3 Dec 2020 19:39:00 +0000 Subject: StandaloneMmPkg: Fix ECC error 4002 in FwVol helper Bugzilla: 3150 (https://bugzilla.tianocore.org/show_bug.cgi?id=3150) Fix ECC Error "[4002] Function header doesn't exist Function [MmCoreFfsFindMmDriver] has NO comment immediately preceding it." Signed-off-by: Sami Mujawar Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel Reviewed-by: Liming Gao --- StandaloneMmPkg/Core/FwVol.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'StandaloneMmPkg') diff --git a/StandaloneMmPkg/Core/FwVol.c b/StandaloneMmPkg/Core/FwVol.c index 856d86011d..6148e58e18 100644 --- a/StandaloneMmPkg/Core/FwVol.c +++ b/StandaloneMmPkg/Core/FwVol.c @@ -1,7 +1,7 @@ /**@file Copyright (c) 2015, Intel Corporation. All rights reserved.
-Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
+Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -42,23 +42,24 @@ FvIsBeingProcessed ( IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader ); -EFI_STATUS -MmCoreFfsFindMmDriver ( - IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader - ) -/*++ - -Routine Description: +/** Given the pointer to the Firmware Volume Header find the MM driver and return its PE32 image. -Arguments: - FwVolHeader - Pointer to memory mapped FV + @param [in] FwVolHeader Pointer to memory mapped FV -Returns: - other - Failure + @retval EFI_SUCCESS Success. + @retval EFI_INVALID_PARAMETER Invalid parameter. + @retval EFI_NOT_FOUND Could not find section data. + @retval EFI_OUT_OF_RESOURCES Out of resources. + @retval EFI_VOLUME_CORRUPTED Firmware volume is corrupted. + @retval EFI_UNSUPPORTED Operation not supported. ---*/ +**/ +EFI_STATUS +MmCoreFfsFindMmDriver ( + IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader + ) { EFI_STATUS Status; EFI_STATUS DepexStatus; -- cgit v1.2.3