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<[email protected]>
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
---
scripts/checkpatch.pl | 6 ++++++
1 file changed, 6 insertions(+)
Reviewed-by: Richard Henderson <[email protected]>
r~