qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 67/74] [automated] Use DECLARE_*CHECKER* macros (pass 2)


From: Juan Quintela
Subject: Re: [PATCH v3 67/74] [automated] Use DECLARE_*CHECKER* macros (pass 2)
Date: Wed, 26 Aug 2020 10:06:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Eduardo Habkost <ehabkost@redhat.com> wrote:
>  $ ./scripts/codeconverter/converter.py -i \
>    --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]')
>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
> Changes series v2 -> v3: this is a new patch added in series v3
>
> The script was re-run after rebase and after additional patches
> were added to this series.
>
> This is being submitted as a separate patch to make review
> easier, but it can be squashed into the previous patch once it
> gets reviewed.
>

...

> diff --git a/migration/migration.h b/migration/migration.h
> index 4103e549bb..bdc7450da3 100644
> --- a/migration/migration.h
> +++ b/migration/migration.h
> @@ -116,12 +116,8 @@ void 
> fill_destination_postcopy_migration_info(MigrationInfo *info);
>  #define TYPE_MIGRATION "migration"
>  
>  typedef struct MigrationClass MigrationClass;
> -#define MIGRATION_OBJ_CLASS(klass) \
> -    OBJECT_CLASS_CHECK(MigrationClass, (klass), TYPE_MIGRATION)
> -#define MIGRATION_OBJ(obj) \
> -    OBJECT_CHECK(MigrationState, (obj), TYPE_MIGRATION)
> -#define MIGRATION_OBJ_GET_CLASS(obj) \
> -    OBJECT_GET_CLASS(MigrationClass, (obj), TYPE_MIGRATION)
> +DECLARE_OBJ_CHECKERS(MigrationState, MigrationClass,
> +                     MIGRATION_OBJ, TYPE_MIGRATION)
>  
>  struct MigrationClass {
>      /*< private >*/

Reviewed-by: Juan Quintela <quintela@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]