[CRIU] [PATCH 3/3] rst: Remove actually unused pid arg from restorer_get_vma_hint

Pavel Emelyanov xemul at parallels.com
Thu Jun 25 13:42:57 PDT 2015


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 cr-restore.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index 1db9c50..2e172db 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1980,7 +1980,7 @@ err:
 	return ret;
 }
 
-static long restorer_get_vma_hint(pid_t pid, struct list_head *tgt_vma_list,
+static long restorer_get_vma_hint(struct list_head *tgt_vma_list,
 		struct list_head *self_vma_list, long vma_len)
 {
 	struct vma_area *t_vma, *s_vma;
@@ -2765,7 +2765,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
 	 * or inited from scratch).
 	 */
 
-	exec_mem_hint = restorer_get_vma_hint(pid, &vmas->h, &self_vmas.h,
+	exec_mem_hint = restorer_get_vma_hint(&vmas->h, &self_vmas.h,
 					      restore_bootstrap_len);
 	if (exec_mem_hint == -1) {
 		pr_err("No suitable area for task_restore bootstrap (%ldK)\n",
-- 
1.9.3




More information about the CRIU mailing list