Maxim Levitsky 07a368b3f5 bug: introduce ASSERT_STRUCT_OFFSET
ASSERT_STRUCT_OFFSET allows to assert during the build of
the kernel that a field in a struct have an expected offset.

KVM used to have such macro, but there is almost nothing KVM specific
in it so move it to build_bug.h, so that it can be used in other
places in KVM.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20221025124741.228045-10-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-11-09 12:31:16 -05:00
..
2022-11-09 12:31:16 -05:00
2022-10-22 15:30:15 -07:00
2022-10-07 12:33:18 -07:00
2022-10-27 08:26:32 +02:00
2022-10-21 12:25:39 -07:00
2022-10-07 12:33:18 -07:00