]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
kbuild: install kernel-page-flags.h
authorUlrich Drepper <drepper@akkadia.org>
Tue, 29 May 2012 22:06:30 +0000 (15:06 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 10 Jun 2012 13:42:10 +0000 (14:42 +0100)
commit 9295b7a07c859a42346221b5839be0ae612333b0 upstream.

Programs using /proc/kpageflags need to know about the various flags.  The
<linux/kernel-page-flags.h> provides them and the comments in the file
indicate that it is supposed to be used by user-level code.  But the file
is not installed.

Install the headers and mark the unstable flags as out-of-bounds.  The
page-type tool is also adjusted to not duplicate the definitions

Signed-off-by: Ulrich Drepper <drepper@gmail.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[bwh: Backported to 3.2: adjust context; drop change to missing tools/vm/]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
include/linux/Kbuild
include/linux/kernel-page-flags.h

index 619b5657af77b232541a56a6e3cd06d7f2693210..bd21ecd22a45b3d76a81eae89ba9077e416950b3 100644 (file)
@@ -224,6 +224,7 @@ header-y += kd.h
 header-y += kdev_t.h
 header-y += kernel.h
 header-y += kernelcapi.h
+header-y += kernel-page-flags.h
 header-y += keyboard.h
 header-y += keyctl.h
 header-y += l2tp.h
index bd92a89f4b0aa49cadcb6d320a8d2815ffd190c3..096b05d35c4864e3827c357a578e12a4a64a13da 100644 (file)
@@ -31,6 +31,8 @@
 
 #define KPF_KSM                        21
 
+#ifdef __KERNEL__
+
 /* kernel hacking assistances
  * WARNING: subject to change, never rely on them!
  */
@@ -43,4 +45,6 @@
 #define KPF_ARCH               38
 #define KPF_UNCACHED           39
 
+#endif /* __KERNEL__ */
+
 #endif /* LINUX_KERNEL_PAGE_FLAGS_H */