--- a/plugins/reflink.c
+++ b/plugins/reflink.c
@@ -63,7 +63,7 @@ typedef struct reflink_state_s * reflink_state;
* bsearch_r: implements a re-entrant version of stdlib's bsearch.
* code taken and adapted from /usr/include/bits/stdlib-bsearch.h
*/
-inline void *
+static void *
bsearch_r (const void *__key, const void *__base, size_t __nmemb, size_t __size,
__compar_d_fn_t __compar, void *__arg)
{