From patchwork Tue Sep 5 09:03:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 9938277 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D58D6601EB for ; Tue, 5 Sep 2017 09:06:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C07C22882E for ; Tue, 5 Sep 2017 09:06:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B46A4288E6; Tue, 5 Sep 2017 09:06:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0C63E2882E for ; Tue, 5 Sep 2017 09:06:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dp9mF-0002jZ-J9; Tue, 05 Sep 2017 09:04:11 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dp9mE-0002jT-Fe for xen-devel@lists.xen.org; Tue, 05 Sep 2017 09:04:10 +0000 Received: from [193.109.254.147] by server-6.bemta-6.messagelabs.com id F0/E0-03423-9886EA95; Tue, 05 Sep 2017 09:04:09 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRWlGSWpSXmKPExsUSuHLSIt2OjHW RBkeu6los+biYxYHR4+ju30wBjFGsmXlJ+RUJrBlff09gLJjIVjFn23mWBsY5rF2MXBwsAreZ JP5N6GXrYuTgkBDIlTh/sATCFJF48j8NpERI4CCTxLcdr4FKODnYBJQk9h48zghiiwikSsyY2 s0CYjMLKEi8eL6VCcQWFrCTuNW0DKyGRUBVYtvjGWA2r4CxxPxNzWC2hIC8xLkHt5knMHIvYG RYxahRnFpUllqka2ikl1SUmZ5RkpuYmaNraGCml5taXJyYnpqTmFSsl5yfu4kR6F0GINjBeHl jwCFGSQ4mJVHe0MR1kUJ8SfkplRmJxRnxRaU5qcWHGGU4OJQkeFXTgXKCRanpqRVpmTnAMINJ S3DwKInwdoGkeYsLEnOLM9MhUqcYdTmaPmz5wiTEkpeflyolzusJUiQAUpRRmgc3Ahbylxhlp YR5GYGOEuIpSC3KzSxBlX/FKM7BqCTMGwUyhSczrwRu0yugI5iAjqh6uQbkiJJEhJRUAyObQs OnlNOXLPoKvxnYq6nud/n9WmjD0T37JitI5T9Km69tdXj2b2mfuq1GXUwrf83bsfrxfOMHt4t Lv1ycyctSEOVwJLhLZUl+4tOpXxr7Tmh1NBy+XVaa8o8jr22x41+RWUI2YZLB//avrdyblrRh 8YFJRo9Lnr3YO/2vc63hbEaB4CkHN8QpsRRnJBpqMRcVJwIAMv6TMnQCAAA= X-Env-Sender: olaf@aepfle.de X-Msg-Ref: server-8.tower-27.messagelabs.com!1504602248!104216251!1 X-Originating-IP: [81.169.146.162] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: QmFkIElQOiA4MS4xNjkuMTQ2LjE2MiA9PiA1ODg3NDY=\n,sa_preprocessor: QmFkIElQOiA4MS4xNjkuMTQ2LjE2MiA9PiA1ODg3NDY=\n X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 8814 invoked from network); 5 Sep 2017 09:04:08 -0000 Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.162) by server-8.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 5 Sep 2017 09:04:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1504602236; s=domk; d=aepfle.de; h=Date:Subject:Cc:To:From; bh=XZwi/NrHFOPK1Vs38YQJrcnZUoqJ/768bR9HS+uJdqQ=; b=isCX6ypV/n22xDu/Vg9dNm2vwJHJ+SSzg0fTNeEClysIOpbpzDg7yFJagjT/W0rtIZ xUx50YVIEhtThmQ7ZADwMs+/odbwROU3swrc6TuBEwCYXR0xH2r7y6nbPkrYyfhLDwBn tX9ebIqY0a5MpfkXp7ke+YkMcoyH4SgFOknRg= X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWi/zfN1cLnAYQ78zGVeNvMqDZ9FAQjKEjEEJqcyOcu050Z/v+PVvA== X-RZG-CLASS-ID: mo00 Received: from sender ([2001:a61:10da:65ff:c0dd:e8ad:2be6:d9e2]) by smtp.strato.de (RZmta 41.4 AUTH) with ESMTPSA id Y016e0t8593ha7X (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 5 Sep 2017 11:03:43 +0200 (CEST) From: Olaf Hering To: xen-devel@lists.xen.org, Ian Jackson , Wei Liu Date: Tue, 5 Sep 2017 11:03:38 +0200 Message-Id: <20170905090339.26749-1-olaf@aepfle.de> X-Mailer: git-send-email 2.14.1 Cc: Olaf Hering Subject: [Xen-devel] [PATCH] libxc/bitops: correct comment for bitmap_size X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The returned value represents now units of bytes instead of longs. Fixes commit 11d0044a16 ("tools/libxc: Modify bitmap operations to take void pointers") Signed-off-by: Olaf Hering Acked-by: Wei Liu --- tools/libxc/xc_bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_bitops.h b/tools/libxc/xc_bitops.h index 3e7a544c9d..0951e8267d 100644 --- a/tools/libxc/xc_bitops.h +++ b/tools/libxc/xc_bitops.h @@ -13,7 +13,7 @@ #define BITMAP_ENTRY(_nr,_bmap) ((_bmap))[(_nr) / 8] #define BITMAP_SHIFT(_nr) ((_nr) % 8) -/* calculate required space for number of longs needed to hold nr_bits */ +/* calculate required space for number of bytes needed to hold nr_bits */ static inline int bitmap_size(int nr_bits) { return (nr_bits + 7) / 8;