Module: sip-router Branch: master Commit: 452f32235034916468cab577de3ca0d0f56fd5ea URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=452f32235034916468cab577de3ca0d0f56fd5ea
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: Tue Sep 30 18:07:53 2014 +0200 benchmark: declare inline functions static to work with clang linker - otherwise it results in no symbol found at module loading time --- modules/benchmark/benchmark.c | 2 +- modules/benchmark/benchmark.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/benchmark/benchmark.c b/modules/benchmark/benchmark.c index 7dea208..cf45a5c 100644 --- a/modules/benchmark/benchmark.c +++ b/modules/benchmark/benchmark.c @@ -254,7 +254,7 @@ void reset_timers(void) * 1 - Timing enabled for all timers */ -inline int timer_active(unsigned int id) +static inline int timer_active(unsigned int id) { if (bm_mycfg->enable_global > 0 || bm_mycfg->timers[id].enabled > 0) return 1; diff --git a/modules/benchmark/benchmark.h b/modules/benchmark/benchmark.h index 6a275be..fea0649 100644 --- a/modules/benchmark/benchmark.h +++ b/modules/benchmark/benchmark.h @@ -69,7 +69,7 @@ typedef struct benchmark_timer struct benchmark_timer *next; } benchmark_timer_t; -inline int bm_get_time(bm_timeval_t *t) +static inline int bm_get_time(bm_timeval_t *t) { #ifdef BM_CLOCK_REALTIME if(clock_gettime(CLOCK_REALTIME, t)!=0) @@ -84,7 +84,7 @@ inline int bm_get_time(bm_timeval_t *t) return 0; } -inline unsigned long long bm_diff_time(bm_timeval_t *t1, bm_timeval_t *t2) +static inline unsigned long long bm_diff_time(bm_timeval_t *t1, bm_timeval_t *t2) { unsigned long long tdiff; _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
