From: H.J. Lu Date: Fri, 7 May 2021 01:18:48 +0000 (-0700) Subject: malloc: Make tunable callback functions static X-Git-Tag: glibc-2.34~478 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=310be3cc09d5b1471174bc12f1860169e686bd65;p=glibc.git malloc: Make tunable callback functions static Since malloc tunable callback functions are only used within the same file, we should make them static. --- diff --git a/malloc/arena.c b/malloc/arena.c index 9fbbb38a15..7eb110445e 100644 --- a/malloc/arena.c +++ b/malloc/arena.c @@ -207,7 +207,7 @@ __malloc_fork_unlock_child (void) } #if HAVE_TUNABLES -void +static void TUNABLE_CALLBACK (set_mallopt_check) (tunable_val_t *valp) { int32_t value = (int32_t) valp->numval; @@ -217,7 +217,7 @@ TUNABLE_CALLBACK (set_mallopt_check) (tunable_val_t *valp) # define TUNABLE_CALLBACK_FNDECL(__name, __type) \ static inline int do_ ## __name (__type value); \ -void \ +static void \ TUNABLE_CALLBACK (__name) (tunable_val_t *valp) \ { \ __type value = (__type) (valp)->numval; \