From: Liam R. Howlett Date: Mon, 22 Feb 2021 01:04:48 +0000 (-0500) Subject: maple_tree: Add static where necessary. X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=64a4ad57cb2c22f4a660e740cbd6d5520835ae3c;p=users%2Fjedix%2Flinux-maple.git maple_tree: Add static where necessary. Add static to anywhere sparse reports necessary. Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index a3fe0873633d..e065b8579260 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3235,8 +3235,8 @@ exists: * * Return: True if this is a spanning write, false otherwise. */ -bool mas_is_span_wr(struct ma_state *mas, unsigned long piv, - enum maple_type type, void *entry) +static bool mas_is_span_wr(struct ma_state *mas, unsigned long piv, + enum maple_type type, void *entry) { unsigned long max; unsigned long last = mas->last; @@ -3335,8 +3335,8 @@ done: * * Return: True if it's contained in a node, false on spanning write. */ -bool mas_wr_walk(struct ma_state *mas, unsigned long *range_min, - unsigned long *range_max, void *entry) +static bool mas_wr_walk(struct ma_state *mas, unsigned long *range_min, + unsigned long *range_max, void *entry) { enum maple_type type; @@ -5635,7 +5635,8 @@ EXPORT_SYMBOL(mtree_insert_range); * * Return: 0 on success, -EINVAL on invalid request, -ENOMEM if memory could not * be allocated. - */int mtree_insert(struct maple_tree *mt, unsigned long index, void *entry, + */ +int mtree_insert(struct maple_tree *mt, unsigned long index, void *entry, gfp_t gfp) { return mtree_insert_range(mt, index, index, entry, gfp);