Received: from eggs.gnu.org ([2001:4830:134:3::10]:34721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGiPX-0003xj-62 for qemu-devel@nongnu.org; Mon, 20 Nov 2017 04:30:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGiPU-0001dM-26 for qemu-devel@nongnu.org; Mon, 20 Nov 2017 04:30:39 -0500 References: <20171030163309.75770-1-vsementsov@virtuozzo.com> <20171030163309.75770-3-vsementsov@virtuozzo.com> <5027d8bb-fdec-a6ce-8150-96730d3a5ce4@redhat.com> <8f3d2255-22e8-13a0-33f8-8b2db0d17bec@virtuozzo.com> From: Vladimir Sementsov-Ogievskiy Message-ID: <77a1f8bb-17c6-d3c0-6a65-e0c5862aae76@virtuozzo.com> Date: Mon, 20 Nov 2017 12:30:24 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US Subject: Re: [Qemu-devel] [PATCH v8 02/14] block/dirty-bitmap: add locked version of bdrv_release_dirty_bitmap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, famz@redhat.com, lirans@il.ibm.com, quintela@redhat.com, armbru@redhat.com, mreitz@redhat.com, stefanha@redhat.com, den@openvz.org, amit.shah@redhat.com, pbonzini@redhat.com, dgilbert@redhat.com 17.11.2017 21:25, John Snow wrote: > > On 11/17/2017 03:07 AM, Vladimir Sementsov-Ogievskiy wrote: >> 11.11.2017 01:52, John Snow wrote: >>> On 10/30/2017 12:32 PM, Vladimir Sementsov-Ogievskiy wrote: >>>> It is needed to realize bdrv_dirty_bitmap_release_successor in >>>> the following patch. >>>> >>> OK, but... >>> >>>> Signed-off-by: Vladimir Sementsov-Ogievskiy >>>> --- >>>> =C2=A0 block/dirty-bitmap.c | 25 ++++++++++++++++++++----- >>>> =C2=A0 1 file changed, 20 insertions(+), 5 deletions(-) >>>> >>>> diff --git a/block/dirty-bitmap.c b/block/dirty-bitmap.c >>>> index 81adbeb6d4..981f99d362 100644 >>>> --- a/block/dirty-bitmap.c >>>> +++ b/block/dirty-bitmap.c >>>> @@ -326,13 +326,13 @@ static bool >>>> bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap) >>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return !!bdrv_dirty_bitmap_name(bitmap= ); >>>> =C2=A0 } >>>> =C2=A0 -/* Called with BQL taken.=C2=A0 */ >>>> -static void bdrv_do_release_matching_dirty_bitmap( >>>> +/* Called within bdrv_dirty_bitmap_lock..unlock */ >>> ...Add this so it will compile: >> how do you compile to get an error? and what is unused? >> > .../src/qemu/block/dirty-bitmap.c:368:13: error: > =E2=80=98bdrv_release_dirty_bitmap_locked=E2=80=99 defined but not used > [-Werror=3Dunused-function] > static void bdrv_release_dirty_bitmap_locked(BlockDriverState *bs, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > > > I commented on the wrong prototype. The ((__unused__)) attribute just > quiets this warning so it can compile without you having to refactor. aha ok, you are right > > --js --=20 Best regards, Vladimir