commit | 0718e560a330599d15fddc37651d693c7a09e49e | [log] [tgz] |
---|---|---|
author | Harshitha Ramamurthy <harshitha.ramamurthy@intel.com> | Tue Jan 23 08:51:03 2018 -0800 |
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | Wed Feb 14 09:43:22 2018 -0800 |
tree | 7479205c930d75a9ba84a70f5ba7201a8788abd3 | |
parent | 0c483bd4b82619397e7f655eea1ba3ba9d9a15a2 [diff] |
virtchnl: Add a macro to check the size of a union 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@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>