]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
staging: vc04_services: fix debugfs write functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Oct 2016 10:01:41 +0000 (12:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:26:09 +0000 (10:26 +0200)
write functions need to return ssize_t, not int, so fix the functions up
for the correct prototype.

Cc: Daniel Stone <daniels@collabora.com>
Cc: "Noralf Trønnes" <noralf@tronnes.org>
Cc: Pranith Kumar <bobby.prani@gmail.com>
Cc: popcornmix <popcornmix@gmail.com>
Cc: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c

index 7e032130d967a69384926ddbe614e9af4be8f22e..f07cd4448ddfc9189ce9caa66ef958c640499e1e 100644 (file)
@@ -120,7 +120,7 @@ static int debugfs_log_open(struct inode *inode, struct file *file)
        return single_open(file, debugfs_log_show, inode->i_private);
 }
 
-static int debugfs_log_write(struct file *file,
+static ssize_t debugfs_log_write(struct file *file,
        const char __user *buffer,
        size_t count, loff_t *ppos)
 {
@@ -229,7 +229,7 @@ static int debugfs_trace_open(struct inode *inode, struct file *file)
        return single_open(file, debugfs_trace_show, inode->i_private);
 }
 
-static int debugfs_trace_write(struct file *file,
+static ssize_t debugfs_trace_write(struct file *file,
        const char __user *buffer,
        size_t count, loff_t *ppos)
 {