From 23f29199749c775a461777f687e08d330d1d1ebf Mon Sep 17 00:00:00 2001 From: Savva Mitrofanov Date: Tue, 27 Dec 2022 18:39:14 +0600 Subject: [PATCH] MdeModulePkg/DebugSupportDxe: Adds callback function prototypes in caller Adds EFI_EXCEPTION_CALLBACK and EFI_PERIODIC_CALLBACK casts to RegisteredCallback call in InterruptDistributionHub to suppress deprecated non-prototype LLVM 15 warning Signed-off-by: Savva Mitrofanov --- MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c b/MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c index 40fe74d8c2..aa8f6c5de1 100644 --- a/MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c +++ b/MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c @@ -268,10 +268,10 @@ InterruptDistrubutionHub ( { if (IdtEntryTable[ExceptionType].RegisteredCallback != NULL) { if (ExceptionType != SYSTEM_TIMER_VECTOR) { - IdtEntryTable[ExceptionType].RegisteredCallback (ExceptionType, ContextRecord); + ((EFI_EXCEPTION_CALLBACK)(IdtEntryTable[ExceptionType].RegisteredCallback))(ExceptionType, (EFI_SYSTEM_CONTEXT)ContextRecord); } else { OrigVector = IdtEntryTable[ExceptionType].OrigVector; - IdtEntryTable[ExceptionType].RegisteredCallback (ContextRecord); + ((EFI_PERIODIC_CALLBACK)(IdtEntryTable[ExceptionType].RegisteredCallback))((EFI_SYSTEM_CONTEXT)ContextRecord); } } }