Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f598f0b authored by Chris Friesen's avatar Chris Friesen Committed by Patrick McHardy
Browse files

netfilter: ipset: fix compiler warnings "'hash_ip4_data_next' declared inline after being called"



Some gcc versions warn about prototypes without "inline" when the declaration
includes the "inline" keyword. The fix generates a false error message
"marked inline, but without a definition" with sparse below 0.4.2.

Signed-off-by: default avatarChris Friesen <chris.friesen@genband.com>
Signed-off-by: default avatarJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 89dc79b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -392,7 +392,7 @@ type_pf_resize(struct ip_set *set, bool retried)
	return 0;
}

static void
static inline void
type_pf_data_next(struct ip_set_hash *h, const struct type_pf_elem *d);

/* Add an element to a hash and update the internal counters when succeeded,