提交 7c783601 编写于 作者: J Jiri Slaby 提交者: Greg Kroah-Hartman

tty: remove file from n_tty_ioctl_helper

After the previous patch, there are no users of 'file' in
n_tty_ioctl_helper. So remove it also from there.

Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Johan Hedberg <johan.hedberg@gmail.com>
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: NKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: NJiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210914091134.17426-6-jslaby@suse.czSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 dcc223e8
...@@ -790,7 +790,7 @@ static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file *file, ...@@ -790,7 +790,7 @@ static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file *file,
break; break;
default: default:
err = n_tty_ioctl_helper(tty, file, cmd, arg); err = n_tty_ioctl_helper(tty, cmd, arg);
break; break;
} }
......
...@@ -310,7 +310,7 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file, ...@@ -310,7 +310,7 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,
/* flush our buffers and the serial port's buffer */ /* flush our buffers and the serial port's buffer */
if (arg == TCIOFLUSH || arg == TCOFLUSH) if (arg == TCIOFLUSH || arg == TCOFLUSH)
ppp_async_flush_output(ap); ppp_async_flush_output(ap);
err = n_tty_ioctl_helper(tty, file, cmd, arg); err = n_tty_ioctl_helper(tty, cmd, arg);
break; break;
case FIONREAD: case FIONREAD:
......
...@@ -303,7 +303,7 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file, ...@@ -303,7 +303,7 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file,
/* flush our buffers and the serial port's buffer */ /* flush our buffers and the serial port's buffer */
if (arg == TCIOFLUSH || arg == TCOFLUSH) if (arg == TCIOFLUSH || arg == TCOFLUSH)
ppp_sync_flush_output(ap); ppp_sync_flush_output(ap);
err = n_tty_ioctl_helper(tty, file, cmd, arg); err = n_tty_ioctl_helper(tty, cmd, arg);
break; break;
case FIONREAD: case FIONREAD:
......
...@@ -2712,7 +2712,7 @@ static int gsmld_ioctl(struct tty_struct *tty, struct file *file, ...@@ -2712,7 +2712,7 @@ static int gsmld_ioctl(struct tty_struct *tty, struct file *file,
base = mux_num_to_base(gsm); base = mux_num_to_base(gsm);
return put_user(base + 1, (__u32 __user *)arg); return put_user(base + 1, (__u32 __user *)arg);
default: default:
return n_tty_ioctl_helper(tty, file, cmd, arg); return n_tty_ioctl_helper(tty, cmd, arg);
} }
} }
......
...@@ -630,7 +630,7 @@ static int n_hdlc_tty_ioctl(struct tty_struct *tty, struct file *file, ...@@ -630,7 +630,7 @@ static int n_hdlc_tty_ioctl(struct tty_struct *tty, struct file *file,
fallthrough; /* to default */ fallthrough; /* to default */
default: default:
error = n_tty_ioctl_helper(tty, file, cmd, arg); error = n_tty_ioctl_helper(tty, cmd, arg);
break; break;
} }
return error; return error;
......
...@@ -2418,7 +2418,7 @@ static int n_tty_ioctl(struct tty_struct *tty, struct file *file, ...@@ -2418,7 +2418,7 @@ static int n_tty_ioctl(struct tty_struct *tty, struct file *file,
up_write(&tty->termios_rwsem); up_write(&tty->termios_rwsem);
return put_user(retval, (unsigned int __user *) arg); return put_user(retval, (unsigned int __user *) arg);
default: default:
return n_tty_ioctl_helper(tty, file, cmd, arg); return n_tty_ioctl_helper(tty, cmd, arg);
} }
} }
......
...@@ -854,8 +854,8 @@ int tty_perform_flush(struct tty_struct *tty, unsigned long arg) ...@@ -854,8 +854,8 @@ int tty_perform_flush(struct tty_struct *tty, unsigned long arg)
} }
EXPORT_SYMBOL_GPL(tty_perform_flush); EXPORT_SYMBOL_GPL(tty_perform_flush);
int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file, int n_tty_ioctl_helper(struct tty_struct *tty, unsigned int cmd,
unsigned int cmd, unsigned long arg) unsigned long arg)
{ {
int retval; int retval;
......
...@@ -407,8 +407,8 @@ static inline int tty_audit_push(void) ...@@ -407,8 +407,8 @@ static inline int tty_audit_push(void)
#endif #endif
/* tty_ioctl.c */ /* tty_ioctl.c */
int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file, int n_tty_ioctl_helper(struct tty_struct *tty, unsigned int cmd,
unsigned int cmd, unsigned long arg); unsigned long arg);
/* vt.c */ /* vt.c */
......
...@@ -349,7 +349,7 @@ static int nci_uart_tty_ioctl(struct tty_struct *tty, struct file *file, ...@@ -349,7 +349,7 @@ static int nci_uart_tty_ioctl(struct tty_struct *tty, struct file *file,
return -EBUSY; return -EBUSY;
break; break;
default: default:
err = n_tty_ioctl_helper(tty, file, cmd, arg); err = n_tty_ioctl_helper(tty, cmd, arg);
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册