Skip to contentSkip to conversation

x86: make struct e820map's nr_map unsigned

PATCH In review Tiejun Chen 1 participant 2 messages Aug 8, 2014 – Aug 11, 2014

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 8418fc4..0bd5c2f 100644
@@ -19,7 +19,7 @@ struct __packed e820entry {
 #define E820MAX	128
 
 struct e820map {
-    int nr_map;
+    unsigned int nr_map;
     struct e820entry map[E820MAX];
 };
 
Signature · 1 line
1.9.1
#1 lore raw

I assume this should be fine to you guy.

Thanks
Tiejun

Quoted 26 lines · Tiejun Chen

nr_map is used to represent the amount of e820entry in e820 so this is never negative.

---
  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
index 8418fc4..0bd5c2f 100644
@@ -19,7 +19,7 @@ struct __packed e820entry {
  #define E820MAX	128
 
  struct e820map {
-    int nr_map;
+    unsigned int nr_map;
      struct e820entry map[E820MAX];
  };