X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=lib%2Fprio_tree.c;h=d8e1b89a94038c2df63e2a0f7435f8184ecd2ba0;hp=b0e935cdace5f051af293dd2ea9a2aef8997794e;hb=051382218cbe5101a5caa83eab55ed04608f8475;hpb=f982d35f5ae88f728c6853aaf57448db8f5fcf98 diff --git a/lib/prio_tree.c b/lib/prio_tree.c index b0e935cd..d8e1b89a 100644 --- a/lib/prio_tree.c +++ b/lib/prio_tree.c @@ -11,11 +11,15 @@ * 02Feb2004 Initial version */ +#include #include #include -#include "../fio.h" + +#include "../compiler/compiler.h" #include "prio_tree.h" +#define ARRAY_SIZE(x) (sizeof((x)) / (sizeof((x)[0]))) + /* * A clever mix of heap and radix trees forms a radix priority search tree (PST) * which is useful for storing intervals, e.g, we can consider a vma as a closed @@ -49,7 +53,7 @@ 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;