malloc: protect stats with lock
[dpdk.git] / lib / librte_eal / common / malloc_heap.h
index be5e6e6..e0defa7 100644 (file)
@@ -28,7 +28,7 @@ malloc_heap_alloc(struct malloc_heap *heap,   const char *type, size_t size,
                unsigned flags, size_t align, size_t bound);
 
 int
-malloc_heap_get_stats(const struct malloc_heap *heap,
+malloc_heap_get_stats(struct malloc_heap *heap,
                struct rte_malloc_socket_stats *socket_stats);
 
 int