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

Re: [Xen-devel] [PATCH v2 2/5] xen/x86: Define e820 entries counter as unsigned int



On 24/09/14 18:19, Daniel Kiper wrote:
> e820 entries counter is inherently an unsigned quantity
> so define it as unsigned int.
>
> Signed-off-by: Daniel Kiper <daniel.kiper@xxxxxxxxxx>

Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Although as a cleanup patch, this should be ahead of function changes in
your series.

> ---
> v2 - suggestions/fixes:
>    - change e820 entries counter signedness
>      (suggested by Andrew Cooper).
> ---
>  xen/arch/x86/e820.c        |    8 ++++----
>  xen/include/asm-x86/e820.h |    4 ++--
>  2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c
> index 55fe0d6..bf84bae 100644
> --- a/xen/arch/x86/e820.c
> +++ b/xen/arch/x86/e820.c
> @@ -89,9 +89,9 @@ static void __init add_memory_region(unsigned long long 
> start,
>      }
>  } /* add_memory_region */
>  
> -static void __init print_e820_memory_map(struct e820entry *map, int entries)
> +static void __init print_e820_memory_map(struct e820entry *map, unsigned int 
> entries)
>  {
> -    int i;
> +    unsigned int i;
>  
>      for (i = 0; i < entries; i++) {
>          printk(" %016Lx - %016Lx ",
> @@ -512,7 +512,7 @@ static void __init reserve_dmi_region(void)
>  }
>  
>  static void __init machine_specific_memory_setup(
> -    struct e820entry *raw, int *raw_nr)
> +    struct e820entry *raw, unsigned int *raw_nr)
>  {
>      unsigned long mpt_limit, ro_mpt_limit;
>      uint64_t top_of_ram, size;
> @@ -695,7 +695,7 @@ int __init reserve_e820_ram(struct e820map *e820, 
> uint64_t s, uint64_t e)
>  }
>  
>  unsigned long __init init_e820(
> -    const char *str, struct e820entry *raw, int *raw_nr)
> +    const char *str, struct e820entry *raw, unsigned int *raw_nr)
>  {
>      if ( e820_verbose )
>      {
> diff --git a/xen/include/asm-x86/e820.h b/xen/include/asm-x86/e820.h
> index 71a804c..d9ff4eb 100644
> --- a/xen/include/asm-x86/e820.h
> +++ b/xen/include/asm-x86/e820.h
> @@ -30,12 +30,12 @@ extern int e820_change_range_type(
>      uint32_t orig_type, uint32_t new_type);
>  extern int e820_add_range(
>      struct e820map *, uint64_t s, uint64_t e, uint32_t type);
> -extern unsigned long init_e820(const char *, struct e820entry *, int *);
> +extern unsigned long init_e820(const char *, struct e820entry *, unsigned 
> int *);
>  extern struct e820map e820;
>  
>  /* These symbols live in the boot trampoline. */
>  extern struct e820entry e820map[];
> -extern int e820nr;
> +extern unsigned int e820nr;
>  extern unsigned int lowmem_kb, highmem_kb;
>  
>  #define e820_raw bootsym(e820map)


_______________________________________________
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®.