summaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/linux/mem.c2
-rw-r--r--src/vppinfra/mem.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/vppinfra/linux/mem.c b/src/vppinfra/linux/mem.c
index 3c449226273..350ccf855ce 100644
--- a/src/vppinfra/linux/mem.c
+++ b/src/vppinfra/linux/mem.c
@@ -61,7 +61,7 @@ clib_mem_vm_get_log2_page_size (int fd)
return min_log2 (clib_mem_vm_get_page_size (fd));
}
-static void
+void
clib_mem_vm_randomize_va (uword * requested_va, u32 log2_page_size)
{
u8 bit_mask = 15;
diff --git a/src/vppinfra/mem.h b/src/vppinfra/mem.h
index b566e8d8895..028289c50a5 100644
--- a/src/vppinfra/mem.h
+++ b/src/vppinfra/mem.h
@@ -360,8 +360,9 @@ typedef struct
uword requested_va; /**< Request fixed position mapping */
void *addr; /**< Pointer to mapped memory, if successful */
} clib_mem_vm_map_t;
-clib_error_t *clib_mem_vm_ext_map (clib_mem_vm_map_t * a);
+clib_error_t *clib_mem_vm_ext_map (clib_mem_vm_map_t * a);
+void clib_mem_vm_randomize_va (uword * requested_va, u32 log2_page_size);
#include <vppinfra/error.h> /* clib_panic */