Am 30. Januar 2024 07:48:50 UTC schrieb "Philippe Mathieu-Daudé" <phi...@linaro.org>: >On 29/1/24 21:26, Paolo Bonzini wrote: >> On Mon, Jan 29, 2024 at 8:49 PM Bernhard Beschow <shen...@gmail.com> wrote: >>> Don't we prefer a macro for below code? While touching the code we could >>> use it. (Sorry I can't recall its name from the top of my head and I don't >>> have access to the code right now). >> >> Ah yeah, OBJECT_DEFINE_TYPE. Not sure it's much of a win because >> neither finalize or instance_init are required here. > >Bernhard likely meant type_init() -> DEFINE_TYPES(). Indeed. And it doesn't cover the TypeInfo structure which for some reason I thought it did... Anyway, I pointed this out because the maintainer of the device model gave similar comments in the past. So, speaking of maintainers: The MAINTAINERS file might need an update, too. Best regards, Bernhard
- [PATCH 0/4] mips: do not list individual devices f... Paolo Bonzini
- [PATCH 4/4] mips: do not list individual devi... Paolo Bonzini
- [PATCH 3/4] usb: inline device creation funct... Paolo Bonzini
- Re: [PATCH 3/4] usb: inline device creati... Richard Henderson
- [PATCH 1/4] isa: clean up Kconfig selections ... Paolo Bonzini
- Re: [PATCH 1/4] isa: clean up Kconfig sel... Richard Henderson
- [PATCH 2/4] isa: extract FDC37M81X to a separ... Paolo Bonzini
- Re: [PATCH 2/4] isa: extract FDC37M81X to... Bernhard Beschow
- Re: [PATCH 2/4] isa: extract FDC37M81... Paolo Bonzini
- Re: [PATCH 2/4] isa: extract FDC3... Philippe Mathieu-Daudé
- Re: [PATCH 2/4] isa: extract... Bernhard Beschow
- Re: [PATCH 2/4] isa: extract FDC37M81X to... Bernhard Beschow
- Re: [PATCH 2/4] isa: extract FDC37M81... Paolo Bonzini
- Re: [PATCH 0/4] mips: do not list individual ... Bernhard Beschow
- Re: [PATCH 0/4] mips: do not list individ... Paolo Bonzini
- Re: [PATCH 0/4] mips: do not list ind... Bernhard Beschow