mirror of
https://github.com/qemu/qemu.git
synced 2024-12-26 05:34:01 +08:00
f18793b096
Determining the size of a field is useful when you don't have a struct variable handy. Open-coding this is ugly. This patch adds the sizeof_field() macro, which is similar to typeof_field(). Existing instances are updated to use the macro. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 20180614164431.29305-1-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> |
||
---|---|---|
.. | ||
io | ||
xen_backend.h | ||
xen_common.h | ||
xen_pvdev.h | ||
xen.h |