[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2] bitops: Fix incorrect value in comment


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxxxxx>
  • Date: Tue, 30 Nov 2021 18:12:38 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.80.198) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PFvK7IuVRYKoZzH9d/eMklzpLkCZrKFxKUNfK32LjsI=; b=eVfi0avWJu62FQzKFKdKuZNfDO7E8yOmA2n7bn5K2WKlMhS9ZCOTTSt7xprZn3r52zaTty/9GWeQVm7S+liQU3FefXXcFcd6YgUu8B+UQetiXtu6yv8a91+ofvoL1jSAtAw9JuOlITxXjbqAEOn14UsrqMXMh5Vz8tuF3T0/zyQaMq9CSICay0zbblG0wadkyKGekLpbPzhhQKe08yvW+CyFVTpzze4JRKf6Q6S5EUZVTxurAFo0s+6c1mlBytUFS0zpYXGDzvMD1gschJVKm7hrg0au3ivf/x7HznnOh8dhq/McJvyStbx6MYWAsIdzbl9NovT5XjlcHHa1y34Xkg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OMjMYaa3lYfB01i2g/eCPk5Yifgz4oon0/YkRNWBwQknUPvqfgqAaU3QSByITonjlxP00sf4Pu8COcbmvbHBSX4LEEaS/NRkjWakzL+UJPONDTT0C6871btaGcwOSPygCFGoC2TKAPEFmkkOQgslLw1lSZf6Wm28eh8WoBxQRf6Xuljllb+/fb9FswWsu5NcTzKnIBQ+gWkfry8+ga15zbO20/9WcxTJrRryp7eVvqM95J7G/TqR0yNh08/vVovAAno7mu2UE2/9C+xedBJc5Yhi0Mex6YAPFDBz6QNDr/ThzjhcGh0UNa23+YpfmqJ8th3MYDAuaPd9kXCyyqI9vg==
  • Cc: <sstabellini@xxxxxxxxxx>, <stefanos@xxxxxxxxxx>, <julien@xxxxxxx>, <Volodymyr_Babchuk@xxxxxxxx>, <bertrand.marquis@xxxxxxx>, <jbeulich@xxxxxxxx>, Ayan Kumar Halder <ayankuma@xxxxxxxxxx>, <andre.przywara@xxxxxxx>
  • Delivery-date: Tue, 30 Nov 2021 18:12:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

GENMASK(30, 21) should be 0x7fe00000. Fixed this in the comment
in bitops.h.

Signed-off-by: Ayan Kumar Halder <ayankuma@xxxxxxxxxx>
---
Changelog :-
v2 :- 1. Replaced the word "vector" with "value" in comment.
2. Changed 0x07fe00000 to 0x7fe00000.
3. Updated the commit message to make it meaningful.
(All suggested by Jan Beulich)

 xen/include/xen/bitops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/include/xen/bitops.h b/xen/include/xen/bitops.h
index a64595f68e..dad4b5aa1e 100644
--- a/xen/include/xen/bitops.h
+++ b/xen/include/xen/bitops.h
@@ -5,7 +5,7 @@
 /*
  * Create a contiguous bitmask starting at bit position @l and ending at
  * position @h. For example
- * GENMASK(30, 21) gives us the 32bit vector 0x01fe00000.
+ * GENMASK(30, 21) gives us the 32bit value 0x7fe00000.
  */
 #define GENMASK(h, l) \
     (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.