From c2be459e76a432a93fb6c3bd8bb5640a114c49a2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 4 Aug 2016 10:16:08 +1000 Subject: [PATCH] Inline ref_instance_by_id to be able to determine the caller of it for lock debugging --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index ace5284b..b72dab93 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2760,7 +2760,7 @@ static void __inc_instance_ref(stratum_instance_t *client) /* Find an __instance_by_id and increase its reference count allowing us to * use this instance outside of instance_lock without fear of it being * dereferenced. Does not return dropped clients still on the list. */ -static stratum_instance_t *ref_instance_by_id(sdata_t *sdata, const int64_t id) +static inline stratum_instance_t *ref_instance_by_id(sdata_t *sdata, const int64_t id) { stratum_instance_t *client;