[PATCH 3/4] TTY: serial, fix build of some drivers

From: Jiri Slaby
Date: Wed Aug 31 2011 - 15:26:00 EST


I'm getting build errors such as:
.../tty/serial/max3107.c: In function âput_data_to_circ_bufâ:
.../tty/serial/max3107.c:149:2: error: implicit declaration of function âtty_insert_flip_stringâ

Those drivers need to include linux/tty_flip.h. The question is
whether we want to fix them at all. As they are broken for some time
already and nobody noticed...

Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>
Cc: Alan Cox <alan@xxxxxxxxxxxxxxx>
---
drivers/tty/serial/max3107.c | 1 +
drivers/tty/serial/timbuart.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/tty/serial/max3107.c b/drivers/tty/serial/max3107.c
index a50f406..a33ff77 100644
--- a/drivers/tty/serial/max3107.c
+++ b/drivers/tty/serial/max3107.c
@@ -35,6 +35,7 @@
#include <linux/spi/spi.h>
#include <linux/freezer.h>
#include <linux/module.h>
+#include <linux/tty_flip.h>
#include "max3107.h"

static const struct baud_table brg26_ext[] = {
diff --git a/drivers/tty/serial/timbuart.c b/drivers/tty/serial/timbuart.c
index e213535..3a4da87 100644
--- a/drivers/tty/serial/timbuart.c
+++ b/drivers/tty/serial/timbuart.c
@@ -28,6 +28,7 @@
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/module.h>
+#include <linux/tty_flip.h>

#include "timbuart.h"

--
1.7.6.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/