UAPI: Fix tools/vm/page-types.c
PATCH 1/1 UAPI: Fix tools/vm/page-types.c
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
---
tools/vm/page-types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/vm/page-types.c +1 -1
@@ -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
Quoted 10 lines · David Howells
Fix
tools/vm/page-types.cto use the UAPI variant oflinux/kernel-page-flags.hlest 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 directoryReported-by Daniel Hazelton <[email protected]>Signed-off-by David Howells <[email protected]>cc Fengguang Wu <[email protected]>
Looks like the right solution.
Quoted 18 lines
---
tools/vm/page-types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/vm/page-types.c +1
-1@@ -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
Quoted 22 lines · David Howells
Fix
tools/vm/page-types.cto use the UAPI variant oflinux/kernel-page-flags.hlest 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 directoryReported-by Daniel Hazelton <[email protected]>Signed-off-by David Howells <[email protected]>cc Fengguang Wu <[email protected]>---
tools/vm/page-types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/vm/page-types.c +0
-0
tools/vm/page-types.c line 41
Quoted 8 lines
tools/vm/page-types.c +1
-1@@ -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
FWIW: Tested-by: Daniel Hazelton <[email protected]>