From 33385148cb16c8bcf4b716f7e01d63fec0cd17d1 Mon Sep 17 00:00:00 2001 From: Dmitry Safonov Date: Fri, 21 Apr 2017 14:16:35 +0300 Subject: [PATCH] kdat: remove cr-exec shambles As cr-exec is deprecated-removed, drop ruins. Signed-off-by: Dmitry Safonov Signed-off-by: Andrei Vagin --- criu/include/crtools.h | 1 - criu/include/kerndat.h | 1 - criu/kerndat.c | 11 ----------- 3 files changed, 13 deletions(-) diff --git a/criu/include/crtools.h b/criu/include/crtools.h index ef0129ba0..658e269ce 100644 --- a/criu/include/crtools.h +++ b/criu/include/crtools.h @@ -20,7 +20,6 @@ extern int cr_pre_dump_tasks(pid_t pid); extern int cr_restore_tasks(void); extern int convert_to_elf(char *elf_path, int fd_core); extern int cr_check(void); -extern int cr_exec(int pid, char **opts); extern int cr_dedup(void); extern int check_add_feature(char *arg); diff --git a/criu/include/kerndat.h b/criu/include/kerndat.h index 68a597801..3c208dcef 100644 --- a/criu/include/kerndat.h +++ b/criu/include/kerndat.h @@ -12,7 +12,6 @@ struct stat; extern int kerndat_init(void); extern int kerndat_init_rst(void); -extern int kerndat_init_cr_exec(void); extern int kerndat_get_dirty_track(void); extern int kerndat_fdinfo_has_lock(void); extern int kerndat_loginuid(bool only_dump); diff --git a/criu/kerndat.c b/criu/kerndat.c index 37efcff2c..530de4326 100644 --- a/criu/kerndat.c +++ b/criu/kerndat.c @@ -632,14 +632,3 @@ int kerndat_init_rst(void) return ret; } - -int kerndat_init_cr_exec(void) -{ - int ret; - - ret = get_task_size(); - if (!ret) - ret = kerndat_compat_restore(); - - return ret; -}