aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-24 14:46:01 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-24 14:46:01 -0500
commit7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba (patch)
tree0a6e858d2c9e6e8cd7da1d4268972071fbeb77ca /drivers/tty
parent1dd5c6b15372c7c127c509afa9a816bad5feed3b (diff)
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
This was entirely automated, using the script by Al: PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*<asm/uaccess.h>' sed -i -e "s!$PATT!#include <linux/uaccess.h>!" \ $(git grep -l "$PATT"|grep -v ^include/linux/uaccess.h) to do the replacement at the end of the merge window. Requested-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/amiserial.c2
-rw-r--r--drivers/tty/hvc/hvc_console.c2
-rw-r--r--drivers/tty/hvc/hvcs.c2
-rw-r--r--drivers/tty/hvc/hvsi.c2
-rw-r--r--drivers/tty/moxa.c2
-rw-r--r--drivers/tty/mxser.c2
-rw-r--r--drivers/tty/n_hdlc.c2
-rw-r--r--drivers/tty/n_r3964.c2
-rw-r--r--drivers/tty/serial/icom.c2
-rw-r--r--drivers/tty/serial/serial_core.c2
-rw-r--r--drivers/tty/synclink.c2
-rw-r--r--drivers/tty/synclink_gt.c2
-rw-r--r--drivers/tty/synclinkmp.c2
-rw-r--r--drivers/tty/tty_ioctl.c2
-rw-r--r--drivers/tty/vt/consolemap.c2
-rw-r--r--drivers/tty/vt/selection.c2
-rw-r--r--drivers/tty/vt/vc_screen.c2
-rw-r--r--drivers/tty/vt/vt_ioctl.c2
18 files changed, 18 insertions, 18 deletions
diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c
index dfbb974927f2..dea16bb8c46a 100644
--- a/drivers/tty/amiserial.c
+++ b/drivers/tty/amiserial.c
@@ -127,7 +127,7 @@ static struct serial_state rs_table[1];
127 127
128#define NR_PORTS ARRAY_SIZE(rs_table) 128#define NR_PORTS ARRAY_SIZE(rs_table)
129 129
130#include <asm/uaccess.h> 130#include <linux/uaccess.h>
131 131
132#define serial_isroot() (capable(CAP_SYS_ADMIN)) 132#define serial_isroot() (capable(CAP_SYS_ADMIN))
133 133
diff --git a/drivers/tty/hvc/hvc_console.c b/drivers/tty/hvc/hvc_console.c
index ce864875330e..9b5c0fb216b5 100644
--- a/drivers/tty/hvc/hvc_console.c
+++ b/drivers/tty/hvc/hvc_console.c
@@ -42,7 +42,7 @@
42#include <linux/slab.h> 42#include <linux/slab.h>
43#include <linux/serial_core.h> 43#include <linux/serial_core.h>
44 44
45#include <asm/uaccess.h> 45#include <linux/uaccess.h>
46 46
47#include "hvc_console.h" 47#include "hvc_console.h"
48 48
diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c
index 3c4d7c2b4ade..7823d6d998cf 100644
--- a/drivers/tty/hvc/hvcs.c
+++ b/drivers/tty/hvc/hvcs.c
@@ -81,7 +81,7 @@
81#include <linux/tty_flip.h> 81#include <linux/tty_flip.h>
82#include <asm/hvconsole.h> 82#include <asm/hvconsole.h>
83#include <asm/hvcserver.h> 83#include <asm/hvcserver.h>
84#include <asm/uaccess.h> 84#include <linux/uaccess.h>
85#include <asm/vio.h> 85#include <asm/vio.h>
86 86
87/* 87/*
diff --git a/drivers/tty/hvc/hvsi.c b/drivers/tty/hvc/hvsi.c
index 96ce6bd1cc6f..2e578d6433af 100644
--- a/drivers/tty/hvc/hvsi.c
+++ b/drivers/tty/hvc/hvsi.c
@@ -46,7 +46,7 @@
46#include <asm/hvcall.h> 46#include <asm/hvcall.h>
47#include <asm/hvconsole.h> 47#include <asm/hvconsole.h>
48#include <asm/prom.h> 48#include <asm/prom.h>
49#include <asm/uaccess.h> 49#include <linux/uaccess.h>
50#include <asm/vio.h> 50#include <asm/vio.h>
51#include <asm/param.h> 51#include <asm/param.h>
52#include <asm/hvsi.h> 52#include <asm/hvsi.h>
diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c
index 60d37b225589..4caf0c3b1f99 100644
--- a/drivers/tty/moxa.c
+++ b/drivers/tty/moxa.c
@@ -47,7 +47,7 @@
47#include <linux/ratelimit.h> 47#include <linux/ratelimit.h>
48 48
49#include <asm/io.h> 49#include <asm/io.h>
50#include <asm/uaccess.h> 50#include <linux/uaccess.h>
51 51
52#include "moxa.h" 52#include "moxa.h"
53 53
diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c
index 69294ae154be..7b8f383fb090 100644
--- a/drivers/tty/mxser.c
+++ b/drivers/tty/mxser.c
@@ -43,7 +43,7 @@
43 43
44#include <asm/io.h> 44#include <asm/io.h>
45#include <asm/irq.h> 45#include <asm/irq.h>
46#include <asm/uaccess.h> 46#include <linux/uaccess.h>
47 47
48#include "mxser.h" 48#include "mxser.h"
49 49
diff --git a/drivers/tty/n_hdlc.c b/drivers/tty/n_hdlc.c
index a7fa016f31eb..eb278832f5ce 100644
--- a/drivers/tty/n_hdlc.c
+++ b/drivers/tty/n_hdlc.c
@@ -103,7 +103,7 @@
103#include <linux/bitops.h> 103#include <linux/bitops.h>
104 104
105#include <asm/termios.h> 105#include <asm/termios.h>
106#include <asm/uaccess.h> 106#include <linux/uaccess.h>
107 107
108/* 108/*
109 * Buffers for individual HDLC frames 109 * Buffers for individual HDLC frames
diff --git a/drivers/tty/n_r3964.c b/drivers/tty/n_r3964.c
index 345111467b85..305b6490d405 100644
--- a/drivers/tty/n_r3964.c
+++ b/drivers/tty/n_r3964.c
@@ -65,7 +65,7 @@
65#include <linux/n_r3964.h> 65#include <linux/n_r3964.h>
66#include <linux/poll.h> 66#include <linux/poll.h>
67#include <linux/init.h> 67#include <linux/init.h>
68#include <asm/uaccess.h> 68#include <linux/uaccess.h>
69 69
70/*#define DEBUG_QUEUE*/ 70/*#define DEBUG_QUEUE*/
71 71
diff --git a/drivers/tty/serial/icom.c b/drivers/tty/serial/icom.c
index c60a8d5e4020..d83783cfbade 100644
--- a/drivers/tty/serial/icom.c
+++ b/drivers/tty/serial/icom.c
@@ -53,7 +53,7 @@
53 53
54#include <asm/io.h> 54#include <asm/io.h>
55#include <asm/irq.h> 55#include <asm/irq.h>
56#include <asm/uaccess.h> 56#include <linux/uaccess.h>
57 57
58#include "icom.h" 58#include "icom.h"
59 59
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index d0847375ea64..9939c3d9912b 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -36,7 +36,7 @@
36#include <linux/mutex.h> 36#include <linux/mutex.h>
37 37
38#include <asm/irq.h> 38#include <asm/irq.h>
39#include <asm/uaccess.h> 39#include <linux/uaccess.h>
40 40
41/* 41/*
42 * This is used to lock changes in serial line configuration. 42 * This is used to lock changes in serial line configuration.
diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c
index 415885c56435..657eed82eeb3 100644
--- a/drivers/tty/synclink.c
+++ b/drivers/tty/synclink.c
@@ -107,7 +107,7 @@
107#define PUT_USER(error,value,addr) error = put_user(value,addr) 107#define PUT_USER(error,value,addr) error = put_user(value,addr)
108#define COPY_TO_USER(error,dest,src,size) error = copy_to_user(dest,src,size) ? -EFAULT : 0 108#define COPY_TO_USER(error,dest,src,size) error = copy_to_user(dest,src,size) ? -EFAULT : 0
109 109
110#include <asm/uaccess.h> 110#include <linux/uaccess.h>
111 111
112#define RCLRVALUE 0xffff 112#define RCLRVALUE 0xffff
113 113
diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c
index 8267bcf2405e..31885f20fc15 100644
--- a/drivers/tty/synclink_gt.c
+++ b/drivers/tty/synclink_gt.c
@@ -77,7 +77,7 @@
77#include <asm/irq.h> 77#include <asm/irq.h>
78#include <asm/dma.h> 78#include <asm/dma.h>
79#include <asm/types.h> 79#include <asm/types.h>
80#include <asm/uaccess.h> 80#include <linux/uaccess.h>
81 81
82#if defined(CONFIG_HDLC) || (defined(CONFIG_HDLC_MODULE) && defined(CONFIG_SYNCLINK_GT_MODULE)) 82#if defined(CONFIG_HDLC) || (defined(CONFIG_HDLC_MODULE) && defined(CONFIG_SYNCLINK_GT_MODULE))
83#define SYNCLINK_GENERIC_HDLC 1 83#define SYNCLINK_GENERIC_HDLC 1
diff --git a/drivers/tty/synclinkmp.c b/drivers/tty/synclinkmp.c
index d66620f7eaa3..51e8846cd68f 100644
--- a/drivers/tty/synclinkmp.c
+++ b/drivers/tty/synclinkmp.c
@@ -79,7 +79,7 @@
79#define PUT_USER(error,value,addr) error = put_user(value,addr) 79#define PUT_USER(error,value,addr) error = put_user(value,addr)
80#define COPY_TO_USER(error,dest,src,size) error = copy_to_user(dest,src,size) ? -EFAULT : 0 80#define COPY_TO_USER(error,dest,src,size) error = copy_to_user(dest,src,size) ? -EFAULT : 0
81 81
82#include <asm/uaccess.h> 82#include <linux/uaccess.h>
83 83
84static MGSL_PARAMS default_params = { 84static MGSL_PARAMS default_params = {
85 MGSL_MODE_HDLC, /* unsigned long mode */ 85 MGSL_MODE_HDLC, /* unsigned long mode */
diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c
index bf36ac9aee41..f27fc0f14c11 100644
--- a/drivers/tty/tty_ioctl.c
+++ b/drivers/tty/tty_ioctl.c
@@ -22,7 +22,7 @@
22#include <linux/compat.h> 22#include <linux/compat.h>
23 23
24#include <asm/io.h> 24#include <asm/io.h>
25#include <asm/uaccess.h> 25#include <linux/uaccess.h>
26 26
27#undef TTY_DEBUG_WAIT_UNTIL_SENT 27#undef TTY_DEBUG_WAIT_UNTIL_SENT
28 28
diff --git a/drivers/tty/vt/consolemap.c b/drivers/tty/vt/consolemap.c
index 71e81406ef71..1f6e17fc3fb0 100644
--- a/drivers/tty/vt/consolemap.c
+++ b/drivers/tty/vt/consolemap.c
@@ -29,7 +29,7 @@
29#include <linux/slab.h> 29#include <linux/slab.h>
30#include <linux/init.h> 30#include <linux/init.h>
31#include <linux/tty.h> 31#include <linux/tty.h>
32#include <asm/uaccess.h> 32#include <linux/uaccess.h>
33#include <linux/console.h> 33#include <linux/console.h>
34#include <linux/consolemap.h> 34#include <linux/consolemap.h>
35#include <linux/vt_kern.h> 35#include <linux/vt_kern.h>
diff --git a/drivers/tty/vt/selection.c b/drivers/tty/vt/selection.c
index 368ce1803e8f..36e1b8c7680f 100644
--- a/drivers/tty/vt/selection.c
+++ b/drivers/tty/vt/selection.c
@@ -16,7 +16,7 @@
16#include <linux/slab.h> 16#include <linux/slab.h>
17#include <linux/types.h> 17#include <linux/types.h>
18 18
19#include <asm/uaccess.h> 19#include <linux/uaccess.h>
20 20
21#include <linux/kbd_kern.h> 21#include <linux/kbd_kern.h>
22#include <linux/vt_kern.h> 22#include <linux/vt_kern.h>
diff --git a/drivers/tty/vt/vc_screen.c b/drivers/tty/vt/vc_screen.c
index 14a2b5f11bca..56dcff6059d3 100644
--- a/drivers/tty/vt/vc_screen.c
+++ b/drivers/tty/vt/vc_screen.c
@@ -39,7 +39,7 @@
39#include <linux/slab.h> 39#include <linux/slab.h>
40#include <linux/notifier.h> 40#include <linux/notifier.h>
41 41
42#include <asm/uaccess.h> 42#include <linux/uaccess.h>
43#include <asm/byteorder.h> 43#include <asm/byteorder.h>
44#include <asm/unaligned.h> 44#include <asm/unaligned.h>
45 45
diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c
index f62c598810ff..a56edf2d58eb 100644
--- a/drivers/tty/vt/vt_ioctl.c
+++ b/drivers/tty/vt/vt_ioctl.c
@@ -29,7 +29,7 @@
29#include <linux/timex.h> 29#include <linux/timex.h>
30 30
31#include <asm/io.h> 31#include <asm/io.h>
32#include <asm/uaccess.h> 32#include <linux/uaccess.h>
33 33
34#include <linux/kbd_kern.h> 34#include <linux/kbd_kern.h>
35#include <linux/vt_kern.h> 35#include <linux/vt_kern.h>