All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fixed an incorrect value
@ 2021-11-29 19:44 Ayan Kumar Halder
  2021-11-30  7:18 ` Jan Beulich
  0 siblings, 1 reply; 5+ messages in thread
From: Ayan Kumar Halder @ 2021-11-29 19:44 UTC (permalink / raw)
  To: xen-devel
  Cc: sstabellini, stefanos, julien, Volodymyr_Babchuk,
	bertrand.marquis, jbeulich, Ayan Kumar Halder

GENMASK(30, 21) should be 0x07fe00000

Signed-off-by: Ayan Kumar Halder <ayankuma@xilinx.com>
---

 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..2c8522d218 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 vector 0x07fe00000.
  */
 #define GENMASK(h, l) \
     (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] Fixed an incorrect value
  2021-11-29 19:44 [PATCH] Fixed an incorrect value Ayan Kumar Halder
@ 2021-11-30  7:18 ` Jan Beulich
  2021-11-30  9:37   ` Ayan Kumar Halder
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2021-11-30  7:18 UTC (permalink / raw)
  To: Ayan Kumar Halder
  Cc: sstabellini, stefanos, julien, Volodymyr_Babchuk,
	bertrand.marquis, Ayan Kumar Halder, xen-devel

On 29.11.2021 20:44, Ayan Kumar Halder wrote:
> GENMASK(30, 21) should be 0x07fe00000

Please can this have a meaningful title? E.g. "bitops: fix incorrect
value in comment"?

> --- 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 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Fixed an incorrect value
  2021-11-30  7:18 ` Jan Beulich
@ 2021-11-30  9:37   ` Ayan Kumar Halder
  2021-11-30 10:31     ` Jan Beulich
  0 siblings, 1 reply; 5+ messages in thread
From: Ayan Kumar Halder @ 2021-11-30  9:37 UTC (permalink / raw)
  To: Jan Beulich, Ayan Kumar Halder
  Cc: sstabellini, stefanos, julien, Volodymyr_Babchuk,
	bertrand.marquis, xen-devel

Hi Jan,

Thanks for the review. Just one question.

On 30/11/2021 07:18, Jan Beulich wrote:
> On 29.11.2021 20:44, Ayan Kumar Halder wrote:
>> GENMASK(30, 21) should be 0x07fe00000
> 
> Please can this have a meaningful title? E.g. "bitops: fix incorrect
> value in comment"?
> 
>> --- 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 vector 0x07fe00000.
> 
> Once at it I think you also want to
> - replace the word "vector",
Should I replace "vector" with "value" ?

- Ayan

> - drop the odd leading 0: The number would better be 8 digits or
>    16 digits, but not 9.
> 
> Jan
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Fixed an incorrect value
  2021-11-30  9:37   ` Ayan Kumar Halder
@ 2021-11-30 10:31     ` Jan Beulich
  2021-11-30 18:14       ` Ayan Kumar Halder
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2021-11-30 10:31 UTC (permalink / raw)
  To: Ayan Kumar Halder
  Cc: sstabellini, stefanos, julien, Volodymyr_Babchuk,
	bertrand.marquis, xen-devel

On 30.11.2021 10:37, Ayan Kumar Halder wrote:
> On 30/11/2021 07:18, Jan Beulich wrote:
>> On 29.11.2021 20:44, Ayan Kumar Halder wrote:
>>> GENMASK(30, 21) should be 0x07fe00000
>>
>> Please can this have a meaningful title? E.g. "bitops: fix incorrect
>> value in comment"?
>>
>>> --- 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 vector 0x07fe00000.
>>
>> Once at it I think you also want to
>> - replace the word "vector",
> Should I replace "vector" with "value" ?

Perhaps, yes.

Jan



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Fixed an incorrect value
  2021-11-30 10:31     ` Jan Beulich
@ 2021-11-30 18:14       ` Ayan Kumar Halder
  0 siblings, 0 replies; 5+ messages in thread
From: Ayan Kumar Halder @ 2021-11-30 18:14 UTC (permalink / raw)
  To: Jan Beulich, Ayan Kumar Halder
  Cc: sstabellini, stefanos, julien, Volodymyr_Babchuk,
	bertrand.marquis, xen-devel

Hi Jan,

On 30/11/2021 10:31, Jan Beulich wrote:
> On 30.11.2021 10:37, Ayan Kumar Halder wrote:
>> On 30/11/2021 07:18, Jan Beulich wrote:
>>> On 29.11.2021 20:44, Ayan Kumar Halder wrote:
>>>> GENMASK(30, 21) should be 0x07fe00000
>>>
>>> Please can this have a meaningful title? E.g. "bitops: fix incorrect
>>> value in comment"?
>>>
>>>> --- 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 vector 0x07fe00000.
>>>
>>> Once at it I think you also want to
>>> - replace the word "vector",
>> Should I replace "vector" with "value" ?
> 
> Perhaps, yes.
Thanks for the review. I have sent a v2 patch.

- Ayan

> 
> Jan
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-30 18:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-29 19:44 [PATCH] Fixed an incorrect value Ayan Kumar Halder
2021-11-30  7:18 ` Jan Beulich
2021-11-30  9:37   ` Ayan Kumar Halder
2021-11-30 10:31     ` Jan Beulich
2021-11-30 18:14       ` Ayan Kumar Halder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.