diff options
author | Vladimir Sementsov-Ogievskiy | 2020-07-07 18:50:31 +0200 |
---|---|---|
committer | Markus Armbruster | 2020-07-10 15:18:09 +0200 |
commit | 8220f3ac74a4698b0734aa882e74c5d9337e3d99 (patch) | |
tree | ca9761b7bc7ca6e9dc618b57511cc2b6422dab88 /MAINTAINERS | |
parent | error: New macro ERRP_GUARD() (diff) | |
download | qemu-8220f3ac74a4698b0734aa882e74c5d9337e3d99.tar.gz qemu-8220f3ac74a4698b0734aa882e74c5d9337e3d99.tar.xz qemu-8220f3ac74a4698b0734aa882e74c5d9337e3d99.zip |
scripts: Coccinelle script to use ERRP_GUARD()
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]
Diffstat (limited to 'MAINTAINERS')
-rw-r--r-- | MAINTAINERS | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index f01284ebce..6aa54f7f8f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2176,6 +2176,7 @@ F: scripts/coccinelle/error-use-after-free.cocci F: scripts/coccinelle/error_propagate_null.cocci F: scripts/coccinelle/remove_local_err.cocci F: scripts/coccinelle/use-error_fatal.cocci +F: scripts/coccinelle/errp-guard.cocci GDB stub M: Alex Bennée <alex.bennee@linaro.org> |