engines/io_uring: add new I/O engine for uring passthrough support
[fio.git] / lib / prio_tree.c
index b0e935cdace5f051af293dd2ea9a2aef8997794e..c4f66a49299188a45d0dcd2d6f9ef099b8d0e1ac 100644 (file)
  * 02Feb2004   Initial version
  */
 
+#include <assert.h>
 #include <stdlib.h>
 #include <limits.h>
-#include "../fio.h"
+
+#include "../compiler/compiler.h"
 #include "prio_tree.h"
 
 /*
@@ -49,13 +51,13 @@ static void get_index(const struct prio_tree_node *node,
 
 static unsigned long index_bits_to_maxindex[BITS_PER_LONG];
 
-void fio_init prio_tree_init(void)
+static void fio_init prio_tree_init(void)
 {
        unsigned int i;
 
-       for (i = 0; i < ARRAY_SIZE(index_bits_to_maxindex) - 1; i++)
+       for (i = 0; i < FIO_ARRAY_SIZE(index_bits_to_maxindex) - 1; i++)
                index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
-       index_bits_to_maxindex[ARRAY_SIZE(index_bits_to_maxindex) - 1] = ~0UL;
+       index_bits_to_maxindex[FIO_ARRAY_SIZE(index_bits_to_maxindex) - 1] = ~0UL;
 }
 
 /*