X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fmfd%2Fab8500-debugfs.c;h=6d1bf7c3ca3b1be822f116e9835367167be61c62;hb=e89c8323b3f19a964453f9bb99a1ae2fdf63f9ed;hp=1a9a3414d4fa8551dd714d5b595b2b9104feaf76;hpb=20230620b44510ce968a719a1d6ee7483583178d;p=linux-2.6-microblaze.git diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c index 1a9a3414d4fa..6d1bf7c3ca3b 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c @@ -1801,7 +1801,7 @@ static ssize_t ab8500_hwreg_write(struct file *file, int buf_size, ret; /* Get userspace string and assure termination */ - buf_size = min(count, (sizeof(buf)-1)); + buf_size = min((int)count, (int)(sizeof(buf)-1)); if (copy_from_user(buf, user_buf, buf_size)) return -EFAULT; buf[buf_size] = 0;