8220f3ac74
Script adds ERRP_GUARD() macro invocations where appropriate and does corresponding changes in code (look for details in include/qapi/error.h) Usage example: spatch --sp-file scripts/coccinelle/errp-guard.cocci \ --macro-file scripts/cocci-macro-file.h --in-place --no-show-diff \ --max-width 80 FILES... Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200707165037.1026246-3-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> [ERRP_AUTO_PROPAGATE() renamed to ERRP_GUARD(), and auto-propagated-errp.cocci to errp-guard.cocci] |
||
---|---|---|
.. | ||
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 | ||
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 |