summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2004-05-30 06:09:21 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-30 06:09:21 -0700
commit6d7fee2615877bb0f009d9f60cae777b59f40728 (patch)
treef08c4cfe44571c40c337232e9b471d817379644e /include/linux
parent79c58bdef28ae3ea156d840fd84bd0864e1c1dc9 (diff)
[PATCH] sparse: n_tty annotation
n_tty annotated, ldisc_struct ->read() and ->write() got __user on their buf argument.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tty_ldisc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h
index c851b7dc997e..cb7ca58e44e8 100644
--- a/include/linux/tty_ldisc.h
+++ b/include/linux/tty_ldisc.h
@@ -114,9 +114,9 @@ struct tty_ldisc {
void (*flush_buffer)(struct tty_struct *tty);
ssize_t (*chars_in_buffer)(struct tty_struct *tty);
ssize_t (*read)(struct tty_struct * tty, struct file * file,
- unsigned char * buf, size_t nr);
+ unsigned char __user * buf, size_t nr);
ssize_t (*write)(struct tty_struct * tty, struct file * file,
- const unsigned char * buf, size_t nr);
+ const unsigned char __user * buf, size_t nr);
int (*ioctl)(struct tty_struct * tty, struct file * file,
unsigned int cmd, unsigned long arg);
void (*set_termios)(struct tty_struct *tty, struct termios * old);