[CRIU] [PATCH 1/9] include/restorer.h: use the alias UserRegsEntry for UserX86RegsEntry

Alexander Kartashov alekskartashov at parallels.com
Wed Jan 16 03:28:23 EST 2013


Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 arch/x86/include/asm/types.h |    4 ++++
 include/restorer.h           |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
index a639e76..acf224c 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -7,6 +7,8 @@
 
 #include "asm/bitops.h"
 
+#include "../protobuf/core.pb-c.h"
+
 /* prctl */
 #define ARCH_SET_GS 0x1001
 #define ARCH_SET_FS 0x1002
@@ -276,4 +278,6 @@ typedef struct {
 
 #define CORE_THREAD_ARCH_INFO(core) core->thread_info
 
+typedef UserX86RegsEntry UserRegsEntry;
+
 #endif /* __CR_ASM_TYPES_H__ */
diff --git a/include/restorer.h b/include/restorer.h
index 172d642..ea36635 100644
--- a/include/restorer.h
+++ b/include/restorer.h
@@ -64,7 +64,7 @@ struct thread_restore_args {
 	struct restore_mem_zone		mem_zone;
 
 	int				pid;
-	UserX86RegsEntry		gpregs;
+	UserRegsEntry		        gpregs;
 	u64				clear_tid_addr;
 
 	bool				has_futex;
-- 
1.7.10.4



More information about the CRIU mailing list