summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2012-08-08 17:17:46 +0200
committerAnton Arapov <anton@redhat.com>2012-10-29 11:22:08 +0100
commitec8583cfad22e8856fd4c2020f55d1123e3bcee0 (patch)
tree2b0af769b5d22af5f740d8ece0f5328d5f80156f /include/linux
parent45ef1f95f3d4804f35ce5d87b6a2b4bc1af1d52e (diff)
downloadkernel-uprobes-ec8583cfad22e8856fd4c2020f55d1123e3bcee0.tar.gz
kernel-uprobes-ec8583cfad22e8856fd4c2020f55d1123e3bcee0.tar.xz
kernel-uprobes-ec8583cfad22e8856fd4c2020f55d1123e3bcee0.zip
uprobes: Fold uprobe_reset_state() into uprobe_dup_mmap()
Now that we have uprobe_dup_mmap() we can fold uprobe_reset_state() into the new hook and remove it. mmput()->uprobe_clear_state() can't be called before dup_mmap(). Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/uprobes.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h
index 4a37ab15324..30297f95c8a 100644
--- a/include/linux/uprobes.h
+++ b/include/linux/uprobes.h
@@ -118,7 +118,6 @@ extern void uprobe_notify_resume(struct pt_regs *regs);
extern bool uprobe_deny_signal(void);
extern bool __weak arch_uprobe_skip_sstep(struct arch_uprobe *aup, struct pt_regs *regs);
extern void uprobe_clear_state(struct mm_struct *mm);
-extern void uprobe_reset_state(struct mm_struct *mm);
#else /* !CONFIG_UPROBES */
struct uprobes_state {
};
@@ -163,8 +162,5 @@ static inline void uprobe_copy_process(struct task_struct *t)
static inline void uprobe_clear_state(struct mm_struct *mm)
{
}
-static inline void uprobe_reset_state(struct mm_struct *mm)
-{
-}
#endif /* !CONFIG_UPROBES */
#endif /* _LINUX_UPROBES_H */