From: Amerigo Wang <xiyou.wangcong@gmail.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-kernel@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
Andi Kleen <andi@firstfloor.org>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Jeff Dike <jdike@addtoit.com>
Subject: Re: [PATCH 1/5] arch/um: handle compat_ioctl in tty line driver
Date: Thu, 13 Aug 2009 13:08:45 +0800 [thread overview]
Message-ID: <20090813050845.GD5031@cr0.nay.redhat.com> (raw)
In-Reply-To: <1249564170-18627-2-git-send-email-arnd@arndb.de>
On Thu, Aug 06, 2009 at 03:09:26PM +0200, Arnd Bergmann wrote:
>This pushes the handling of VT specific ioctls down to the
>UML specific drivers so we can remove it from the common
>compat_ioctl.c file.
>
>Cc: Jeff Dike <jdike@addtoit.com>
>Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
>---
> arch/um/drivers/line.c | 6 ++++++
> arch/um/drivers/ssl.c | 1 +
> arch/um/drivers/stdio_console.c | 1 +
> arch/um/include/shared/line.h | 2 ++
> 4 files changed, 10 insertions(+), 0 deletions(-)
>
>diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c
>index 14a102e..9819a3b 100644
>--- a/arch/um/drivers/line.c
>+++ b/arch/um/drivers/line.c
>@@ -314,6 +314,12 @@ int line_ioctl(struct tty_struct *tty, struct file * file,
> return ret;
> }
>
>+long line_compat_ioctl(struct tty_struct *tty, struct file * file,
>+ unsigned int cmd, unsigned long arg)
>+{
>+ return line_ioctl(tty, file, cmd, arg);
>+}
>+
> void line_throttle(struct tty_struct *tty)
> {
> struct line *line = tty->driver_data;
>diff --git a/arch/um/drivers/ssl.c b/arch/um/drivers/ssl.c
>index f1786e6..eccf14a 100644
>--- a/arch/um/drivers/ssl.c
>+++ b/arch/um/drivers/ssl.c
>@@ -137,6 +137,7 @@ static const struct tty_operations ssl_ops = {
> .flush_chars = line_flush_chars,
> .set_termios = line_set_termios,
> .ioctl = line_ioctl,
>+ .compat_ioctl = line_compat_ioctl,
> .throttle = line_throttle,
> .unthrottle = line_unthrottle,
> #if 0
>diff --git a/arch/um/drivers/stdio_console.c b/arch/um/drivers/stdio_console.c
>index 49266f6..2cb1f04 100644
>--- a/arch/um/drivers/stdio_console.c
>+++ b/arch/um/drivers/stdio_console.c
>@@ -120,6 +120,7 @@ static const struct tty_operations console_ops = {
> .flush_chars = line_flush_chars,
> .set_termios = line_set_termios,
> .ioctl = line_ioctl,
>+ .compat_ioctl = line_compat_ioctl,
> .throttle = line_throttle,
> .unthrottle = line_unthrottle,
> };
>diff --git a/arch/um/include/shared/line.h b/arch/um/include/shared/line.h
>index 311a0d3..6ef62e4 100644
>--- a/arch/um/include/shared/line.h
>+++ b/arch/um/include/shared/line.h
>@@ -79,6 +79,8 @@ extern void line_flush_chars(struct tty_struct *tty);
> extern int line_write_room(struct tty_struct *tty);
> extern int line_ioctl(struct tty_struct *tty, struct file * file,
> unsigned int cmd, unsigned long arg);
>+extern long line_compat_ioctl(struct tty_struct *tty, struct file * file,
>+ unsigned int cmd, unsigned long arg);
> extern void line_throttle(struct tty_struct *tty);
> extern void line_unthrottle(struct tty_struct *tty);
>
>--
>1.6.3.3
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2009-08-13 5:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-06 13:09 [PATCH 0/5] Kill the BKL in compat ioctl handling Arnd Bergmann
2009-08-06 13:09 ` [PATCH 1/5] arch/um: handle compat_ioctl in tty line driver Arnd Bergmann
2009-08-13 5:08 ` Amerigo Wang [this message]
2009-08-06 13:09 ` [PATCH 2/5] s390: move keyboard compat ioctls into tty3270 driver Arnd Bergmann
2009-08-06 13:09 ` [PATCH 3/5] tty: handle VT specific compat ioctls in vt driver Arnd Bergmann
2009-08-07 6:23 ` Frederic Weisbecker
2009-08-07 7:04 ` Arnd Bergmann
2009-08-07 8:04 ` Frederic Weisbecker
2009-08-07 12:02 ` Arnd Bergmann
2009-08-08 0:34 ` Frederic Weisbecker
2009-08-08 0:41 ` Greg KH
2009-08-08 1:03 ` Frederic Weisbecker
2009-08-08 3:20 ` Greg KH
2009-08-10 16:24 ` Arnd Bergmann
2009-08-07 9:57 ` Alan Cox
2009-08-07 19:23 ` Frederic Weisbecker
2009-08-06 13:09 ` [PATCH 4/5] compat_ioctl: remove VT specific ioctl handlers Arnd Bergmann
2009-08-06 13:09 ` [PATCH 5/5] compat_ioctl: do not hold BKL in handlers Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090813050845.GD5031@cr0.nay.redhat.com \
--to=xiyou.wangcong@gmail.com \
--cc=andi@firstfloor.org \
--cc=arnd@arndb.de \
--cc=hch@lst.de \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox