UML - tty fix
PATCH 1/12 UML - tty fix
This fixes a build breakage introduced by Alan's tty cleanups. This should be tied to that patch if possible.
arch/um/drivers/chan_kern.c +2 -16
@@ -161,9 +161,6 @@ } } -if ((tty->flip.flag_buf_ptr ==NULL ) || - (tty->flip.char_buf_ptr ==NULL )) -return ;tty_insert_flip_char (tty, ch,TTY_NORMAL ); }
@@ -542,8 +539,8 @@ chan = list_entry(ele, struct chan, list);if (!chan->input || (chan->ops->read ==NULL ))continue ; do { - if((tty != NULL) && - (tty->flip.count >= TTY_FLIPBUF_SIZE)){ + if((tty != NULL) && + !tty_buffer_request_room(tty, 1)){ schedule_work(task); goto out; }
@@ -572,14 +569,3 @@ out:if (tty)tty_flip_buffer_push (tty); } - -/* -* Overrides for Emacs so that we follow Linus's tabbing style. -* Emacs will notice this stuff at the end of the file and automatically -* adjust the settings for this buffer only. This must remain at the end -* of the file. -* --------------------------------------------------------------------------- -* Local variables: -* c-file-style: "linux" -* End: -*/
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 7 lines · Jeff Dike
This fixes a build breakage introduced by Alan's tty cleanups. This should be tied to that patch if possible.
Signed-off-by Jeff Dike <[email protected]>Index:
linux-2.6.13-mm1/arch/um/drivers/chan_kern.c
===================================================================
(and applied to my tty tree for future diff generation)
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel