Skip to content

Commit 8a06dc4

Browse files
richardweinbergertorvalds
authored andcommitted
um: remove file pointer from ioctl
Commit 6caa76b ("tty: now phase out the ioctl file pointer for good") removed the ioctl file pointer. User Mode Linux's line driver uses this ioctl and needs a signature update too. Signed-off-by: Richard Weinberger <richard@nod.at> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Greg KH <greg@kroah.com> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 13e165b commit 8a06dc4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/um/drivers/line.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ static const struct {
255255
{ KDSIGACCEPT, KERN_INFO, "KDSIGACCEPT" },
256256
};
257257

258-
int line_ioctl(struct tty_struct *tty, struct file * file,
259-
unsigned int cmd, unsigned long arg)
258+
int line_ioctl(struct tty_struct *tty, unsigned int cmd,
259+
unsigned long arg)
260260
{
261261
int ret;
262262
int i;

‎arch/um/include/shared/line.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ extern int line_chars_in_buffer(struct tty_struct *tty);
7777
extern void line_flush_buffer(struct tty_struct *tty);
7878
extern void line_flush_chars(struct tty_struct *tty);
7979
extern int line_write_room(struct tty_struct *tty);
80-
extern int line_ioctl(struct tty_struct *tty, struct file * file,
81-
unsigned int cmd, unsigned long arg);
80+
extern int line_ioctl(struct tty_struct *tty, unsigned int cmd,
81+
unsigned long arg);
8282
extern void line_throttle(struct tty_struct *tty);
8383
extern void line_unthrottle(struct tty_struct *tty);
8484

0 commit comments

Comments
 (0)