linux-um archives
 help / color / mirror / Atom feed
* [PATCH -next] uml: fix tty interface warnings
       [not found] <20110315194543.a5d56c0c.sfr@canb.auug.org.au>
@ 2011-03-16  0:22 ` Randy Dunlap
  2011-03-16  3:38   ` Américo Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2011-03-16  0:22 UTC (permalink / raw)
  To: Stephen Rothwell, gregkh
  Cc: linux-next, LKML, Jeff Dike, user-mode-linux-devel

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix tty interface warnings in arch/um:

arch/um/drivers/stdio_console.c:122: warning: initialization from incompatible pointer type
arch/um/drivers/ssl.c:139: warning: initialization from incompatible pointer type

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc:	Jeff Dike <jdike@addtoit.com>
Cc:	user-mode-linux-devel@lists.sourceforge.net
---
 arch/um/drivers/line.c        |    3 +--
 arch/um/include/shared/line.h |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

--- linux-next-20110315.orig/arch/um/drivers/line.c
+++ linux-next-20110315/arch/um/drivers/line.c
@@ -255,8 +255,7 @@ static const struct {
 	{ KDSIGACCEPT, KERN_INFO,  "KDSIGACCEPT" },
 };
 
-int line_ioctl(struct tty_struct *tty, struct file * file,
-	       unsigned int cmd, unsigned long arg)
+int line_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
 {
 	int ret;
 	int i;
--- linux-next-20110315.orig/arch/um/include/shared/line.h
+++ linux-next-20110315/arch/um/include/shared/line.h
@@ -77,7 +77,7 @@ extern int line_chars_in_buffer(struct t
 extern void line_flush_buffer(struct tty_struct *tty);
 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,
+extern int line_ioctl(struct tty_struct *tty,
 		      unsigned int cmd, unsigned long arg);
 extern void line_throttle(struct tty_struct *tty);
 extern void line_unthrottle(struct tty_struct *tty);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] uml: fix tty interface warnings
  2011-03-16  0:22 ` [PATCH -next] uml: fix tty interface warnings Randy Dunlap
@ 2011-03-16  3:38   ` Américo Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Américo Wang @ 2011-03-16  3:38 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Stephen Rothwell, gregkh, linux-next, LKML, Jeff Dike,
	user-mode-linux-devel

On Wed, Mar 16, 2011 at 8:22 AM, Randy Dunlap <randy.dunlap@oracle.com> wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Fix tty interface warnings in arch/um:
>
> arch/um/drivers/stdio_console.c:122: warning: initialization from incompatible pointer type
> arch/um/drivers/ssl.c:139: warning: initialization from incompatible pointer type
>

Acked-by: WANG Cong <xiyou.wangcong@gmail.com>

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-16  3:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20110315194543.a5d56c0c.sfr@canb.auug.org.au>
2011-03-16  0:22 ` [PATCH -next] uml: fix tty interface warnings Randy Dunlap
2011-03-16  3:38   ` Américo Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox