In module.c typedef struct ModuleEntry { module_init_type type; void (*init)(void); QTAILQ_ENTRY(ModuleEntry) node; } ModuleEntry;
The field `type` is not set in `register_module_init`. As different types of modules use their own list, I guess this field is no long being used, and I have no problem compiling qemu after deleting this filed. -- Best regards, Chen Yufei