static unsigned int ibm_scan_log_dump; /* RTAS token */
static struct proc_dir_entry *proc_ppc64_scan_log_dump; /* The proc file */
-static ssize_t scanlog_read(struct file *file, char __user *buf,
+static ssize_t scanlog_read(struct file *file, char *buf,
size_t count, loff_t *ppos)
{
struct inode * inode = file->f_dentry->d_inode;
return -EINVAL;
}
- if (!access_ok(VERIFY_WRITE, buf, count))
+ if (verify_area(VERIFY_WRITE, buf, count))
return -EFAULT;
for (;;) {
/*NOTREACHED*/
}
-static ssize_t scanlog_write(struct file * file, const char __user * buf,
+static ssize_t scanlog_write(struct file * file, const char * buf,
size_t count, loff_t *ppos)
{
char stkbuf[20];