22fb6eb571
Some objects accidentally inherit ObjectClass instead of Object. They compile silently but may crash after downcasting. In this patch, we introduce a coccinelle script to find broken declarations and fix them manually with proper base type. Signed-off-by: Sergey Nizovtsev <snizovtsev@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> |
||
---|---|---|
.. | ||
cpu_restore_state.cocci | ||
cpu-reset.cocci | ||
err-bad-newline.cocci | ||
error_propagate_null.cocci | ||
error-use-after-free.cocci | ||
errp-guard.cocci | ||
exec_rw_const.cocci | ||
inplace-byteswaps.cocci | ||
memory-region-housekeeping.cocci | ||
overflow_muldiv64.cocci | ||
qobject.cocci | ||
qom-parent-type.cocci | ||
remove_local_err.cocci | ||
remove_muldiv64.cocci | ||
return_directly.cocci | ||
round.cocci | ||
simplify_muldiv64.cocci | ||
swap_muldiv64.cocci | ||
tcg_gen_extract.cocci | ||
typecast.cocci | ||
use-error_fatal.cocci |