summaryrefslogtreecommitdiffstats
path: root/extras/libmemif/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-03-26 14:09:38 +0200
committerDamjan Marion <dmarion.lists@gmail.com>2018-03-28 13:41:15 +0000
commit23d4e8a6b5a3824ef5390061cf3dd7001ca760e8 (patch)
tree9858d5a59e0f42e330c315825cfec0d23d09e193 /extras/libmemif/src
parentb3caf557300adc6208a7bb6b985a80ef118c5a9d (diff)
Build libmemif as part of verify job
Change-Id: I7e808b5bcbb74343a4ed6782f115ed07e9bfe3a6 Signed-off-by: Damjan Marion <damarion@cisco.com> Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'extras/libmemif/src')
-rw-r--r--extras/libmemif/src/main.c2
-rw-r--r--extras/libmemif/src/memif_private.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/extras/libmemif/src/main.c b/extras/libmemif/src/main.c
index 42bced67dae..dc4a6231118 100644
--- a/extras/libmemif/src/main.c
+++ b/extras/libmemif/src/main.c
@@ -1346,7 +1346,7 @@ memif_init_regions_and_queues (memif_connection_t * conn)
(conn->run_args.num_s2m_rings + conn->run_args.num_m2s_rings);
if ((r->fd =
- memif_memfd_create ("memif region 0", MFD_ALLOW_SEALING)) == -1)
+ memfd_create ("memif region 0", MFD_ALLOW_SEALING)) == -1)
return memif_syscall_error_handler (errno);
if ((fcntl (r->fd, F_ADD_SEALS, F_SEAL_SHRINK)) == -1)
diff --git a/extras/libmemif/src/memif_private.h b/extras/libmemif/src/memif_private.h
index b1039f9d385..accdac361b9 100644
--- a/extras/libmemif/src/memif_private.h
+++ b/extras/libmemif/src/memif_private.h
@@ -215,7 +215,7 @@ int free_list_elt (memif_list_elt_t * list, uint16_t len, int key);
#ifndef HAVE_MEMFD_CREATE
static inline int
-memif_memfd_create (const char *name, unsigned int flags)
+memfd_create (const char *name, unsigned int flags)
{
return syscall (__NR_memfd_create, name, flags);
}