]> granicus.if.org Git - strace/commitdiff
unwind: make alloc_mmap_cache function local
authorMasatake YAMATO <yamato@redhat.com>
Wed, 16 Apr 2014 06:33:00 +0000 (15:33 +0900)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 30 May 2014 22:28:15 +0000 (22:28 +0000)
* defs.h (alloc_mmap_cache): Remove.
* unwind.c (alloc_mmap_cache): Add static qualifier.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
defs.h
unwind.c

diff --git a/defs.h b/defs.h
index 825fc797d6de11e2741c0b95dddee4b8d36af68a..97deab3e3ceed4c2c158ef68ba66f1a6ca9b995d 100644 (file)
--- 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
index c16fdd11f693259029cd2d332eb9bb5bf9f39a76..7c179bf2f35dc049d744c5d88c46a82b4f4f9845 100644 (file)
--- 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;