* node.
*/
static inline void mas_free(struct ma_state *mas, struct maple_enode *used);
-static inline void mas_mat_free(struct ma_state *mas, struct ma_topiary *mat,
+static void mas_mat_free(struct ma_state *mas, struct ma_topiary *mat,
bool recursive)
{
struct maple_enode *next;
}
}
-static inline void mas_ascend(struct ma_state *mas)
+static void mas_ascend(struct ma_state *mas)
{
struct maple_enode *p_enode = mas->node; // parent enode.
struct maple_enode *a_enode = mas->node; // ancestor enode.
*
* @mas - the maple state
*/
-static inline unsigned long mas_leaf_max_gap(struct ma_state *mas)
+static unsigned long mas_leaf_max_gap(struct ma_state *mas)
{
enum maple_type mt = mte_node_type(mas->node);
unsigned long pstart, gap, max_gap;
*
* Returns the number of elements in b_node during the last loop.
*/
-static inline int mas_spanning_rebalance(struct ma_state *mas,
+static int mas_spanning_rebalance(struct ma_state *mas,
struct maple_subtree_state *mast,
unsigned char count)
{
sizeof(unsigned long) * zero);
}
-
static inline void mast_split_data(struct maple_subtree_state *mast,
struct ma_state *mas,
unsigned char split)
return mas_push_data(mas, height, mast, true);
}
-static inline int mas_split(struct ma_state *mas,
- struct maple_big_node *b_node)
+static int mas_split(struct ma_state *mas, struct maple_big_node *b_node)
{
struct maple_subtree_state mast;
}
EXPORT_SYMBOL_GPL(mas_prev);
-static inline bool _mas_rev_awalk(struct ma_state *mas, unsigned long size)
+static bool _mas_rev_awalk(struct ma_state *mas, unsigned long size)
{
enum maple_type type = mte_node_type(mas->node);
struct maple_node *node = mas_mn(mas);
- unsigned long *pivots, *gaps = NULL;
+ unsigned long *pivots, *gaps;
void **slots;
unsigned long gap = 0;
unsigned long max, min, index;
* _mas_next() - Finds the next entry, sets index to the start of the range.
*
*/
-static inline void *_mas_next(struct ma_state *mas, unsigned long limit,
+static void *_mas_next(struct ma_state *mas, unsigned long limit,
unsigned long *range_start)
{
void *entry = NULL;
#define MA_PTR "%px"
#endif
/* mas limits not adjusted */
-static inline void mas_dfs_preorder(struct ma_state *mas)
+static void mas_dfs_preorder(struct ma_state *mas)
{
struct maple_enode *prev;
mas->node = MAS_NONE;
}
-
-static inline void mas_bfs_preorder(struct ma_state *mas)
+#if CONFIG_MAPLE_SEARCH
+static void mas_bfs_preorder(struct ma_state *mas)
{
if (mas_is_start(mas)) {
}
}
+#endif
/* Depth first search, post-order */
-static inline void mas_dfs_postorder(struct ma_state *mas, unsigned long max)
+static void mas_dfs_postorder(struct ma_state *mas, unsigned long max)
{
struct maple_enode *p = MAS_NONE, *mn = mas->node;