Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

scullc: BKL ioctl pushdown API change

  • Loading branch information...
commit 2733750538721f5e0703a1c4fc6abf0d0ee2c33f 1 parent 07a783b
@martinezjavier authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 scullc/main.c
View
5 scullc/main.c
@@ -271,8 +271,7 @@ ssize_t scullc_write (struct file *filp, const char __user *buf, size_t count,
* The ioctl() implementation
*/
-int scullc_ioctl (struct inode *inode, struct file *filp,
- unsigned int cmd, unsigned long arg)
+long scullc_ioctl (struct file *filp, unsigned int cmd, unsigned long arg)
{
int err = 0, ret = 0, tmp;
@@ -475,7 +474,7 @@ struct file_operations scullc_fops = {
.llseek = scullc_llseek,
.read = scullc_read,
.write = scullc_write,
- .ioctl = scullc_ioctl,
+ .unlocked_ioctl = scullc_ioctl,
.open = scullc_open,
.release = scullc_release,
.aio_read = scullc_aio_read,
Please sign in to comment.
Something went wrong with that request. Please try again.