tile: fix build
[dpdk.git] / app / test / test_memory.c
index 6c62de8..921bdc8 100644 (file)
  * - Try to read all memory; it should not segfault.
  */
 
-int
+static int
 test_memory(void)
 {
        uint64_t s;
-       unsigned i, j;
+       unsigned i;
+       size_t j;
        const struct rte_memseg *mem;
 
        /*
@@ -84,3 +85,5 @@ test_memory(void)
 
        return 0;
 }
+
+REGISTER_TEST_COMMAND(memory_autotest, test_memory);