Received: from eggs.gnu.org ([2001:4830:134:3::10]:51755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt19g-00043B-01 for qemu-devel@nongnu.org; Tue, 17 Dec 2013 15:22:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vt19X-0001CL-Ax for qemu-devel@nongnu.org; Tue, 17 Dec 2013 15:22:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:29369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vt19W-00019o-Tz for qemu-devel@nongnu.org; Tue, 17 Dec 2013 15:22:03 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rBHKM15r030165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 17 Dec 2013 15:22:01 -0500 From: Juan Quintela In-Reply-To: <52B09268.6000400@redhat.com> (Eric Blake's message of "Tue, 17 Dec 2013 11:05:28 -0700") References: <1387293974-24718-1-git-send-email-quintela@redhat.com> <1387293974-24718-2-git-send-email-quintela@redhat.com> <52B09268.6000400@redhat.com> Date: Tue, 17 Dec 2013 21:21:59 +0100 Message-ID: <87mwjzxm6w.fsf@elfo.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 01/38] bitmap: use long as index Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org Eric Blake wrote: > On 12/17/2013 08:25 AM, Juan Quintela wrote: >> Move index and size fields from int to long. We need that for >> migration. long is 64 bits on sane architectures, and 32bits should >> be enough on all the 32bits architectures. >> >> Signed-off-by: Juan Quintela >> --- >> include/qemu/bitmap.h | 77 ++++++++++++++++++++++++++------------------------- >> include/qemu/bitops.h | 14 +++++----- >> util/bitmap.c | 60 +++++++++++++++++++-------------------- >> 3 files changed, 76 insertions(+), 75 deletions(-) >> >> diff --git a/include/qemu/bitmap.h b/include/qemu/bitmap.h >> index 308bbb7..afdd257 100644 >> --- a/include/qemu/bitmap.h >> +++ b/include/qemu/bitmap.h >> @@ -31,7 +31,7 @@ >> * bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2) >> * bitmap_complement(dst, src, nbits) *dst = ~(*src) >> * bitmap_equal(src1, src2, nbits) Are *src1 and *src2 equal? >> - * bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap? >> + * bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap? > > Spurious whitespace change? > > Worth cleaning up this whitespace while in the area? Yeap. After passing checkpatch, it complained about lots of lines. And after that only three tabs or so were left, so I fixed them. And forget to fix the comment. > > Content changes seem sane to me: > Reviewed-by: Eric Blake Thanks, Juan.