Fixed an incorrect value
PATCH 1/1 Fixed an incorrect value
GENMASK(30, 21) should be 0x07fe00000
---
xen/include/xen/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/xen/bitops.h +1 -1
@@ -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 vector 0x07fe00000. */ #define GENMASK (h, l) \ (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
Signature · 1 line
2.17.1
Quoted 1 line · Ayan Kumar Halder
GENMASK(30, 21)should be0x07fe00000
Please can this have a meaningful title? E.g. "bitops: fix incorrect value in comment"?
xen/include/xen/bitops.h line 8
Quoted 8 lines
xen/include/xen/bitops.h +1
-1@@ -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 vector 0x07fe00000.
Once at it I think you also want to
- replace the word "vector",
- drop the odd leading 0: The number would better be 8 digits or 16 digits, but not 9.
Jan
Hi Jan,
Thanks for the review. Just one question.
Quoted 6 lines · Jan Beulich
Quoted 1 line · Ayan Kumar Halder
GENMASK(30, 21)should be0x07fe00000Please can this have a meaningful title? E.g. "bitops: fix incorrect value in comment"?
Quoted 11 lines
xen/include/xen/bitops.h line 8
Quoted 8 lines
xen/include/xen/bitops.h +1
-1@@ -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 vector 0x07fe00000. Once at it I think you also want to
- replace the word "vector",
Should I replace "vector" with "value" ?
- Ayan
Quoted 5 lines
- drop the odd leading 0: The number would better be 8 digits or 16 digits, but not 9.
Jan
Quoted 18 lines · Ayan Kumar Halder
Quoted 6 lines · Jan Beulich
Quoted 1 line · Ayan Kumar Halder
GENMASK(30, 21)should be0x07fe00000Please can this have a meaningful title? E.g. "bitops: fix incorrect value in comment"?
Quoted 11 lines
xen/include/xen/bitops.h line 8
Quoted 8 lines
xen/include/xen/bitops.h +1
-1@@ -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 vector 0x07fe00000. Once at it I think you also want to
- replace the word "vector",
Quoted 1 line
Should I replace "vector" with "value" ?
Perhaps, yes.
Jan
Hi Jan,
Quoted 19 lines · Jan Beulich
Quoted 18 lines · Ayan Kumar Halder
Quoted 17 lines · Jan Beulich
Quoted 1 line · Ayan Kumar Halder
GENMASK(30, 21)should be0x07fe00000Please can this have a meaningful title? E.g. "bitops: fix incorrect value in comment"?
xen/include/xen/bitops.h line 8
Quoted 8 lines
xen/include/xen/bitops.h +1
-1@@ -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 vector 0x07fe00000. Once at it I think you also want to
- replace the word "vector",
Quoted 3 lines
Quoted 1 line
Should I replace "vector" with "value" ?
Perhaps, yes.
Thanks for the review. I have sent a v2 patch.
- Ayan
Quoted 3 lines
Jan