headers: Move kcmp_type to kcmp.h

It's arch independent data.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2013-11-14 19:19:52 +04:00 committed by Pavel Emelyanov
parent 3f3439cd42
commit f8ddc74283
4 changed files with 18 additions and 26 deletions

View file

@ -139,19 +139,6 @@ struct user_vfp_exc {
# define PAGE_MASK (~(PAGE_SIZE - 1))
#endif
/* For sys_kcmp */
enum kcmp_type {
KCMP_FILE,
KCMP_VM,
KCMP_FILES,
KCMP_FS,
KCMP_SIGHAND,
KCMP_IO,
KCMP_SYSVSEM,
KCMP_TYPES,
};
#ifndef MAP_HUGETLB
# define MAP_HUGETLB 0x40000
#endif

View file

@ -163,19 +163,6 @@ typedef struct {
# define PAGE_MASK (~(PAGE_SIZE - 1))
#endif
/* For sys_kcmp */
enum kcmp_type {
KCMP_FILE,
KCMP_VM,
KCMP_FILES,
KCMP_FS,
KCMP_SIGHAND,
KCMP_IO,
KCMP_SYSVSEM,
KCMP_TYPES,
};
#ifndef MAP_HUGETLB
# define MAP_HUGETLB 0x40000
#endif

View file

@ -1,6 +1,8 @@
#ifndef __CR_KCMP_IDS_H__
#define __CR_KCMP_IDS_H__
#include "kcmp.h"
struct kid_tree {
struct rb_root root;
unsigned kcmp_type;

16
include/kcmp.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef __CR_KCMP_H__
#define __CR_KCMP_H__
enum kcmp_type {
KCMP_FILE,
KCMP_VM,
KCMP_FILES,
KCMP_FS,
KCMP_SIGHAND,
KCMP_IO,
KCMP_SYSVSEM,
KCMP_TYPES,
};
#endif /* __CR_KCMP_H__ */