Re: [PATCH v05 37/72] include/uapi/linux/auto_fs.h: include linux/limits.h

From: Ian Kent
Date: Mon Aug 22 2016 - 20:43:06 EST


On Mon, 2016-08-22 at 20:32 +0200, Mikko Rapeli wrote:
> Fixes userspace compilation error:
>
> error: âNAME_MAXâ undeclared here (not in a function)

Thanks for your effort but a patch for this, from from Tomohiro Kusumi, is
currently included in the mm tree.

>
> Signed-off-by: Mikko Rapeli <mikko.rapeli@xxxxxx>
> ---
> include/uapi/linux/auto_fs.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/uapi/linux/auto_fs.h b/include/uapi/linux/auto_fs.h
> index 9175a1b..1bfc3ed 100644
> --- a/include/uapi/linux/auto_fs.h
> +++ b/include/uapi/linux/auto_fs.h
> @@ -12,6 +12,7 @@
> #define _UAPI_LINUX_AUTO_FS_H
>
> #include <linux/types.h>
> +#include <linux/limits.h>
> #ifndef __KERNEL__
> #include <sys/ioctl.h>
> #endif /* __KERNEL__ */