Re: [PATCH] UAPI: Fix tools/vm/page-types.c

From: Fengguang Wu
Date: Tue Oct 23 2012 - 09:47:55 EST


On Tue, Oct 23, 2012 at 02:20:07PM +0100, David Howells wrote:
> Fix tools/vm/page-types.c to use the UAPI variant of linux/kernel-page-flags.h
> lest the following error appear:
>
> In file included from page-types.c:38:0:
> ../../include/linux/kernel-page-flags.h:4:42: fatal error:
> uapi/linux/kernel-page-flags.h: No such file or directory
>
> Reported-by: Daniel Hazelton <dshadowwolf@xxxxxxxxx>
> Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
> cc: Fengguang Wu <fengguang.wu@xxxxxxxxx>

Looks like the right solution.

Reviewed-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>

> ---
>
> tools/vm/page-types.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/vm/page-types.c b/tools/vm/page-types.c
> index cd1b03e..b76edf2 100644
> --- a/tools/vm/page-types.c
> +++ b/tools/vm/page-types.c
> @@ -35,7 +35,7 @@
> #include <sys/mount.h>
> #include <sys/statfs.h>
> #include "../../include/uapi/linux/magic.h"
> -#include "../../include/linux/kernel-page-flags.h"
> +#include "../../include/uapi/linux/kernel-page-flags.h"
>
>
> #ifndef MAX_PATH
--
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/