]> xenbits.xensource.com Git - xen.git/commitdiff
bitops: Fix incorrect value in comment
authorAyan Kumar Halder <ayan.kumar.halder@xilinx.com>
Tue, 30 Nov 2021 18:12:38 +0000 (18:12 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Dec 2021 21:35:23 +0000 (21:35 +0000)
GENMASK(30, 21) should be 0x7fe00000. Fixed this in the comment
in bitops.h.

Signed-off-by: Ayan Kumar Halder <ayankuma@xilinx.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
[Tweak text, to put an end to any further bikeshedding]
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/xen/bitops.h

index a64595f68ec9524fc6ccb32a7677ac1ef5ca8221..33619a0873fe308416c0db60e047c7fec85baac8 100644 (file)
@@ -4,8 +4,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.
+ * position @h. For example GENMASK(30, 21) gives us 0x7fe00000ul.
  */
 #define GENMASK(h, l) \
     (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))