Skip to contentSkip to conversation

UAPI: Fix tools/vm/page-types.c

PATCH In review David Howells 3 participants 3 messages Oct 23, 2012

lore
Share & tools
lore
#0 lore raw

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
index cd1b03e..b76edf2 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · David Howells

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

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
index cd1b03e..b76edf2 100644
@@ -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
#2 lore raw
In reply to David Howells
Quoted 22 lines · David Howells

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 +0 -0
index cd1b03e..b76edf2 100644

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]>