[PATCH] lose unused arguments in dm ioctl callbacks

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2007-08-28 22:15:59 -04:00
commit 647b3d0084
4 changed files with 4 additions and 7 deletions

View file

@ -110,8 +110,7 @@ static int linear_status(struct dm_target *ti, status_type_t type,
return 0;
}
static int linear_ioctl(struct dm_target *ti, struct inode *inode,
struct file *filp, unsigned int cmd,
static int linear_ioctl(struct dm_target *ti, unsigned int cmd,
unsigned long arg)
{
struct linear_c *lc = (struct linear_c *) ti->private;

View file

@ -1395,8 +1395,7 @@ error:
return -EINVAL;
}
static int multipath_ioctl(struct dm_target *ti, struct inode *inode,
struct file *filp, unsigned int cmd,
static int multipath_ioctl(struct dm_target *ti, unsigned int cmd,
unsigned long arg)
{
struct multipath *m = (struct multipath *) ti->private;

View file

@ -345,7 +345,7 @@ static int dm_blk_ioctl(struct inode *inode, struct file *file,
}
if (tgt->type->ioctl)
r = tgt->type->ioctl(tgt, inode, file, cmd, arg);
r = tgt->type->ioctl(tgt, cmd, arg);
out:
dm_table_put(map);