ia64/xen-unstable

changeset 2691:fa98ee4c6a0c

bitkeeper revision 1.1159.124.1 (4177d127Hy3BcaV44WvSa5mdLDqq8Q)

Avoid compiler warning.
author kaf24@freefall.cl.cam.ac.uk
date Thu Oct 21 15:09:27 2004 +0000 (2004-10-21)
parents d92269f82bbe
children d8e27145f1eb
files linux-2.6.8.1-xen-sparse/drivers/xen/balloon/balloon.c
line diff
     1.1 --- a/linux-2.6.8.1-xen-sparse/drivers/xen/balloon/balloon.c	Thu Oct 21 13:51:45 2004 +0000
     1.2 +++ b/linux-2.6.8.1-xen-sparse/drivers/xen/balloon/balloon.c	Thu Oct 21 15:09:27 2004 +0000
     1.3 @@ -388,6 +388,8 @@ claim_new_pages(unsigned long num_pages)
     1.4  
     1.5  static int balloon_try_target(int target)
     1.6  {
     1.7 +    int change, reclaim;
     1.8 +
     1.9      if ( target < current_pages )
    1.10      {
    1.11          int change = inflate_balloon(current_pages-target);
    1.12 @@ -400,7 +402,7 @@ static int balloon_try_target(int target
    1.13      }
    1.14      else if ( target > current_pages )
    1.15      {
    1.16 -        int change, reclaim = min(target,most_seen_pages) - current_pages;
    1.17 +        reclaim = min((unsigned long)target,most_seen_pages) - current_pages;
    1.18  
    1.19          if ( reclaim )
    1.20          {