Message ID | 20210818062455.211065-6-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/7] loop: remove the ->ioctl method in loop_func_table | expand |
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 9176784d4fca..e93baff664c9 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -2486,7 +2486,7 @@ static int loop_control_remove(int idx) return ret; } -static int loop_control_get_free(int idx) +static int loop_control_get_free(void) { struct loop_device *lo; int id, ret; @@ -2514,7 +2514,7 @@ static long loop_control_ioctl(struct file *file, unsigned int cmd, case LOOP_CTL_REMOVE: return loop_control_remove(parm); case LOOP_CTL_GET_FREE: - return loop_control_get_free(parm); + return loop_control_get_free(); default: return -ENOSYS; }
Signed-off-by: Christoph Hellwig <hch@lst.de> --- drivers/block/loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)