Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: serial: dgrp: Add missing #include <linux/uaccess.h>

On m68k:

drivers/staging/dgrp/dgrp_mon_ops.c: In function ‘dgrp_mon_read’:
drivers/staging/dgrp/dgrp_mon_ops.c:304: error: implicit declaration of function ‘copy_to_user’
drivers/staging/dgrp/dgrp_specproc.c: In function ‘config_proc_write’:
drivers/staging/dgrp/dgrp_specproc.c:470: error: implicit declaration of function ‘copy_from_user’
drivers/staging/dgrp/dgrp_tty.c: In function ‘drp_wmove’:
drivers/staging/dgrp/dgrp_tty.c:1284: error: implicit declaration of function ‘copy_from_user’
drivers/staging/dgrp/dgrp_tty.c: In function ‘get_modem_info’:
drivers/staging/dgrp/dgrp_tty.c:2267: error: implicit declaration of function ‘put_user’
drivers/staging/dgrp/dgrp_tty.c: In function ‘set_modem_info’:
drivers/staging/dgrp/dgrp_tty.c:2283: error: implicit declaration of function ‘access_ok’
drivers/staging/dgrp/dgrp_tty.c:2283: error: ‘VERIFY_READ’ undeclared (first use in this function)
drivers/staging/dgrp/dgrp_tty.c:2283: error: (Each undeclared identifier is reported only once
drivers/staging/dgrp/dgrp_tty.c:2283: error: for each function it appears in.)
drivers/staging/dgrp/dgrp_tty.c:2287: error: implicit declaration of function ‘get_user’
drivers/staging/dgrp/dgrp_tty.c: In function ‘dgrp_tty_digigetedelay’:
drivers/staging/dgrp/dgrp_tty.c:2474: error: implicit declaration of function ‘copy_to_user’
drivers/staging/dgrp/dgrp_tty.c: In function ‘dgrp_tty_ioctl’:
drivers/staging/dgrp/dgrp_tty.c:2618: error: ‘VERIFY_WRITE’ undeclared (first use in this function)

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Geert Uytterhoeven and committed by
Greg Kroah-Hartman
ee98581f 725dd00a

+3
+1
drivers/staging/dgrp/dgrp_mon_ops.c
··· 38 38 #include <linux/sched.h> 39 39 #include <asm/unaligned.h> 40 40 #include <linux/proc_fs.h> 41 + #include <linux/uaccess.h> 41 42 42 43 #include "dgrp_common.h" 43 44
+1
drivers/staging/dgrp/dgrp_specproc.c
··· 39 39 #include <linux/proc_fs.h> 40 40 #include <linux/ctype.h> 41 41 #include <linux/seq_file.h> 42 + #include <linux/uaccess.h> 42 43 #include <linux/vmalloc.h> 43 44 44 45 #include "dgrp_common.h"
+1
drivers/staging/dgrp/dgrp_tty.c
··· 40 40 #include <linux/tty.h> 41 41 #include <linux/tty_flip.h> 42 42 #include <linux/sched.h> 43 + #include <linux/uaccess.h> 43 44 44 45 #include "dgrp_common.h" 45 46