mReplaceLiveEntryFunc is a function pointer but assigned as a VOID* pointer: mReplaceLiveEntryFunc = *(VOID **)GET_GUID_HOB_DATA (Hob); This leads to the Visual Studio warning: nonstandard extension, function/data pointer conversion in expression This change updates the assignment to avoid using a data pointer and defines a type for the function pointer to succinctly and accurately refer to the type when it is used in the library code. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
38 lines
882 B
INI
38 lines
882 B
INI
#/** @file
|
|
#
|
|
# Copyright (c) 2016 Linaro Ltd. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
#
|
|
#**/
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = ArmMmuPeiLib
|
|
FILE_GUID = b50d8d53-1ad1-44ea-9e69-8c89d4a6d08b
|
|
MODULE_TYPE = PEIM
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = ArmMmuLib|PEIM
|
|
CONSTRUCTOR = ArmMmuPeiLibConstructor
|
|
|
|
[Sources.AARCH64]
|
|
ArmMmuLibInternal.h
|
|
AArch64/ArmMmuLibCore.c
|
|
AArch64/ArmMmuPeiLibConstructor.c
|
|
AArch64/ArmMmuLibReplaceEntry.S
|
|
|
|
[Packages]
|
|
ArmPkg/ArmPkg.dec
|
|
EmbeddedPkg/EmbeddedPkg.dec
|
|
MdePkg/MdePkg.dec
|
|
|
|
[LibraryClasses]
|
|
ArmLib
|
|
CacheMaintenanceLib
|
|
HobLib
|
|
MemoryAllocationLib
|
|
|
|
[Guids]
|
|
gArmMmuReplaceLiveTranslationEntryFuncGuid
|