RE: [PATCH 4/5] Drivers: hv: make sure that 'struct vmbus_channel_message_header' compiles correctly

From: Michael Kelley
Date: Thu Apr 02 2020 - 21:56:28 EST


From: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx> Sent: Wednesday, April 1, 2020 3:38 AM
>
> 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@xxxxxxxxxx>
> ---
> drivers/hv/vmbus_drv.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>

Reviewed-by: Michael Kelley <mikelley@xxxxxxxxxxxxx>