x86: make struct e820map's nr_map unsigned
PATCH v2 1/1 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.
Signed-off-by Tiejun Chen <[email protected]>
--- xen/include/asm-x86/e820.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
v2:
* Just refine the patch description.
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
I assume this should be fine to you guy.
Thanks
Tiejun
Quoted 26 lines · Tiejun Chen
nr_mapis used to represent the amount of e820entry in e820 so this is never negative.Signed-off-by Tiejun Chen <[email protected]>--- xen/include/asm-x86/e820.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)v2:
* Just refine the patch description.
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 ]; };