diff options
author | Jiri Slaby <jslaby@suse.cz> | 2011-09-01 10:20:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-22 18:49:26 -0400 |
commit | ee160a38eee357ed2572cf41437d5814ce53c839 (patch) | |
tree | 8f4b4435b0e142f66842808dc07bf16013f8413a /drivers/tty | |
parent | 2c16a353104c8ad7add9ded6913d9fa090d5e7fb (diff) |
TTY: serial, fix includes in some drivers
linux/tty_flip.h is included in linux/serial_core.h. But this may (and
will) change in the future. Then we would get 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’
So fix all the drviers which call tty flip buffer helpers to really
include linux/tty_flip.h. And also make sure that those include
linux/tty.h when operating with struct tty_struct.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/apbuart.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/cpm_uart/cpm_uart_core.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/dz.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/ioc3_serial.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/ioc4_serial.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/m32r_sio.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/max3100.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/max3107.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/mpc52xx_uart.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/msm_serial_hs.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/mux.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/nwpserial.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/pch_uart.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/sb1250-duart.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/serial_ks8695.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/serial_txx9.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/sn_console.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/timbuart.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/uartlite.c | 1 | ||||
-rw-r--r-- | drivers/tty/serial/ucc_uart.c | 4 | ||||
-rw-r--r-- | drivers/tty/serial/xilinx_uartps.c | 4 | ||||
-rw-r--r-- | drivers/tty/serial/zs.c | 1 |
22 files changed, 33 insertions, 2 deletions
diff --git a/drivers/tty/serial/apbuart.c b/drivers/tty/serial/apbuart.c index 19a943693e4c..77554fd68d1f 100644 --- a/drivers/tty/serial/apbuart.c +++ b/drivers/tty/serial/apbuart.c | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
18 | #include <linux/tty.h> | 18 | #include <linux/tty.h> |
19 | #include <linux/tty_flip.h> | ||
19 | #include <linux/ioport.h> | 20 | #include <linux/ioport.h> |
20 | #include <linux/init.h> | 21 | #include <linux/init.h> |
21 | #include <linux/serial.h> | 22 | #include <linux/serial.h> |
diff --git a/drivers/tty/serial/cpm_uart/cpm_uart_core.c b/drivers/tty/serial/cpm_uart/cpm_uart_core.c index 9488da74d4f7..b418947b7107 100644 --- a/drivers/tty/serial/cpm_uart/cpm_uart_core.c +++ b/drivers/tty/serial/cpm_uart/cpm_uart_core.c | |||
@@ -31,6 +31,7 @@ | |||
31 | 31 | ||
32 | #include <linux/module.h> | 32 | #include <linux/module.h> |
33 | #include <linux/tty.h> | 33 | #include <linux/tty.h> |
34 | #include <linux/tty_flip.h> | ||
34 | #include <linux/ioport.h> | 35 | #include <linux/ioport.h> |
35 | #include <linux/init.h> | 36 | #include <linux/init.h> |
36 | #include <linux/serial.h> | 37 | #include <linux/serial.h> |
diff --git a/drivers/tty/serial/dz.c b/drivers/tty/serial/dz.c index ddc487a2d42f..e3699a84049f 100644 --- a/drivers/tty/serial/dz.c +++ b/drivers/tty/serial/dz.c | |||
@@ -47,6 +47,7 @@ | |||
47 | #include <linux/serial_core.h> | 47 | #include <linux/serial_core.h> |
48 | #include <linux/sysrq.h> | 48 | #include <linux/sysrq.h> |
49 | #include <linux/tty.h> | 49 | #include <linux/tty.h> |
50 | #include <linux/tty_flip.h> | ||
50 | 51 | ||
51 | #include <linux/atomic.h> | 52 | #include <linux/atomic.h> |
52 | #include <asm/bootinfo.h> | 53 | #include <asm/bootinfo.h> |
diff --git a/drivers/tty/serial/ioc3_serial.c b/drivers/tty/serial/ioc3_serial.c index ee43efc7bdcc..758ff310f7f8 100644 --- a/drivers/tty/serial/ioc3_serial.c +++ b/drivers/tty/serial/ioc3_serial.c | |||
@@ -13,6 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | #include <linux/errno.h> | 14 | #include <linux/errno.h> |
15 | #include <linux/tty.h> | 15 | #include <linux/tty.h> |
16 | #include <linux/tty_flip.h> | ||
16 | #include <linux/serial.h> | 17 | #include <linux/serial.h> |
17 | #include <linux/circ_buf.h> | 18 | #include <linux/circ_buf.h> |
18 | #include <linux/serial_reg.h> | 19 | #include <linux/serial_reg.h> |
diff --git a/drivers/tty/serial/ioc4_serial.c b/drivers/tty/serial/ioc4_serial.c index fcfe82653ac8..6b36c1554d7e 100644 --- a/drivers/tty/serial/ioc4_serial.c +++ b/drivers/tty/serial/ioc4_serial.c | |||
@@ -14,6 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
16 | #include <linux/tty.h> | 16 | #include <linux/tty.h> |
17 | #include <linux/tty_flip.h> | ||
17 | #include <linux/serial.h> | 18 | #include <linux/serial.h> |
18 | #include <linux/serialP.h> | 19 | #include <linux/serialP.h> |
19 | #include <linux/circ_buf.h> | 20 | #include <linux/circ_buf.h> |
diff --git a/drivers/tty/serial/m32r_sio.c b/drivers/tty/serial/m32r_sio.c index 8e07517f8acd..08018934e013 100644 --- a/drivers/tty/serial/m32r_sio.c +++ b/drivers/tty/serial/m32r_sio.c | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | #include <linux/tty.h> | 34 | #include <linux/tty.h> |
35 | #include <linux/tty_flip.h> | ||
35 | #include <linux/ioport.h> | 36 | #include <linux/ioport.h> |
36 | #include <linux/init.h> | 37 | #include <linux/init.h> |
37 | #include <linux/console.h> | 38 | #include <linux/console.h> |
diff --git a/drivers/tty/serial/max3100.c b/drivers/tty/serial/max3100.c index 7b951adac54b..2af5aa5f3a80 100644 --- a/drivers/tty/serial/max3100.c +++ b/drivers/tty/serial/max3100.c | |||
@@ -47,6 +47,8 @@ | |||
47 | #include <linux/serial.h> | 47 | #include <linux/serial.h> |
48 | #include <linux/spi/spi.h> | 48 | #include <linux/spi/spi.h> |
49 | #include <linux/freezer.h> | 49 | #include <linux/freezer.h> |
50 | #include <linux/tty.h> | ||
51 | #include <linux/tty_flip.h> | ||
50 | 52 | ||
51 | #include <linux/serial_max3100.h> | 53 | #include <linux/serial_max3100.h> |
52 | 54 | ||
diff --git a/drivers/tty/serial/max3107.c b/drivers/tty/serial/max3107.c index 750b4f627315..47602a227afe 100644 --- a/drivers/tty/serial/max3107.c +++ b/drivers/tty/serial/max3107.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/device.h> | 31 | #include <linux/device.h> |
32 | #include <linux/serial_core.h> | 32 | #include <linux/serial_core.h> |
33 | #include <linux/serial.h> | 33 | #include <linux/serial.h> |
34 | #include <linux/tty.h> | ||
35 | #include <linux/tty_flip.h> | ||
34 | #include <linux/gpio.h> | 36 | #include <linux/gpio.h> |
35 | #include <linux/spi/spi.h> | 37 | #include <linux/spi/spi.h> |
36 | #include <linux/freezer.h> | 38 | #include <linux/freezer.h> |
diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c index a0bcd8a3758d..c395520d77cf 100644 --- a/drivers/tty/serial/mpc52xx_uart.c +++ b/drivers/tty/serial/mpc52xx_uart.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/device.h> | 34 | #include <linux/device.h> |
35 | #include <linux/module.h> | 35 | #include <linux/module.h> |
36 | #include <linux/tty.h> | 36 | #include <linux/tty.h> |
37 | #include <linux/tty_flip.h> | ||
37 | #include <linux/serial.h> | 38 | #include <linux/serial.h> |
38 | #include <linux/sysrq.h> | 39 | #include <linux/sysrq.h> |
39 | #include <linux/console.h> | 40 | #include <linux/console.h> |
diff --git a/drivers/tty/serial/msm_serial_hs.c b/drivers/tty/serial/msm_serial_hs.c index 624701f8138a..60c6eb850265 100644 --- a/drivers/tty/serial/msm_serial_hs.c +++ b/drivers/tty/serial/msm_serial_hs.c | |||
@@ -30,6 +30,8 @@ | |||
30 | 30 | ||
31 | #include <linux/serial.h> | 31 | #include <linux/serial.h> |
32 | #include <linux/serial_core.h> | 32 | #include <linux/serial_core.h> |
33 | #include <linux/tty.h> | ||
34 | #include <linux/tty_flip.h> | ||
33 | #include <linux/slab.h> | 35 | #include <linux/slab.h> |
34 | #include <linux/init.h> | 36 | #include <linux/init.h> |
35 | #include <linux/interrupt.h> | 37 | #include <linux/interrupt.h> |
diff --git a/drivers/tty/serial/mux.c b/drivers/tty/serial/mux.c index 9711e06a8374..06f6aefd5ba6 100644 --- a/drivers/tty/serial/mux.c +++ b/drivers/tty/serial/mux.c | |||
@@ -21,6 +21,8 @@ | |||
21 | #include <linux/ioport.h> | 21 | #include <linux/ioport.h> |
22 | #include <linux/init.h> | 22 | #include <linux/init.h> |
23 | #include <linux/serial.h> | 23 | #include <linux/serial.h> |
24 | #include <linux/tty.h> | ||
25 | #include <linux/tty_flip.h> | ||
24 | #include <linux/console.h> | 26 | #include <linux/console.h> |
25 | #include <linux/delay.h> /* for udelay */ | 27 | #include <linux/delay.h> /* for udelay */ |
26 | #include <linux/device.h> | 28 | #include <linux/device.h> |
diff --git a/drivers/tty/serial/nwpserial.c b/drivers/tty/serial/nwpserial.c index de173671e3d0..9beaff1cec24 100644 --- a/drivers/tty/serial/nwpserial.c +++ b/drivers/tty/serial/nwpserial.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/serial_reg.h> | 15 | #include <linux/serial_reg.h> |
16 | #include <linux/serial_core.h> | 16 | #include <linux/serial_core.h> |
17 | #include <linux/tty.h> | 17 | #include <linux/tty.h> |
18 | #include <linux/tty_flip.h> | ||
18 | #include <linux/irqreturn.h> | 19 | #include <linux/irqreturn.h> |
19 | #include <linux/mutex.h> | 20 | #include <linux/mutex.h> |
20 | #include <linux/of_platform.h> | 21 | #include <linux/of_platform.h> |
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 846dfcd3ce0d..ecc8506f3b42 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c | |||
@@ -20,6 +20,8 @@ | |||
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | #include <linux/pci.h> | 21 | #include <linux/pci.h> |
22 | #include <linux/serial_core.h> | 22 | #include <linux/serial_core.h> |
23 | #include <linux/tty.h> | ||
24 | #include <linux/tty_flip.h> | ||
23 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
24 | #include <linux/io.h> | 26 | #include <linux/io.h> |
25 | #include <linux/dmi.h> | 27 | #include <linux/dmi.h> |
diff --git a/drivers/tty/serial/sb1250-duart.c b/drivers/tty/serial/sb1250-duart.c index 6bc2e3f876f4..0be8a2f00d0b 100644 --- a/drivers/tty/serial/sb1250-duart.c +++ b/drivers/tty/serial/sb1250-duart.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <linux/spinlock.h> | 37 | #include <linux/spinlock.h> |
38 | #include <linux/sysrq.h> | 38 | #include <linux/sysrq.h> |
39 | #include <linux/tty.h> | 39 | #include <linux/tty.h> |
40 | #include <linux/tty_flip.h> | ||
40 | #include <linux/types.h> | 41 | #include <linux/types.h> |
41 | 42 | ||
42 | #include <linux/atomic.h> | 43 | #include <linux/atomic.h> |
diff --git a/drivers/tty/serial/serial_ks8695.c b/drivers/tty/serial/serial_ks8695.c index 2430319f2f52..5551f7afe740 100644 --- a/drivers/tty/serial/serial_ks8695.c +++ b/drivers/tty/serial/serial_ks8695.c | |||
@@ -13,6 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
15 | #include <linux/tty.h> | 15 | #include <linux/tty.h> |
16 | #include <linux/tty_flip.h> | ||
16 | #include <linux/ioport.h> | 17 | #include <linux/ioport.h> |
17 | #include <linux/init.h> | 18 | #include <linux/init.h> |
18 | #include <linux/serial.h> | 19 | #include <linux/serial.h> |
diff --git a/drivers/tty/serial/serial_txx9.c b/drivers/tty/serial/serial_txx9.c index 8e3fc1944e6d..34bd345da775 100644 --- a/drivers/tty/serial/serial_txx9.c +++ b/drivers/tty/serial/serial_txx9.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <linux/pci.h> | 28 | #include <linux/pci.h> |
29 | #include <linux/serial_core.h> | 29 | #include <linux/serial_core.h> |
30 | #include <linux/serial.h> | 30 | #include <linux/serial.h> |
31 | #include <linux/tty.h> | ||
32 | #include <linux/tty_flip.h> | ||
31 | 33 | ||
32 | #include <asm/io.h> | 34 | #include <asm/io.h> |
33 | 35 | ||
diff --git a/drivers/tty/serial/sn_console.c b/drivers/tty/serial/sn_console.c index 377ae74e7154..7320507b0d85 100644 --- a/drivers/tty/serial/sn_console.c +++ b/drivers/tty/serial/sn_console.c | |||
@@ -39,6 +39,7 @@ | |||
39 | 39 | ||
40 | #include <linux/interrupt.h> | 40 | #include <linux/interrupt.h> |
41 | #include <linux/tty.h> | 41 | #include <linux/tty.h> |
42 | #include <linux/tty_flip.h> | ||
42 | #include <linux/serial.h> | 43 | #include <linux/serial.h> |
43 | #include <linux/console.h> | 44 | #include <linux/console.h> |
44 | #include <linux/module.h> | 45 | #include <linux/module.h> |
diff --git a/drivers/tty/serial/timbuart.c b/drivers/tty/serial/timbuart.c index 1f36b7eb7351..a4b63bfeaa2f 100644 --- a/drivers/tty/serial/timbuart.c +++ b/drivers/tty/serial/timbuart.c | |||
@@ -23,6 +23,8 @@ | |||
23 | #include <linux/pci.h> | 23 | #include <linux/pci.h> |
24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
25 | #include <linux/serial_core.h> | 25 | #include <linux/serial_core.h> |
26 | #include <linux/tty.h> | ||
27 | #include <linux/tty_flip.h> | ||
26 | #include <linux/kernel.h> | 28 | #include <linux/kernel.h> |
27 | #include <linux/platform_device.h> | 29 | #include <linux/platform_device.h> |
28 | #include <linux/ioport.h> | 30 | #include <linux/ioport.h> |
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index 8af1ed83a4c0..b908615ccaaf 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/serial.h> | 15 | #include <linux/serial.h> |
16 | #include <linux/serial_core.h> | 16 | #include <linux/serial_core.h> |
17 | #include <linux/tty.h> | 17 | #include <linux/tty.h> |
18 | #include <linux/tty_flip.h> | ||
18 | #include <linux/delay.h> | 19 | #include <linux/delay.h> |
19 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
20 | #include <linux/init.h> | 21 | #include <linux/init.h> |
diff --git a/drivers/tty/serial/ucc_uart.c b/drivers/tty/serial/ucc_uart.c index c327218cad44..97b67241a783 100644 --- a/drivers/tty/serial/ucc_uart.c +++ b/drivers/tty/serial/ucc_uart.c | |||
@@ -20,8 +20,10 @@ | |||
20 | 20 | ||
21 | #include <linux/module.h> | 21 | #include <linux/module.h> |
22 | #include <linux/serial.h> | 22 | #include <linux/serial.h> |
23 | #include <linux/slab.h> | ||
24 | #include <linux/serial_core.h> | 23 | #include <linux/serial_core.h> |
24 | #include <linux/slab.h> | ||
25 | #include <linux/tty.h> | ||
26 | #include <linux/tty_flip.h> | ||
25 | #include <linux/io.h> | 27 | #include <linux/io.h> |
26 | #include <linux/of_platform.h> | 28 | #include <linux/of_platform.h> |
27 | #include <linux/dma-mapping.h> | 29 | #include <linux/dma-mapping.h> |
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 19cc1e8149dd..8c03b127fd03 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c | |||
@@ -12,9 +12,11 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | #include <linux/serial.h> | ||
15 | #include <linux/serial_core.h> | 16 | #include <linux/serial_core.h> |
17 | #include <linux/tty.h> | ||
18 | #include <linux/tty_flip.h> | ||
16 | #include <linux/console.h> | 19 | #include <linux/console.h> |
17 | #include <linux/serial.h> | ||
18 | #include <linux/irq.h> | 20 | #include <linux/irq.h> |
19 | #include <linux/io.h> | 21 | #include <linux/io.h> |
20 | #include <linux/of.h> | 22 | #include <linux/of.h> |
diff --git a/drivers/tty/serial/zs.c b/drivers/tty/serial/zs.c index 0aebd7121b56..b7455b526080 100644 --- a/drivers/tty/serial/zs.c +++ b/drivers/tty/serial/zs.c | |||
@@ -63,6 +63,7 @@ | |||
63 | #include <linux/spinlock.h> | 63 | #include <linux/spinlock.h> |
64 | #include <linux/sysrq.h> | 64 | #include <linux/sysrq.h> |
65 | #include <linux/tty.h> | 65 | #include <linux/tty.h> |
66 | #include <linux/tty_flip.h> | ||
66 | #include <linux/types.h> | 67 | #include <linux/types.h> |
67 | 68 | ||
68 | #include <linux/atomic.h> | 69 | #include <linux/atomic.h> |