[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [v2][PATCH 1/1] x86: make struct e820map's nr_map unsigned



I assume this should be fine to you guy.

Thanks
Tiejun

On 2014/8/8 17:32, Tiejun Chen wrote:
nr_map is used to represent the amount of e820entry in e820 so
this is never negative.

Signed-off-by: Tiejun Chen <tiejun.chen@xxxxxxxxx>
---
  xen/include/asm-x86/e820.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

v2:

* Just refine the patch description.

diff --git a/xen/include/asm-x86/e820.h b/xen/include/asm-x86/e820.h
index 8418fc4..0bd5c2f 100644
--- a/xen/include/asm-x86/e820.h
+++ b/xen/include/asm-x86/e820.h
@@ -19,7 +19,7 @@ struct __packed e820entry {
  #define E820MAX       128

  struct e820map {
-    int nr_map;
+    unsigned int nr_map;
      struct e820entry map[E820MAX];
  };



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.