]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
fcntl: trim arguments
authorKanchan Joshi <joshi.k@samsung.com>
Mon, 22 Sep 2025 11:30:46 +0000 (17:00 +0530)
committerChristian Brauner <brauner@kernel.org>
Fri, 26 Sep 2025 08:21:23 +0000 (10:21 +0200)
Remove superfluous argument from fcntl_{get/set}_rw_hint.
No functional change.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fcntl.c

index 5598e4d574229933533e53a7ee9205f91e5b12e0..72f8433d9109889eecef56b32d20a85b4e12ea44 100644 (file)
@@ -355,8 +355,7 @@ static bool rw_hint_valid(u64 hint)
        }
 }
 
-static long fcntl_get_rw_hint(struct file *file, unsigned int cmd,
-                             unsigned long arg)
+static long fcntl_get_rw_hint(struct file *file, unsigned long arg)
 {
        struct inode *inode = file_inode(file);
        u64 __user *argp = (u64 __user *)arg;
@@ -367,8 +366,7 @@ static long fcntl_get_rw_hint(struct file *file, unsigned int cmd,
        return 0;
 }
 
-static long fcntl_set_rw_hint(struct file *file, unsigned int cmd,
-                             unsigned long arg)
+static long fcntl_set_rw_hint(struct file *file, unsigned long arg)
 {
        struct inode *inode = file_inode(file);
        u64 __user *argp = (u64 __user *)arg;
@@ -547,10 +545,10 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
                err = memfd_fcntl(filp, cmd, argi);
                break;
        case F_GET_RW_HINT:
-               err = fcntl_get_rw_hint(filp, cmd, arg);
+               err = fcntl_get_rw_hint(filp, arg);
                break;
        case F_SET_RW_HINT:
-               err = fcntl_set_rw_hint(filp, cmd, arg);
+               err = fcntl_set_rw_hint(filp, arg);
                break;
        default:
                break;