From 809d0608bd20f5832d4166b1434c1fcfdb1a8f98 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 4 Jun 2010 18:59:20 +0200 Subject: [PATCH] Remove unused arguments from stap_remove_vma_map_info. * runtime/task_finder_vma.c (stap_remove_vma_map_info): Drop vm_end and vm_pgoff arguments. * runtime/sym.c (_stp_tf_munmap_cb): Don't pass addr + length and 0. --- runtime/sym.c | 2 +- runtime/task_finder_vma.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/sym.c b/runtime/sym.c index 00a4bf74b..4ca293560 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -85,7 +85,7 @@ static int _stp_tf_munmap_cb(struct stap_task_finder_target *tgt, unsigned long length) { /* Unconditionally remove vm map info, ignore if not present. */ - stap_remove_vma_map_info(tsk->group_leader, addr, addr + length, 0); + stap_remove_vma_map_info(tsk->group_leader, addr); return 0; } diff --git a/runtime/task_finder_vma.c b/runtime/task_finder_vma.c index 994ec1f37..bad9041d6 100644 --- a/runtime/task_finder_vma.c +++ b/runtime/task_finder_vma.c @@ -178,8 +178,7 @@ stap_add_vma_map_info(struct task_struct *tsk, unsigned long vm_start, // If the entry contained a non-NULL dentry, will call dput(dentry). // Returns -ESRCH if the entry isn't present. static int -stap_remove_vma_map_info(struct task_struct *tsk, unsigned long vm_start, - unsigned long vm_end, unsigned long vm_pgoff) +stap_remove_vma_map_info(struct task_struct *tsk, unsigned long vm_start) { struct hlist_head *head; struct hlist_node *node; -- 2.43.5