diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-08-28 22:15:59 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-21 07:47:18 -0400 |
commit | 647b3d0084158c47b1aea8f34d13cab9cd0a5b49 (patch) | |
tree | c36d61d8c85c4e0e6160153ab99a6e7568b44a70 /drivers/md | |
parent | 1bddd9e6453ef1c7bc5b6f4ddbf7d31f4aee7a44 (diff) |
[PATCH] lose unused arguments in dm ioctl callbacks
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-linear.c | 3 | ||||
-rw-r--r-- | drivers/md/dm-mpath.c | 3 | ||||
-rw-r--r-- | drivers/md/dm.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index 6449bcdf84ca..fa358385eed3 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c | |||
@@ -110,8 +110,7 @@ static int linear_status(struct dm_target *ti, status_type_t type, | |||
110 | return 0; | 110 | return 0; |
111 | } | 111 | } |
112 | 112 | ||
113 | static int linear_ioctl(struct dm_target *ti, struct inode *inode, | 113 | static int linear_ioctl(struct dm_target *ti, unsigned int cmd, |
114 | struct file *filp, unsigned int cmd, | ||
115 | unsigned long arg) | 114 | unsigned long arg) |
116 | { | 115 | { |
117 | struct linear_c *lc = (struct linear_c *) ti->private; | 116 | struct linear_c *lc = (struct linear_c *) ti->private; |
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 9bf3460c5540..c681d5e5f45c 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c | |||
@@ -1395,8 +1395,7 @@ error: | |||
1395 | return -EINVAL; | 1395 | return -EINVAL; |
1396 | } | 1396 | } |
1397 | 1397 | ||
1398 | static int multipath_ioctl(struct dm_target *ti, struct inode *inode, | 1398 | static int multipath_ioctl(struct dm_target *ti, unsigned int cmd, |
1399 | struct file *filp, unsigned int cmd, | ||
1400 | unsigned long arg) | 1399 | unsigned long arg) |
1401 | { | 1400 | { |
1402 | struct multipath *m = (struct multipath *) ti->private; | 1401 | struct multipath *m = (struct multipath *) ti->private; |
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 327de03a5bdf..5f0f4c8bcd3e 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -345,7 +345,7 @@ static int dm_blk_ioctl(struct inode *inode, struct file *file, | |||
345 | } | 345 | } |
346 | 346 | ||
347 | if (tgt->type->ioctl) | 347 | if (tgt->type->ioctl) |
348 | r = tgt->type->ioctl(tgt, inode, file, cmd, arg); | 348 | r = tgt->type->ioctl(tgt, cmd, arg); |
349 | 349 | ||
350 | out: | 350 | out: |
351 | dm_table_put(map); | 351 | dm_table_put(map); |