--- 2.4.9aa1/drivers/md/lvm.c.~1~ Fri Aug 17 05:16:29 2001 +++ 2.4.9aa1/drivers/md/lvm.c Fri Aug 17 05:35:25 2001 @@ -2267,7 +2267,7 @@ /* save availiable i/o statistic data */ if (old_lv->lv_stripes < 2) { /* linear logical volume */ - end = min(old_lv->lv_current_le, new_lv->lv_current_le); + end = min(uint, old_lv->lv_current_le, new_lv->lv_current_le); for (l = 0; l < end; l++) { new_lv->lv_current_pe[l].reads += old_lv->lv_current_pe[l].reads; @@ -2281,7 +2281,7 @@ old_stripe_size = old_lv->lv_allocated_le / old_lv->lv_stripes; new_stripe_size = new_lv->lv_allocated_le / new_lv->lv_stripes; - end = min(old_stripe_size, new_stripe_size); + end = min(uint, old_stripe_size, new_stripe_size); for (i = source = dest = 0; i < new_lv->lv_stripes; i++) {