Re: [PATCH] Warn userspace about including an empty linux/tty.h.

Andrew Morton
2007-07-19T22:20:55Z

On Thu, 19 Jul 2007 07:23:46 -0400 (EDT)
"Robert P. J. Day" <rpjday@mindspring.com> wrote:

>
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
>
> ---
>
> what subsystem would something like this belong to?
>
>
> diff --git a/include/linux/tty.h b/include/linux/tty.h
> index 691a174..fd67da8 100644
> --- a/include/linux/tty.h
> +++ b/include/linux/tty.h
> @@ -5,6 +5,10 @@
> * 'tty.h' defines some structures used by tty_io.c and some defines.
> */
>
> +#ifndef __KERNEL__
> +#warning "Please don't include this file from userspace, it's empty."
> +#endif
> +

this seems pointless?