From: Masatake YAMATO Date: Wed, 16 Apr 2014 06:33:00 +0000 (+0900) Subject: unwind: make alloc_mmap_cache function local X-Git-Tag: v4.9~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b65042fbdb576d13e9bb57c21a890539cab25c43;p=strace unwind: make alloc_mmap_cache function local * defs.h (alloc_mmap_cache): Remove. * unwind.c (alloc_mmap_cache): Add static qualifier. Signed-off-by: Masatake YAMATO --- diff --git a/defs.h b/defs.h index 825fc797..97deab3e 100644 --- a/defs.h +++ b/defs.h @@ -735,7 +735,6 @@ extern void tv_div(struct timeval *, const struct timeval *, int); extern void init_unwind_addr_space(void); extern void init_libunwind_ui(struct tcb *tcp); extern void free_libunwind_ui(struct tcb *tcp); -extern void alloc_mmap_cache(struct tcb* tcp); extern void delete_mmap_cache(struct tcb* tcp); extern void print_stacktrace(struct tcb* tcp); #endif diff --git a/unwind.c b/unwind.c index c16fdd11..7c179bf2 100644 --- a/unwind.c +++ b/unwind.c @@ -78,7 +78,7 @@ free_libunwind_ui(struct tcb *tcp) * * The cache must be refreshed after some syscall: mmap, mprotect, munmap, execve */ -void +static void alloc_mmap_cache(struct tcb* tcp) { unsigned long start_addr, end_addr, mmap_offset;