From 91e0e1b038fd9883cf6493a795b30398238d9c37 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 22 Jan 2016 23:32:36 +0100 Subject: gtphub: Fix compilation using gcc5 The semantic of inline has changed and we need to make it static to not end up with undefined references. --- openbsc/src/gprs/gtphub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc') diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c index f26a56ace..fcb071529 100644 --- a/openbsc/src/gprs/gtphub.c +++ b/openbsc/src/gprs/gtphub.c @@ -950,14 +950,14 @@ static int gtphub_read(const struct osmo_fd *from, return received; } -inline void gtphub_port_ref_count_inc(struct gtphub_peer_port *pp) +static inline void gtphub_port_ref_count_inc(struct gtphub_peer_port *pp) { OSMO_ASSERT(pp); OSMO_ASSERT(pp->ref_count < UINT_MAX); pp->ref_count++; } -inline void gtphub_port_ref_count_dec(struct gtphub_peer_port *pp) +static inline void gtphub_port_ref_count_dec(struct gtphub_peer_port *pp) { OSMO_ASSERT(pp); OSMO_ASSERT(pp->ref_count > 0); -- cgit v1.2.3