[CRIU] [PATCH] memfd: Fix typos in memfd tests

Cyrill Gorcunov gorcunov at openvz.org
Mon Feb 8 13:01:08 PST 2016


I manage to miss source refresh. Sorry.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 kerndat.c                 | 1 +
 scripts/feature-tests.mak | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/kerndat.c b/kerndat.c
index a78803d19390..eb296033e5d9 100644
--- a/kerndat.c
+++ b/kerndat.c
@@ -404,6 +404,7 @@ static bool kerndat_has_memfd_create(void)
 static bool kerndat_has_memfd_create(void)
 {
 	kdat.has_memfd = false;
+	return 0;
 }
 #endif
 
diff --git a/scripts/feature-tests.mak b/scripts/feature-tests.mak
index 9a491de45b66..4f114990cb46 100644
--- a/scripts/feature-tests.mak
+++ b/scripts/feature-tests.mak
@@ -102,6 +102,8 @@ int main(void)
 {
 #ifdef __NR_memfd_create
 	return 0;
+#else
+#error No memfd support
 #endif
 }
 
-- 
2.5.0



More information about the CRIU mailing list