From: Vinod Koul Date: Tue, 13 Sep 2016 16:55:07 +0000 (+0530) Subject: dmaengine: coh901318: return ssize_t for coh901318_debugfs_read X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66a1a51270a2ed057b41cda234cc3fe2ff7c64bf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dmaengine: coh901318: return ssize_t for coh901318_debugfs_read The file_operations.read expects return as ssize_t, so update coh901318_debugfs_read to return ssize_t to fix the warning: drivers/dma/coh901318.c:1369:2: warning: initialization from incompatible pointer type [enabled by default] .read = coh901318_debugfs_read, Acked-by: Linus Walleij Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c index c0cd1d8e5b2e..57619adf79b4 100644 --- a/drivers/dma/coh901318.c +++ b/drivers/dma/coh901318.c @@ -1335,7 +1335,7 @@ static void coh901318_list_print(struct coh901318_chan *cohc, static struct coh901318_base *debugfs_dma_base; static struct dentry *dma_dentry; -static int coh901318_debugfs_read(struct file *file, char __user *buf, +static ssize_t coh901318_debugfs_read(struct file *file, char __user *buf, size_t count, loff_t *f_pos) { u64 started_channels = debugfs_dma_base->pm.started_channels;