MdeModulePkg's Smm* PPIs have been deprecated entirely by UEFI PI PPIs. Do not allow their usage when DISABLE_NEW_DEPRECATED_INTERFACES is defined.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser <[email protected]> --- MdeModulePkg/Include/Ppi/SmmAccess.h | 4 ++++ MdeModulePkg/Include/Ppi/SmmCommunication.h | 4 ++++ MdeModulePkg/Include/Ppi/SmmControl.h | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/MdeModulePkg/Include/Ppi/SmmAccess.h b/MdeModulePkg/Include/Ppi/SmmAccess.h index 795c8815a9c1..0ca6d0e3af22 100644 --- a/MdeModulePkg/Include/Ppi/SmmAccess.h +++ b/MdeModulePkg/Include/Ppi/SmmAccess.h @@ -24,6 +24,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ +#ifndef DISABLE_NEW_DEPRECATED_INTERFACES + #ifndef _SMM_ACCESS_PPI_H_ #define _SMM_ACCESS_PPI_H_ @@ -144,3 +146,5 @@ struct _PEI_SMM_ACCESS_PPI { extern EFI_GUID gPeiSmmAccessPpiGuid; #endif + +#endif diff --git a/MdeModulePkg/Include/Ppi/SmmCommunication.h b/MdeModulePkg/Include/Ppi/SmmCommunication.h index 8ac86a443a15..7f24d851ae09 100644 --- a/MdeModulePkg/Include/Ppi/SmmCommunication.h +++ b/MdeModulePkg/Include/Ppi/SmmCommunication.h @@ -19,6 +19,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ +#ifndef DISABLE_NEW_DEPRECATED_INTERFACES + #ifndef _SMM_COMMUNICATION_PPI_H_ #define _SMM_COMMUNICATION_PPI_H_ @@ -62,3 +64,5 @@ struct _EFI_PEI_SMM_COMMUNICATION_PPI { extern EFI_GUID gEfiPeiSmmCommunicationPpiGuid; #endif + +#endif diff --git a/MdeModulePkg/Include/Ppi/SmmControl.h b/MdeModulePkg/Include/Ppi/SmmControl.h index 0c62196fb44c..597a6db07f2c 100644 --- a/MdeModulePkg/Include/Ppi/SmmControl.h +++ b/MdeModulePkg/Include/Ppi/SmmControl.h @@ -22,6 +22,8 @@ **/ +#ifndef DISABLE_NEW_DEPRECATED_INTERFACES + #ifndef _SMM_CONTROL_PPI_H_ #define _SMM_CONTROL_PPI_H_ @@ -94,3 +96,5 @@ struct _PEI_SMM_CONTROL_PPI { extern EFI_GUID gPeiSmmControlPpiGuid; #endif + +#endif -- 2.18.0.windows.1 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

