summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2006-12-05 11:44:16 +0100
committerJens Axboe <jens.axboe@oracle.com>2006-12-05 11:44:16 +0100
commit1e97cce9f5a87a67293a05ec4533ed6968698b2e (patch)
treecd6f55da57f0df9270bb1eed723c98bf3a7f0f2b /memory.c
parent36dff96650e663e972d7f4318710d5730adaeb90 (diff)
downloadfio-1e97cce9f5a87a67293a05ec4533ed6968698b2e.tar.gz
fio-1e97cce9f5a87a67293a05ec4533ed6968698b2e.tar.bz2
[PATCH] Fix warnings from icc
icc spewed a bunch of warnings on building fio, but it did actually build and work. Some of them are real bugs, most are just "helpful" warnings. icc doesn't like pointer arithmetic, however these are not fixed up. It works as-is, just ignore those class of warnings. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/memory.c b/memory.c
index d8924a85..39dc250c 100644
--- a/memory.c
+++ b/memory.c
@@ -8,7 +8,6 @@
#include "fio.h"
#include "os.h"
-extern unsigned long long mlock_size;
static void *pinned_mem;
void fio_unpin_memory(void)
@@ -102,7 +101,7 @@ void free_io_mem(struct thread_data *td)
} else if (td->mem_type == MEM_MMAP)
munmap(td->orig_buffer, td->orig_buffer_size);
else
- log_err("Bad memory type %d\n", td->mem_type);
+ log_err("Bad memory type %u\n", td->mem_type);
td->orig_buffer = NULL;
}