[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for-6.2 04/12] [automated] Add struct names to typedefs used
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH for-6.2 04/12] [automated] Add struct names to typedefs used by QOM types |
Date: |
Sat, 7 Aug 2021 10:03:25 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 8/6/21 11:11 PM, Eduardo Habkost wrote:
> Anonymous structs on QOM typedefs make the code harder to convert
> to OBJECT_DEFINE* macros, as the macros expect the struct name to
> exist.
>
> Use a codeconverter rule to automatically add names to the
> structs used in QOM typedefs.
>
> Generated using:
>
> $ ./scripts/codeconverter/converter.py -i \
> --pattern=AddNamesToTypedefs $(git grep -l '' -- '*.[ch]')
>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
> Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Cc: Thomas Huth <huth@tuxfamily.org>
> Cc: Havard Skinnemoen <hskinnemoen@google.com>
> Cc: Tyrone Ting <kfting@nuvoton.com>
> Cc: Vijai Kumar K <vijai@behindbytes.com>
> Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
> Cc: qemu-devel@nongnu.org
> Cc: qemu-arm@nongnu.org
> Cc: qemu-riscv@nongnu.org
> ---
> include/hw/adc/npcm7xx_adc.h | 2 +-
> include/hw/char/shakti_uart.h | 2 +-
> include/hw/tricore/tricore_testdevice.h | 2 +-
> chardev/char-parallel.c | 4 ++--
> hw/m68k/mcf5206.c | 2 +-
> hw/misc/sbsa_ec.c | 2 +-
> 6 files changed, 7 insertions(+), 7 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
- [PATCH for-6.2 00/12] qom: Get rid of all manual usage of OBJECT_CHECK & friends, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 01/12] accel: Rename TYPE_ACCEL to TYPE_ACCEL_BASE, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 02/12] qom: Use DEVICE_*CLASS instead of OBJECT_*CLASS, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 03/12] scripts/codeconverter: Update to latest version, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 04/12] [automated] Add struct names to typedefs used by QOM types, Eduardo Habkost, 2021/08/06
- Re: [PATCH for-6.2 04/12] [automated] Add struct names to typedefs used by QOM types,
Philippe Mathieu-Daudé <=
- [PATCH for-6.2 05/12] [automated] Move QOM typedefs and add missing includes, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 06/12] [automated] Split QOM "typedef struct T { ... } T" declarations, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 08/12] npcm7xx_clk: Use DECLARE_INSTANCE_CHECKER, Eduardo Habkost, 2021/08/06
- [PATCH for-6.2 09/12] npcm7xx_otp: Use DECLARE_CLASS_CHECKERS, Eduardo Habkost, 2021/08/06