qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] checkpatch: Prefer DEFINE_TYPES() over type_init / type_regi


From: Richard Henderson
Subject: Re: [PATCH] checkpatch: Prefer DEFINE_TYPES() over type_init / type_register_static
Date: Wed, 24 May 2023 10:16:46 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 5/24/23 07:54, Philippe Mathieu-Daudé wrote:
When multiple QOM types are registered in the same file, it
is clearer and simpler to use the the DEFINE_TYPES() macro.

Add a rule to checkpatch.pl to suggest using DEFINE_TYPES()
instead of type_init() / type_register_static().

Suggested-by: Daniel Henrique Barboza<dbarboza@ventanamicro.com>
Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
  scripts/checkpatch.pl | 6 ++++++
  1 file changed, 6 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

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