diff options
Diffstat (limited to 'scullv')
-rw-r--r-- | scullv/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scullv/main.c b/scullv/main.c index 6666857..df1a6fa 100644 --- a/scullv/main.c +++ b/scullv/main.c @@ -270,8 +270,7 @@ ssize_t scullv_write (struct file *filp, const char __user *buf, size_t count, * The ioctl() implementation */ -int scullv_ioctl (struct inode *inode, struct file *filp, - unsigned int cmd, unsigned long arg) +long scullv_ioctl (struct file *filp, unsigned int cmd, unsigned long arg) { int err = 0, ret = 0, tmp; @@ -479,7 +478,7 @@ struct file_operations scullv_fops = { .llseek = scullv_llseek, .read = scullv_read, .write = scullv_write, - .ioctl = scullv_ioctl, + .unlocked_ioctl = scullv_ioctl, .mmap = scullv_mmap, .open = scullv_open, .release = scullv_release, |