x86: make struct e820map's nr_map unsigned
authorTiejun Chen <tiejun.chen@intel.com>
Mon, 11 Aug 2014 13:10:07 +0000 (15:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Aug 2014 13:10:07 +0000 (15:10 +0200)
nr_map is used to represent the amount of e820entry in e820 so this is
never negative.

Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
xen/include/asm-x86/e820.h

index 08b413d566c437750053549634cf0954c53f3ba1..71a804c21624d6f295d5285fae43d0a7fa27bd73 100644 (file)
@@ -19,7 +19,7 @@ struct __packed e820entry {
 #define E820MAX        128
 
 struct e820map {
-    int nr_map;
+    unsigned int nr_map;
     struct e820entry map[E820MAX];
 };