From b65042fbdb576d13e9bb57c21a890539cab25c43 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Wed, 16 Apr 2014 15:33:00 +0900 Subject: [PATCH] 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 --- defs.h | 1 - unwind.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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; -- 2.40.0