remove warnings at virtio-keyboard, virtio-esm, virtio-gl, maru_codec.
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
return 0;\r
}\r
\r
-// FIX ME : fsync parameter 2,3 parameter missing\r
-static int glmem_fsync(struct file *filp, int datasync)\r
+static int glmem_fsync(struct file *filp, loff_t *start, loff_t *end, int datasync)\r
{\r
struct virtio_gl_data *gldata = to_virtio_gl_data(filp);\r
\r
} else if (cmd == CODEC_CMD_GET_MMAP_OFFSET) {
value = readl(svcodec->ioaddr + cmd);
CODEC_LOG(KERN_DEBUG,
- "ioctl: get mmap offset: %d.\n", value);
+ "ioctl: get mmap offset: %ld.\n", value);
} else {
CODEC_LOG(KERN_INFO,
"ioctl: no command available.\n");
return 0;
}
-static ssize_t esm_write(struct inode *i, const char __user *ubuf, size_t len, loff_t *off)
+static ssize_t esm_write(struct file *f, const char __user *ubuf, size_t len, loff_t *off)
{
int err = 0;
ssize_t ret = 0;
}
buf[len - 1] = '\0';
- kstrtou16(buf, 10, &vesm->progress.percentage);
+ ret = kstrtou16(buf, 10, &vesm->progress.percentage);
+ if (ret < 0) {
+ VESM_LOG(KERN_ERR, "failed to convert string to integer.\n");
+ return ret;
+ }
VESM_LOG(KERN_DEBUG, "boot up progress is [%u] percent done.\n", vesm->progress.percentage);
sizeof(struct EmulKbdEvent));
}
- ret = virtqueue_add_buf(vkbd->vq, &vkbd->sg, 0, 10, (void *)(10), GFP_ATOMIC);
+ ret = virtqueue_add_buf(vkbd->vq, vkbd->sg, 0, 10, (void *)(10), GFP_ATOMIC);
if (ret < 0) {
VKBD_LOG(KERN_ERR, "failed to add buffer to virtqueue.\n");
kfree(vkbd);