kcmp: Move kcmp.h into uapi
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Dec 2014 05:52:06 +0000 (16:52 +1100)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 2 Dec 2014 20:52:53 +0000 (13:52 -0700)
kcmp.h appears to be part of the API, it's documented in kcmp(2), and
the selftests/kcmp code uses it. So move it to uapi so it's actually
exported.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
include/linux/kcmp.h [deleted file]
include/uapi/linux/Kbuild
include/uapi/linux/kcmp.h [new file with mode: 0644]

diff --git a/include/linux/kcmp.h b/include/linux/kcmp.h
deleted file mode 100644 (file)
index 2dcd1b3..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef _LINUX_KCMP_H
-#define _LINUX_KCMP_H
-
-/* Comparison type */
-enum kcmp_type {
-       KCMP_FILE,
-       KCMP_VM,
-       KCMP_FILES,
-       KCMP_FS,
-       KCMP_SIGHAND,
-       KCMP_IO,
-       KCMP_SYSVSEM,
-
-       KCMP_TYPES,
-};
-
-#endif /* _LINUX_KCMP_H */
index b70237e8bc37b49bb9905669fb5d109ed17300fb..1cf50d682dbff886a0867657ce4adc4329c09bda 100644 (file)
@@ -209,6 +209,7 @@ header-y += ivtvfb.h
 header-y += ixjuser.h
 header-y += jffs2.h
 header-y += joystick.h
+header-y += kcmp.h
 header-y += kd.h
 header-y += kdev_t.h
 header-y += kernel-page-flags.h
diff --git a/include/uapi/linux/kcmp.h b/include/uapi/linux/kcmp.h
new file mode 100644 (file)
index 0000000..84df14b
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef _UAPI_LINUX_KCMP_H
+#define _UAPI_LINUX_KCMP_H
+
+/* Comparison type */
+enum kcmp_type {
+       KCMP_FILE,
+       KCMP_VM,
+       KCMP_FILES,
+       KCMP_FS,
+       KCMP_SIGHAND,
+       KCMP_IO,
+       KCMP_SYSVSEM,
+
+       KCMP_TYPES,
+};
+
+#endif /* _UAPI_LINUX_KCMP_H */