]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Add static where necessary.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 22 Feb 2021 01:04:48 +0000 (20:04 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 22 Feb 2021 01:04:48 +0000 (20:04 -0500)
Add static to anywhere sparse reports necessary.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c

index a3fe0873633d4a28d3ebb44065be025dd363dd96..e065b85792607b7e70a219ebfa10e2c3dc44a58e 100644 (file)
@@ -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);