]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: make sure that 'struct vmbus_channel_message_header' compiles correctly
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 6 Apr 2020 10:43:15 +0000 (12:43 +0200)
committerWei Liu <wei.liu@kernel.org>
Thu, 23 Apr 2020 13:17:11 +0000 (13:17 +0000)
commit6d8fd0417c95754d573cdc968ffb7a5570bd55e7
treeee5f7aa7032acddffe5e536b1d07d0e2d0167d61
parent9e343c48c3715ac0d38bdfca73bf9eca8f3282ff
Drivers: hv: make sure that 'struct vmbus_channel_message_header' compiles correctly

Strictly speaking, compiler is free to use something different from 'u32'
for 'enum vmbus_channel_message_type' (e.g. char) but it doesn't happen in
real life, just add a BUILD_BUG_ON() guardian.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20200406104316.45303-1-vkuznets@redhat.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/vmbus_drv.c