]> git.baikalelectronics.ru Git - kernel.git/commit
virtchnl: Add a macro to check the size of a union
authorHarshitha Ramamurthy <harshitha.ramamurthy@intel.com>
Tue, 23 Jan 2018 16:51:03 +0000 (08:51 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Feb 2018 17:43:22 +0000 (09:43 -0800)
commitf49b678f37d19ae9df65c816273541aaa4d40aa8
tree7479205c930d75a9ba84a70f5ba7201a8788abd3
parentb72aa08af9ce0d56dcbb3cc1228400153fe2fb7e
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>
include/linux/avf/virtchnl.h