alexn@dsv.su.se [PATCH] AoE warning on 64-bit archs ChangeSet 1.2035, 2005/03/09 10:20:37-08:00, alexn@dsv.su.se [PATCH] AoE warning on 64-bit archs I just accidently built AoE on x86-64 and it emits a warning due to conversion of types of different size, trivial fix: Signed-off-by: Alexander Nyberg Signed-off-by: Greg Kroah-Hartman drivers/block/aoe/aoechr.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/drivers/block/aoe/aoechr.c b/drivers/block/aoe/aoechr.c --- a/drivers/block/aoe/aoechr.c 2005-03-09 16:16:13 -08:00 +++ b/drivers/block/aoe/aoechr.c 2005-03-09 16:16:13 -08:00 @@ -178,13 +178,13 @@ static ssize_t aoechr_read(struct file *filp, char __user *buf, size_t cnt, loff_t *off) { - int n; + unsigned long n; char *mp; struct ErrMsg *em; ssize_t len; ulong flags; - n = (int) filp->private_data; + n = (unsigned long) filp->private_data; switch (n) { case MINOR_ERR: spin_lock_irqsave(&emsgs_lock, flags);