On 9/16/20 8:25 PM, Eduardo Habkost wrote: > The requirement to specify the parent class type makes the macro > harder to use and easy to misuse (silent bugs can be introduced > if the wrong struct type is specified). > > Simplify the macro by just not declaring any class struct, > allowing us to remove the class_size field from the TypeInfo > variables for those types. > > Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> > --- > Cc: "Daniel P. Berrangé" <berra...@redhat.com> > Cc: "Marc-André Lureau" <marcandre.lur...@redhat.com> > Cc: "Michael S. Tsirkin" <m...@redhat.com> > Cc: Paolo Bonzini <pbonz...@redhat.com> > Cc: Eduardo Habkost <ehabk...@redhat.com> > Cc: Gerd Hoffmann <kra...@redhat.com> > Cc: qemu-devel@nongnu.org > --- > include/authz/list.h | 2 +- > include/authz/listfile.h | 2 +- > include/authz/pamacct.h | 2 +- > include/authz/simple.h | 2 +- > include/crypto/secret_keyring.h | 2 +- > include/io/dns-resolver.h | 2 +- > include/io/net-listener.h | 2 +- > include/qom/object.h | 16 ++++++++-------- > include/sysemu/vhost-user-backend.h | 2 +- > authz/list.c | 1 - > authz/listfile.c | 1 - > authz/pamacct.c | 1 - > authz/simple.c | 1 - > backends/dbus-vmstate.c | 3 +-- > backends/vhost-user.c | 1 - > crypto/secret_keyring.c | 1 - > io/dns-resolver.c | 1 - > io/net-listener.c | 1 - > ui/input-barrier.c | 3 +-- > ui/input-linux.c | 3 +-- > 20 files changed, 19 insertions(+), 30 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com>