[Intel-wired-lan] [net-next v2 12/13] virtchnl: Add compile time static asserts to validate structure sizes
Bowers, AndrewX
andrewx.bowers at intel.com
Fri May 5 18:11:26 UTC 2017
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Jeff Kirsher
> Sent: Thursday, May 4, 2017 2:35 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [net-next v2 12/13] virtchnl: Add compile time
> static asserts to validate structure sizes
>
> From: Sridhar Samudrala <sridhar.samudrala at intel.com>
>
> This uses preprocessor tricks to make sure that a divide by zero occurs if a
> struct changes size outside the expected number of bytes.
>
> Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg at intel.com>
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list