Skip to content

Commit

Permalink
MdeModulePkg/MemoryProtectionSupport: Fix GCC type mismatch warnings (#…
Browse files Browse the repository at this point in the history
…791)

## Description

Updates the function signature in declarations to match that used in
the definitions. As used, these functions do not need `EFIAPI`.

- [ ] Impacts functionality?
- **Functionality** - Does the change ultimately impact how firmware
functions?
- Examples: Add a new library, publish a new PPI, update an algorithm,
...
- [ ] Impacts security?
- **Security** - Does the change have a direct security impact on an
application,
    flow, or firmware?
  - Examples: Crypto algorithm change, buffer overflow fix, parameter
    validation improvement, ...
- [ ] Breaking change?
- **Breaking change** - Will anyone consuming this change experience a
break
    in build or boot behavior?
- Examples: Add a new library class, move a module to a different repo,
call
    a function in a new library class in a pre-existing module, ...
- [ ] Includes tests?
  - **Tests** - Does the change include any explicit test code?
  - Examples: Unit tests, integration tests, robot tests, ...
- [ ] Includes documentation?
- **Documentation** - Does the change contain explicit documentation
additions
    outside direct code modifications (and comments)?
- Examples: Update readme file, add feature readme file, link to
documentation
    on an a separate Web page, ...

## How This Was Tested

GCC compilation with `-Wlto-type-mismatch`.

## Integration Instructions

N/A

Signed-off-by: Michael Kubacki <[email protected]>
  • Loading branch information
makubacki authored Apr 5, 2024
1 parent 7f1f52f commit 822b984
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions MdeModulePkg/Core/Dxe/Misc/MemoryProtectionSupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ IsImageRecordCodeSectionValid (
@return image record
**/
IMAGE_PROPERTIES_RECORD *
EFIAPI
FindImageRecord (
IN EFI_PHYSICAL_ADDRESS ImageBase,
IN UINT64 ImageSize
Expand Down Expand Up @@ -280,7 +279,6 @@ SetUefiImageMemoryAttributes (
Disable NULL pointer detection.
**/
VOID
EFIAPI
DisableNullDetection (
VOID
);
Expand Down

0 comments on commit 822b984

Please sign in to comment.