Make lib/memalign.c a stand-alone library
lib/memalign.c not having dependency on fio.h enables it to be
a stand-alone library, which is useful for debugging purpose.
In fact, most of the files under lib/ directory do things this way.
(For lib/memalign.c, it was actually myself who introduced this
dependency as a part of changes made by
248c9436, so this commit
is partially reverting that)
--
# cat ./test3.c
#include <stdio.h>
#include "lib/memalign.h"
int main(void) {
char *p = fio_memalign(4096,
1000000);
printf("%p\n", p);
fio_memfree(p,
1000000);
return 0;
}
# gcc -Wall -g ./test3.c ./lib/memalign.c
# ./a.out
0x7fbb7bbbc000
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>