audk/ArmPkg/Library/ArmMmuLib
Michael Kubacki d451bba399 ArmPkg/ArmMmuLib: Use function pointer type
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>
2023-11-28 10:12:29 +00:00
..
AArch64 ArmPkg/ArmMmuLib: Use function pointer type 2023-11-28 10:12:29 +00:00
Arm ArmPkg/ArmMmuLib: Drop buggy secure memory type check 2023-09-12 10:20:27 +00:00
ArmMmuBaseLib.inf ArmPkg/ArmMmuLib: Use function pointer type 2023-11-28 10:12:29 +00:00
ArmMmuLibInternal.h ArmPkg/ArmMmuLib: Use function pointer type 2023-11-28 10:12:29 +00:00
ArmMmuPeiLib.inf ArmPkg/ArmMmuLib: Use function pointer type 2023-11-28 10:12:29 +00:00