On 23/10/21 21:47, Woodhouse, David wrote:
BUILD_BUG_ON(sizeof(((struct vcpu_runstate_info *)0)->state) != sizeof(vx->current_runstate)); BUILD_BUG_ON(sizeof(((struct compat_vcpu_runstate_info *)0)->state) != sizeof(vx->current_runstate));
We can also use sizeof_field here, while you're at it (separate patch, though).
Paolo