* [PATCH] tty: Remove dead tty_write_flush() declaration and macro
@ 2015-11-08 14:18 Peter Hurley
2015-11-08 14:18 ` [PATCH] tty: Remove unused SERIAL_DO_RESTART define Peter Hurley
0 siblings, 1 reply; 2+ messages in thread
From: Peter Hurley @ 2015-11-08 14:18 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-kernel, Jiri Slaby, Peter Hurley
tty_write_flush() has no definition and the TTY_WRITE_FLUSH() macro
is never invoked; remove.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
---
include/linux/tty.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/include/linux/tty.h b/include/linux/tty.h
index dcafb38..4b6c62e 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -345,8 +345,6 @@ struct tty_file_private {
#define TTY_HUPPED 18 /* Post driver->hangup() */
#define TTY_LDISC_HALTED 22 /* Line discipline is halted */
-#define TTY_WRITE_FLUSH(tty) tty_write_flush((tty))
-
/* Values for tty->flow_change */
#define TTY_THROTTLE_SAFE 1
#define TTY_UNTHROTTLE_SAFE 2
@@ -395,8 +393,6 @@ static inline int __init tty_init(void)
{ return 0; }
#endif
-extern void tty_write_flush(struct tty_struct *);
-
extern struct ktermios tty_std_termios;
extern int vcs_init(void);
--
2.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH] tty: Remove unused SERIAL_DO_RESTART define
2015-11-08 14:18 [PATCH] tty: Remove dead tty_write_flush() declaration and macro Peter Hurley
@ 2015-11-08 14:18 ` Peter Hurley
0 siblings, 0 replies; 2+ messages in thread
From: Peter Hurley @ 2015-11-08 14:18 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-kernel, Jiri Slaby, Peter Hurley
SERIAL_DO_RESTART is not used by these 3 drivers; remove.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
---
drivers/tty/amiserial.c | 1 -
drivers/tty/moxa.c | 1 -
drivers/tty/serial/icom.c | 1 -
3 files changed, 3 deletions(-)
diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c
index e53d9a5..2caaf5a 100644
--- a/drivers/tty/amiserial.c
+++ b/drivers/tty/amiserial.c
@@ -32,7 +32,6 @@
#include <linux/delay.h>
#undef SERIAL_PARANOIA_CHECK
-#define SERIAL_DO_RESTART
/* Set of debugging defines */
diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c
index 14c54e0..92982d7 100644
--- a/drivers/tty/moxa.c
+++ b/drivers/tty/moxa.c
@@ -155,7 +155,6 @@ struct mon_str {
#define LOWWAIT 2
#define EMPTYWAIT 3
-#define SERIAL_DO_RESTART
#define WAKEUP_CHARS 256
diff --git a/drivers/tty/serial/icom.c b/drivers/tty/serial/icom.c
index ffc7cb2..c60a8d5 100644
--- a/drivers/tty/serial/icom.c
+++ b/drivers/tty/serial/icom.c
@@ -22,7 +22,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
-#define SERIAL_DO_RESTART
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
--
2.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-08 14:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-08 14:18 [PATCH] tty: Remove dead tty_write_flush() declaration and macro Peter Hurley
2015-11-08 14:18 ` [PATCH] tty: Remove unused SERIAL_DO_RESTART define Peter Hurley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox