> -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of > Vitaly Cheptsov via Groups.Io > Sent: Saturday, August 17, 2019 7:58 AM > To: [email protected] > Subject: [edk2-devel] [PATCH v1 1/3] MdeModulePkg/ResetUtilityLib: Use > STATIC_ASSERT macro > > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2048 > > Use new STATIC_ASSERT macro instead of VERIFY_SIZE_OF. > > Signed-off-by: Vitaly Cheptsov <[email protected]> > --- > MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c > b/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c > index 2b5af4b95a..bb151d0331 100644 > --- a/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c > +++ b/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c > @@ -20,7 +20,10 @@ typedef struct { > } RESET_UTILITY_GUID_SPECIFIC_RESET_DATA; > #pragma pack() > > -VERIFY_SIZE_OF (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA, 18); > +STATIC_ASSERT ( > + sizeof (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA) == 18, > + "sizeof (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA) is expected to be > 18 bytes" > + );
Thanks for the patch, Reviewed-by: Hao A Wu <[email protected]> Best Regards, Hao Wu > > /** > This is a shorthand helper function to reset with reset type and a subtype > -- > 2.20.1 (Apple Git-117) > > > -=-=-=-=-=-= > Groups.io Links: You receive all messages sent to this group. > > View/Reply Online (#45870): https://edk2.groups.io/g/devel/message/45870 > Mute This Topic: https://groups.io/mt/32918009/1768737 > Group Owner: [email protected] > Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] > -=-=-=-=-=-= -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47309): https://edk2.groups.io/g/devel/message/47309 Mute This Topic: https://groups.io/mt/32918009/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
