mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 07:04:28 +02:00
MdeModulePkg/PiSmmCore: fix GCC build error
> MdeModulePkg/Core/PiSmmCore/PiSmmCore.c: In function > 'SmmReadyToBootHandler': > MdeModulePkg/Core/PiSmmCore/PiSmmCore.c:323:14: error: passing argument > 3 of 'SmmLocateProtocol' from incompatible pointer type [-Werror] > ); > ^ > In file included from MdeModulePkg/Core/PiSmmCore/PiSmmCore.c:15:0: > MdeModulePkg/Core/PiSmmCore/PiSmmCore.h:586:1: note: expected 'void **' > but argument is of type 'struct EFI_SMM_SX_DISPATCH2_PROTOCOL **' > SmmLocateProtocol ( > ^ > cc1: all warnings being treated as errors Cc: Eric Dong <eric.dong@intel.com> Cc: Star Zeng <star.zeng@intel.com> Fixes: 7b9b55b2ef7be13608605dc58a54b9ca04be4e40 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
This commit is contained in:
parent
764c9d9551
commit
dfc5a4dec6
@ -319,7 +319,7 @@ SmmReadyToBootHandler (
|
|||||||
Status = SmmLocateProtocol (
|
Status = SmmLocateProtocol (
|
||||||
&gEfiSmmSxDispatch2ProtocolGuid,
|
&gEfiSmmSxDispatch2ProtocolGuid,
|
||||||
NULL,
|
NULL,
|
||||||
&SxDispatch
|
(VOID **)&SxDispatch
|
||||||
);
|
);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user