author: Valdis Kletnieks <valdis.kletnieks@vt.edu> 2019-09-25 16:46:23 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2019-09-25 17:51:39 -0700
commit: e3f4faa42095cacceeb33c68fda647a8e6d48a90
parent: 9a156466147b61504f4cbe97ea503e67c21e117a
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/lib/generic-radix-tree.c b/lib/generic-radix-tree.c
index a7bafc413730..ae25e2fa2187 100644
--- a/lib/generic-radix-tree.c
+++ b/lib/generic-radix-tree.c
@@ -36,12 +36,12 @@ static inline size_t genradix_depth_size(unsigned depth)
#define GENRADIX_DEPTH_MASK \
((unsigned long) (roundup_pow_of_two(GENRADIX_MAX_DEPTH + 1) - 1))
-unsigned genradix_root_to_depth(struct genradix_root *r)
+static inline unsigned genradix_root_to_depth(struct genradix_root *r)
{
return (unsigned long) r & GENRADIX_DEPTH_MASK;
}
-struct genradix_node *genradix_root_to_node(struct genradix_root *r)
+static inline struct genradix_node *genradix_root_to_node(struct genradix_root *r)
{
return (void *) ((unsigned long) r & ~GENRADIX_DEPTH_MASK);
}