Message ID | 20161017194406.1080-2-eric@anholt.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Oct 17, 2016 at 12:44:02PM -0700, Eric Anholt wrote: > file_operations.write returns a ssize_t, which worked out fine on 32 > bit but errors out on 64 bit. > > Signed-off-by: Eric Anholt <eric@anholt.net> > --- > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) I also have already fixed this one :)
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c index 7e032130d967..f07cd4448ddf 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c @@ -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) {
file_operations.write returns a ssize_t, which worked out fine on 32 bit but errors out on 64 bit. Signed-off-by: Eric Anholt <eric@anholt.net> --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)