From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@protonmail.com header.s=default header.b=tibIT2ov; spf=pass (domain: protonmail.com, ip: 185.70.40.27, mailfrom: vit9696@protonmail.com) Received: from mail4.protonmail.ch (mail4.protonmail.ch [185.70.40.27]) by groups.io with SMTP; Fri, 16 Aug 2019 16:58:14 -0700 Date: Fri, 16 Aug 2019 23:58:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1565999892; bh=WMDwz5OasIwG2TbUrmse/lZctay8scYjj+B2tsaAsbo=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:Feedback-ID: From; b=tibIT2ovNl19QA1WuWoHLQhAQ8DpbHLpewiYns/hb+doVuAJLjvIvfEwbxmQwQRtj is6Em4iFe8wuOYC7+BDGz92DWiWeGYCI06mQlobZre/xYIpLT6bUj4g7Hzq7Dma7DK 5sIgjZl7ryJkZW21/8jxd09kZTv+WL3DJmElbu1I= To: devel@edk2.groups.io From: "Vitaly Cheptsov" Reply-To: Vitaly Cheptsov Subject: [PATCH v1 1/3] MdeModulePkg/ResetUtilityLib: Use STATIC_ASSERT macro Message-ID: <20190816235808.16019-2-vit9696@protonmail.com> In-Reply-To: <20190816235808.16019-1-vit9696@protonmail.com> References: <20190816235808.16019-1-vit9696@protonmail.com> Feedback-ID: p9QuX-L1wMgUm6nrSvNrf8juLupNs0VSnzXGVXuYDxlEahFdWtaedWDMB9zpwGDklGt7kzs1-RBc0cqz327Gcg==:Ext:ProtonMail MIME-Version: 1.0 X-Spam-Status: No, score=-0.7 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Groupsio-MsgNum: 45870 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha256; boundary="---------------------8b08e177df5ef8d735588a760401bac5"; charset=UTF-8 -----------------------8b08e177df5ef8d735588a760401bac5 Content-Transfer-Encoding: quoted-printable Date: Sat, 17 Aug 2019 02:58:06 +0300 From: Vitaly Cheptsov In-Reply-To: <20190816235808.16019-1-vit9696@protonmail.com> Message-Id: <20190816235808.16019-2-vit9696@protonmail.com> Mime-Version: 1.0 References: <20190816235808.16019-1-vit9696@protonmail.com> Subject: [PATCH v1 1/3] MdeModulePkg/ResetUtilityLib: Use STATIC_ASSERT macro To: devel@edk2.groups.io X-Mailer: git-send-email 2.20.1 (Apple Git-117) REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2048 Use new STATIC_ASSERT macro instead of VERIFY_SIZE_OF. Signed-off-by: Vitaly Cheptsov --- MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c b/MdeModul= ePkg/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() =20 -VERIFY_SIZE_OF (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA, 18); +STATIC_ASSERT ( + sizeof (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA) =3D=3D 18, + "sizeof (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA) is expected to be 18 by= tes" + ); =20 /** This is a shorthand helper function to reset with reset type and a subty= pe --=20 2.20.1 (Apple Git-117) -----------------------8b08e177df5ef8d735588a760401bac5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wsBmBAEBCAAQBQJdV0MSCRBPsoxt7Hy0xQAKCRBPsoxt7Hy0xX48CABzablk BlcqSq+f/MOF9T2SxBCSzZ/mEY827+hwPSZvAX9Xt0HU8uDynSFO2lJHT0El hO+XOV5mLlx53VDccqDOkqrJgP6bbIvaGpAFeby08oAKyGMGDvvhoGjxareK bsODm1A++sxcPecDcY0A4k6lZ0B5TXWoXQ0fx2S8MdWDCTFQlCNnl9L4ZYWW XgzC20WHnuBeEQz3F1e/NIdU30rrPYM1nJHLvGlaSv7+go/iJTZZ3b5IqZ9k lTkjbGwuJ6gylWeItdqA1ObwNamsDvSfz2n/WKdSMR9kG9QEo5pQpfQqqmDS nHszzFQmroPmxncd/Sw1Wcb0Dz+071aIGhVk =/blg -----END PGP SIGNATURE----- -----------------------8b08e177df5ef8d735588a760401bac5--