Commit b81f362a authored by Andries E. Brouwer's avatar Andries E. Brouwer Committed by Linus Torvalds

[PATCH] sparse fix for fat/file.c

parent 12c7588e
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/buffer_head.h> #include <linux/buffer_head.h>
static ssize_t fat_file_write(struct file *filp, const char *buf, size_t count, static ssize_t fat_file_write(struct file *filp, const char __user *buf,
loff_t *ppos); size_t count, loff_t *ppos);
struct file_operations fat_file_operations = { struct file_operations fat_file_operations = {
.llseek = generic_file_llseek, .llseek = generic_file_llseek,
...@@ -66,8 +66,8 @@ int fat_get_block(struct inode *inode, sector_t iblock, ...@@ -66,8 +66,8 @@ int fat_get_block(struct inode *inode, sector_t iblock,
return 0; return 0;
} }
static ssize_t fat_file_write(struct file *filp, const char *buf, size_t count, static ssize_t fat_file_write(struct file *filp, const char __user *buf,
loff_t *ppos) size_t count, loff_t *ppos)
{ {
struct inode *inode = filp->f_dentry->d_inode; struct inode *inode = filp->f_dentry->d_inode;
int retval; int retval;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment