[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [RFC v2 7/9] Use auto-propagated errp
- To: Eric Blake <eblake@xxxxxxxxxx>, "qemu-devel@xxxxxxxxxx" <qemu-devel@xxxxxxxxxx>
- From: Vladimir Sementsov-Ogievskiy <vsementsov@xxxxxxxxxxxxx>
- Date: Tue, 24 Sep 2019 07:54:29 +0000
- Accept-language: ru-RU, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZIgeirNZhwVWWSOFwVPvSYLwY9tTAKHHrb+6pw3Vvzc=; b=gIC3ReIKD5w8Ke6m4O3Gmw1YBsTvCExSQwskqCdpYz9ENbUFDLy/FTmcPhqvqL8rHP1rLF1MZG4wVnWs0P9LSPFwf+XD919P2DbVmmHxcjSsZce+2qyswt6pedoNqwGCxYpJzVgdmaoXbLd4ETd9I1ZrSMNZx62fza+WO6xh0/LZ8Dn0YFbNtYFK+nL9HyZ5c9ycDOWQ/y5KF6G55I6u2/the8KWMudRF8ji64ejbgvAP1J8NvHH3rJa5l85eLrkZ9vqgGZUnBdBrA5o2O9kXt+DGhNYUX/mMI9EcrdKGWvwx3czA9RmTnOIk1MJYqBCCwFDbyos+gORFmivrXYdyQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hMc8xDdVkp+WVfIzWQORB8tXJsVdk+w3YDBx5hLqCE3/puY869BboqAuxLcskVyWF9cSlfHL3QaLCBs1klrUj4/ZXfeATB+CxW3W9H0duQ6K/cVQcrzu4wKIzcfxEx9evf/h2GDM35hwps49cy4O87sXwCa9FYmEV33+T/8qSafS66WelaEff2Aw2X4Cxch2JMZvytTc/Cg/AyAfZVuimG/sF7LKvSt4rNRqJBwMtKuzHy3DN5yXu5WCUFgB+z+2hJN70I0cQRK1w8vXkc37Mz5Xy9IKbMVT5pkiNiuGWgTYu/xmH3ri3pEJYf6xo6E2dLfWw+UlHaIzN6AlzNLohg==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vsementsov@xxxxxxxxxxxxx;
- Cc: "stefanha@xxxxxxxxxx" <stefanha@xxxxxxxxxx>, "codyprime@xxxxxxxxx" <codyprime@xxxxxxxxx>, "jan.kiszka@xxxxxxxxxxx" <jan.kiszka@xxxxxxxxxxx>, "berto@xxxxxxxxxx" <berto@xxxxxxxxxx>, "zhang.zhanghailiang@xxxxxxxxxx" <zhang.zhanghailiang@xxxxxxxxxx>, "qemu-block@xxxxxxxxxx" <qemu-block@xxxxxxxxxx>, "arikalo@xxxxxxxxxxxx" <arikalo@xxxxxxxxxxxx>, "pasic@xxxxxxxxxxxxx" <pasic@xxxxxxxxxxxxx>, "hpoussin@xxxxxxxxxxx" <hpoussin@xxxxxxxxxxx>, "anthony.perard@xxxxxxxxxx" <anthony.perard@xxxxxxxxxx>, "samuel.thibault@xxxxxxxxxxxx" <samuel.thibault@xxxxxxxxxxxx>, "philmd@xxxxxxxxxx" <philmd@xxxxxxxxxx>, "green@xxxxxxxxxxxxxx" <green@xxxxxxxxxxxxxx>, "lvivier@xxxxxxxxxx" <lvivier@xxxxxxxxxx>, "ehabkost@xxxxxxxxxx" <ehabkost@xxxxxxxxxx>, "xiechanglong.d@xxxxxxxxx" <xiechanglong.d@xxxxxxxxx>, "pl@xxxxxxx" <pl@xxxxxxx>, "dgilbert@xxxxxxxxxx" <dgilbert@xxxxxxxxxx>, "b.galvani@xxxxxxxxx" <b.galvani@xxxxxxxxx>, "eric.auger@xxxxxxxxxx" <eric.auger@xxxxxxxxxx>, "alex.williamson@xxxxxxxxxx" <alex.williamson@xxxxxxxxxx>, "ronniesahlberg@xxxxxxxxx" <ronniesahlberg@xxxxxxxxx>, "jsnow@xxxxxxxxxx" <jsnow@xxxxxxxxxx>, "rth@xxxxxxxxxxx" <rth@xxxxxxxxxxx>, "kwolf@xxxxxxxxxx" <kwolf@xxxxxxxxxx>, "andrew@xxxxxxxx" <andrew@xxxxxxxx>, "crwulff@xxxxxxxxx" <crwulff@xxxxxxxxx>, "sundeep.lkml@xxxxxxxxx" <sundeep.lkml@xxxxxxxxx>, "michael@xxxxxxxx" <michael@xxxxxxxx>, "qemu-ppc@xxxxxxxxxx" <qemu-ppc@xxxxxxxxxx>, "kbastian@xxxxxxxxxxxxxxxxxxxxx" <kbastian@xxxxxxxxxxxxxxxxxxxxx>, "imammedo@xxxxxxxxxx" <imammedo@xxxxxxxxxx>, "fam@xxxxxxxxxx" <fam@xxxxxxxxxx>, "peter.maydell@xxxxxxxxxx" <peter.maydell@xxxxxxxxxx>, "sheepdog@xxxxxxxxxxxxxx" <sheepdog@xxxxxxxxxxxxxx>, "david@xxxxxxxxxx" <david@xxxxxxxxxx>, "palmer@xxxxxxxxxx" <palmer@xxxxxxxxxx>, "thuth@xxxxxxxxxx" <thuth@xxxxxxxxxx>, "jcmvbkbc@xxxxxxxxx" <jcmvbkbc@xxxxxxxxx>, "hare@xxxxxxxx" <hare@xxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "arei.gonglei@xxxxxxxxxx" <arei.gonglei@xxxxxxxxxx>, "marcel.apfelbaum@xxxxxxxxx" <marcel.apfelbaum@xxxxxxxxx>, "namei.unix@xxxxxxxxx" <namei.unix@xxxxxxxxx>, "atar4qemu@xxxxxxxxx" <atar4qemu@xxxxxxxxx>, "farman@xxxxxxxxxxxxx" <farman@xxxxxxxxxxxxx>, "amit@xxxxxxxxxx" <amit@xxxxxxxxxx>, "sw@xxxxxxxxxxx" <sw@xxxxxxxxxxx>, "groug@xxxxxxxx" <groug@xxxxxxxx>, "qemu-s390x@xxxxxxxxxx" <qemu-s390x@xxxxxxxxxx>, "qemu-arm@xxxxxxxxxx" <qemu-arm@xxxxxxxxxx>, "peter.chubb@xxxxxxxxxxxx" <peter.chubb@xxxxxxxxxxxx>, "clg@xxxxxxxx" <clg@xxxxxxxx>, "shorne@xxxxxxxxx" <shorne@xxxxxxxxx>, "qemu-riscv@xxxxxxxxxx" <qemu-riscv@xxxxxxxxxx>, "cohuck@xxxxxxxxxx" <cohuck@xxxxxxxxxx>, "amarkovic@xxxxxxxxxxxx" <amarkovic@xxxxxxxxxxxx>, "aurelien@xxxxxxxxxxx" <aurelien@xxxxxxxxxxx>, "pburton@xxxxxxxxxxxx" <pburton@xxxxxxxxxxxx>, "sagark@xxxxxxxxxxxxxxxxx" <sagark@xxxxxxxxxxxxxxxxx>, "jasowang@xxxxxxxxxx" <jasowang@xxxxxxxxxx>, "kraxel@xxxxxxxxxx" <kraxel@xxxxxxxxxx>, "edgar.iglesias@xxxxxxxxx" <edgar.iglesias@xxxxxxxxx>, "gxt@xxxxxxxxxxxxxxx" <gxt@xxxxxxxxxxxxxxx>, "ari@xxxxxxxxxx" <ari@xxxxxxxxxx>, "quintela@xxxxxxxxxx" <quintela@xxxxxxxxxx>, "mdroth@xxxxxxxxxxxxxxxxxx" <mdroth@xxxxxxxxxxxxxxxxxx>, "lersek@xxxxxxxxxx" <lersek@xxxxxxxxxx>, "borntraeger@xxxxxxxxxx" <borntraeger@xxxxxxxxxx>, "antonynpavlov@xxxxxxxxx" <antonynpavlov@xxxxxxxxx>, "dillaman@xxxxxxxxxx" <dillaman@xxxxxxxxxx>, "joel@xxxxxxxxx" <joel@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "integration@xxxxxxxxxxx" <integration@xxxxxxxxxxx>, "balrogg@xxxxxxxxx" <balrogg@xxxxxxxxx>, "rjones@xxxxxxxxxx" <rjones@xxxxxxxxxx>, "Andrew.Baumann@xxxxxxxxxxxxx" <Andrew.Baumann@xxxxxxxxxxxxx>, "mreitz@xxxxxxxxxx" <mreitz@xxxxxxxxxx>, "walling@xxxxxxxxxxxxx" <walling@xxxxxxxxxxxxx>, Denis Lunev <den@xxxxxxxxxxxxx>, "mst@xxxxxxxxxx" <mst@xxxxxxxxxx>, "mark.cave-ayland@xxxxxxxxxxxx" <mark.cave-ayland@xxxxxxxxxxxx>, "v.maffione@xxxxxxxxx" <v.maffione@xxxxxxxxx>, "marex@xxxxxxx" <marex@xxxxxxx>, "armbru@xxxxxxxxxx" <armbru@xxxxxxxxxx>, "marcandre.lureau@xxxxxxxxxx" <marcandre.lureau@xxxxxxxxxx>, "alistair@xxxxxxxxxxxxx" <alistair@xxxxxxxxxxxxx>, "paul.durrant@xxxxxxxxxx" <paul.durrant@xxxxxxxxxx>, "pavel.dovgaluk@xxxxxxxxx" <pavel.dovgaluk@xxxxxxxxx>, "g.lettieri@xxxxxxxxxxxx" <g.lettieri@xxxxxxxxxxxx>, "rizzo@xxxxxxxxxxxx" <rizzo@xxxxxxxxxxxx>, "david@xxxxxxxxxxxxxxxxxxxxx" <david@xxxxxxxxxxxxxxxxxxxxx>, "akrowiak@xxxxxxxxxxxxx" <akrowiak@xxxxxxxxxxxxx>, "berrange@xxxxxxxxxx" <berrange@xxxxxxxxxx>, "xiaoguangrong.eric@xxxxxxxxx" <xiaoguangrong.eric@xxxxxxxxx>, "pmorel@xxxxxxxxxxxxx" <pmorel@xxxxxxxxxxxxx>, "wencongyang2@xxxxxxxxxx" <wencongyang2@xxxxxxxxxx>, "jcd@xxxxxxxxxxxxxxx" <jcd@xxxxxxxxxxxxxxx>, "pbonzini@xxxxxxxxxx" <pbonzini@xxxxxxxxxx>, "stefanb@xxxxxxxxxxxxx" <stefanb@xxxxxxxxxxxxx>
- Delivery-date: Tue, 24 Sep 2019 07:58:56 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVcio2QQn2PPiLskGYHg6Pi8bE8Kc5tyiAgAC/DgA=
- Thread-topic: [RFC v2 7/9] Use auto-propagated errp
23.09.2019 23:30, Eric Blake wrote:
> On 9/23/19 11:12 AM, Vladimir Sementsov-Ogievskiy wrote:
>> This commit is generated by command
>>
>> git grep -l 'Error \*\*errp' | while read f; \
>> do spatch --sp-file \
>> scripts/coccinelle/auto-propagated-errp.cocci --in-place $f; done
>>
>
> As mentioned in your cover letter, this fails syntax-check and
> compilation without squashing in some followups; if we can't improve the
> .cocci script to do it automatically, then manually squashing in
> cleanups (and documenting what types of cleanups they were) is fine.
> (The goal for a mechanical patch like this is to make it easy enough to
> automate downstream, even where the file contents are changed, but where
> the process for creating those changes are the same).
>
>> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@xxxxxxxxxxxxx>
>> ---
>
> Spot-checking
>
>> block/io.c | 11 +-
>
>> block/nbd.c | 44 +++---
>
>> qapi/qapi-visit-core.c | 53 ++-----
>
> just to see how it looks.
>
>> +++ b/block/io.c
>> @@ -136,7 +136,6 @@ static void bdrv_merge_limits(BlockLimits *dst, const
>> BlockLimits *src)
>> void bdrv_refresh_limits(BlockDriverState *bs, Error **errp)
>> {
>> BlockDriver *drv = bs->drv;
>> - Error *local_err = NULL;
>>
>
> Umm, no insertion of ERR_FUNCTION_BEGIN(). Oops.
Oops. Seems I injected it _only_ to empty functions. It's because I missed
'...' in first hunk.
--
Best regards,
Vladimir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|