Re: [PATCH -next] staging: dgrp: Add missing #include <linux/uaccess.h>

From: Geert Uytterhoeven
Date: Thu Oct 11 2012 - 08:40:26 EST


On Thu, Sep 27, 2012 at 8:38 PM, Geert Uytterhoeven
<geert@xxxxxxxxxxxxxx> wrote:
> On m68k:

Now also in mainline, cfr.
http://kisskb.ellerman.id.au/kisskb/buildresult/7344531/

> 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@xxxxxxxxxxxxxx>
> ---
> See also http://kisskb.ellerman.id.au/kisskb/buildresult/7277002/
>
> drivers/staging/dgrp/dgrp_mon_ops.c | 1 +
> drivers/staging/dgrp/dgrp_specproc.c | 1 +
> drivers/staging/dgrp/dgrp_tty.c | 1 +
> 3 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/staging/dgrp/dgrp_mon_ops.c b/drivers/staging/dgrp/dgrp_mon_ops.c
> index 268dcb9..4792d05 100644
> --- a/drivers/staging/dgrp/dgrp_mon_ops.c
> +++ b/drivers/staging/dgrp/dgrp_mon_ops.c
> @@ -38,6 +38,7 @@
> #include <linux/sched.h>
> #include <asm/unaligned.h>
> #include <linux/proc_fs.h>
> +#include <linux/uaccess.h>
>
> #include "dgrp_common.h"
>
> diff --git a/drivers/staging/dgrp/dgrp_specproc.c b/drivers/staging/dgrp/dgrp_specproc.c
> index 28f5c9a..a5840e7 100644
> --- a/drivers/staging/dgrp/dgrp_specproc.c
> +++ b/drivers/staging/dgrp/dgrp_specproc.c
> @@ -39,6 +39,7 @@
> #include <linux/proc_fs.h>
> #include <linux/ctype.h>
> #include <linux/seq_file.h>
> +#include <linux/uaccess.h>
> #include <linux/vmalloc.h>
>
> #include "dgrp_common.h"
> diff --git a/drivers/staging/dgrp/dgrp_tty.c b/drivers/staging/dgrp/dgrp_tty.c
> index 7d7de87..72f6fcf 100644
> --- a/drivers/staging/dgrp/dgrp_tty.c
> +++ b/drivers/staging/dgrp/dgrp_tty.c
> @@ -40,6 +40,7 @@
> #include <linux/tty.h>
> #include <linux/tty_flip.h>
> #include <linux/sched.h>
> +#include <linux/uaccess.h>
>
> #include "dgrp_common.h"
>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
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/