xen:include:asm-x86:e820: just covert nr_map with unsigned int
PATCH 1/1 xen:include:asm-x86:e820: just covert nr_map with unsigned int
This shouldn't ever be negative.
--- xen/include/asm-x86/e820.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/asm-x86/e820.h +1 -1
@@ -19,7 +19,7 @@ struct __packed e820entry {#define E820MAX 128struct e820map { -int nr_map; +unsigned int nr_map;struct e820entry map[E820MAX ]; };
Signature · 1 line
1.9.1
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:00, <[email protected]> wrote:
This shouldn't ever be negative.
This means nothing for the actual change, and makes me imply you did the change without checking it actually _is_ never negative in any of the uses.
Also please cut down your patch title prefixes (not just here) to something reasonable.
Jan
Quoted 10 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:00, <[email protected]> wrote:
This shouldn't ever be negative.
This means nothing for the actual change, and makes me imply you did the change without checking it actually _is_ never negative in any of the uses.
Also please cut down your patch title prefixes (not just here) to something reasonable.
What about this?
xen:e820map: just convert nr_map with unsigned int
nr_map is used to represent the amount of e820entry in e820 so it shouldn't be negative.
Thanks
Tiejun
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:26, <[email protected]> wrote:
Quoted 7 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:00, <[email protected]> wrote:
This shouldn't ever be negative.
This means nothing for the actual change, and makes me imply you did the change without checking it actually _is_ never negative in any of the uses.
Quoted 7 lines
Quoted 3 lines
Also please cut down your patch title prefixes (not just here) to something reasonable.
What about this?
xen:e820map: just convert
nr_mapwith unsigned int
x86: make struct e820map's nr_map unsigned
Quoted 2 lines
nr_mapis used to represent the amount of e820entry in e820 so it shouldn't be negative.
You still say "shouldn't" instead of "isn't", making me still imply you didn't verify that fact. I.e. I'd be fine with a suitable variant of the earlier more terse description as long as it says what it needs to say.
Jan
Quoted 13 lines · Jan Beulich
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:26, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:00, <[email protected]> wrote:
This shouldn't ever be negative.
This means nothing for the actual change, and makes me imply you did the change without checking it actually _is_ never negative in any of the uses.
Also please cut down your patch title prefixes (not just here) to something reasonable.
Quoted 5 lines
Quoted 3 lines
What about this?
xen:e820map: just convert
nr_mapwith unsigned intx86: make struct e820map's
nr_mapunsigned
Okay.
Quoted 6 lines
Quoted 3 lines
nr_mapis used to represent the amount of e820entry in e820 so it shouldn't be negative.You still say "shouldn't" instead of "isn't", making me still imply you didn't verify that fact. I.e. I'd be fine with a suitable variant of the
Maybe I'm poor to describe that main point here.
x86: make struct e820map's nr_map unsigned
nr_map is used to represent the amount of e820entry in e820 so its not always negative.
Thanks
Tiejun
Quoted 6 lines
earlier more terse description as long as it says what it needs to say.
Jan
Quoted 30 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:54, <[email protected]> wrote:
Quoted 13 lines · Jan Beulich
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:26, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:00, <[email protected]> wrote:
This shouldn't ever be negative.
This means nothing for the actual change, and makes me imply you did the change without checking it actually _is_ never negative in any of the uses.
Also please cut down your patch title prefixes (not just here) to something reasonable.
Quoted 5 lines
Quoted 3 lines
What about this?
xen:e820map: just convert
nr_mapwith unsigned intx86: make struct e820map's
nr_mapunsignedOkay.
Quoted 6 lines
Quoted 3 lines
nr_mapis used to represent the amount of e820entry in e820 so it shouldn't be negative.You still say "shouldn't" instead of "isn't", making me still imply you didn't verify that fact. I.e. I'd be fine with a suitable variant of the
Quoted 6 lines
Maybe I'm poor to describe that main point here.
x86: make struct e820map's
nr_mapunsigned
nr_mapis used to represent the amount of e820entry in e820 so its not always negative.
"not always negative"?
Based on your initial one, "This is never negative" would be fine, _provided you verified_ this to be the case.
Jan
Quoted 32 lines · Jan Beulich
Quoted 32 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:54, <[email protected]> wrote:
Quoted 13 lines · Jan Beulich
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:26, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 09:00, <[email protected]> wrote:
This shouldn't ever be negative.
This means nothing for the actual change, and makes me imply you did the change without checking it actually _is_ never negative in any of the uses.
Also please cut down your patch title prefixes (not just here) to something reasonable.
Quoted 5 lines
Quoted 3 lines
What about this?
xen:e820map: just convert
nr_mapwith unsigned intx86: make struct e820map's
nr_mapunsignedOkay.
Quoted 6 lines
Quoted 3 lines
nr_mapis used to represent the amount of e820entry in e820 so it shouldn't be negative.You still say "shouldn't" instead of "isn't", making me still imply you didn't verify that fact. I.e. I'd be fine with a suitable variant of the
Maybe I'm poor to describe that main point here.
Quoted 8 lines
Quoted 4 lines
x86: make struct e820map's
nr_mapunsigned
nr_mapis used to represent the amount of e820entry in e820 so its not always negative."not always negative"?
Based on your initial one, "This is never negative" would be fine,
Will be fixed.
Quoted 2 lines
_providedyouverified_this to be the case.
Sorry, are you saying I need to add something in patch description,
x86: make struct e820map's nr_map unsigned
nr_map is used to represent the amount of e820entry in e820 so this is never negative.
Note just boot one VM to confirm this is really fine.
Thanks
Tiejun
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 11:06, <[email protected]> wrote:
Quoted 2 lines · Jan Beulich
_providedyouverified_this to be the case.Sorry, are you saying I need to add something in patch description,
No (at least not normally, but with it taking so long for you to understand what is needed, I guess we need you to state this explicitly) - all I want is that you state the right thing, and what you state is true.
Quoted 6 lines
x86: make struct e820map's
nr_mapunsigned
nr_mapis used to represent the amount of e820entry in e820 so this is never negative.Note just boot one VM to confirm this is really fine.
This - again - is no proof of anything.
Jan
Quoted 5 lines · Jan Beulich
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 08.08.14 at 11:06, <[email protected]> wrote:
Quoted 2 lines · Jan Beulich
_providedyouverified_this to be the case.
Quoted 7 lines
Quoted 1 line
Sorry, are you saying I need to add something in patch description,
No (at least not normally, but with it taking so long for you to understand what is needed, I guess we need you to state this explicitly) - all I want is that you state the right thing, and what you state is true.
Understand and thanks so much.
Tiejun