[Intel-wired-lan] [PATCH v2 next-queue 09/12] virtchnl: Add a macro to check the size of a union
Bowers, AndrewX
andrewx.bowers at intel.com
Thu Jan 18 19:02:38 UTC 2018
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Avinash Dayanand
> Sent: Wednesday, January 17, 2018 8:16 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH v2 next-queue 09/12] virtchnl: Add a macro
> to check the size of a union
>
> From: Harshitha Ramamurthy <harshitha.ramamurthy at intel.com>
>
> This patch adds a macro to check if the size of a union is correct.
> It throws a divide by zero error if the union is not of the correct size.
>
> Signed-off-by: Harshitha Ramamurthy <harshitha.ramamurthy at intel.com>
> ---
> include/linux/avf/virtchnl.h | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list