From patchwork Mon Feb 4 02:27:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liguang X-Patchwork-Id: 217815 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 0C3582C0089 for ; Mon, 4 Feb 2013 13:29:04 +1100 (EST) Received: from localhost ([::1]:50837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2Bnq-0004GB-2H for incoming@patchwork.ozlabs.org; Sun, 03 Feb 2013 21:29:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2BnO-0003oU-Mf for qemu-devel@nongnu.org; Sun, 03 Feb 2013 21:28:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2BnM-0002xq-Iq for qemu-devel@nongnu.org; Sun, 03 Feb 2013 21:28:34 -0500 Received: from [222.73.24.84] (port=41112 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2BnM-0002wN-6L for qemu-devel@nongnu.org; Sun, 03 Feb 2013 21:28:32 -0500 X-IronPort-AV: E=Sophos;i="4.84,596,1355068800"; d="scan'208";a="6683545" Received: from unknown (HELO tang.cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 04 Feb 2013 10:26:13 +0800 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id r142SPXs013677; Mon, 4 Feb 2013 10:28:25 +0800 Received: from liguang.fnst.cn.fujitsu.com ([10.167.225.128]) by fnstmail02.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.3) with ESMTP id 2013020410271065-263198 ; Mon, 4 Feb 2013 10:27:10 +0800 From: liguang To: qemu-devel@nongnu.org, seabios@seabios.org Date: Mon, 4 Feb 2013 10:27:55 +0800 Message-Id: <1359944880-6039-4-git-send-email-lig.fnst@cn.fujitsu.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1359944880-6039-1-git-send-email-lig.fnst@cn.fujitsu.com> References: <1359944880-6039-1-git-send-email-lig.fnst@cn.fujitsu.com> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/02/04 10:27:10, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/02/04 10:27:11, Serialize complete at 2013/02/04 10:27:11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 222.73.24.84 Cc: aliguori@us.ibm.com, kevin@koconnor.net, dwmw2@infradead.org, stefanha@linux.vnet.ibm.com, liguang Subject: [Qemu-devel] [PATCH 3/6] bitops: change BITS_TO_LONGS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: liguang --- include/qemu/bitops.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h index 74e14e5..7758792 100644 --- a/include/qemu/bitops.h +++ b/include/qemu/bitops.h @@ -20,7 +20,7 @@ #define BIT(nr) (1UL << (nr)) #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) -#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) +#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG) /** * bitops_ffs - find first bit in word.