From 64a4ad57cb2c22f4a660e740cbd6d5520835ae3c Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Sun, 21 Feb 2021 20:04:48 -0500 Subject: [PATCH] maple_tree: Add static where necessary. Add static to anywhere sparse reports necessary. Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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); -- 2.50.1