[CRIU] [PATCH 5/6] compel/tests: fix tests on !x86 archs
Dmitry Safonov
dsafonov at virtuozzo.com
Mon May 30 05:48:50 PDT 2016
Add missing string.h include for memcpy(),
add extern __run_tests from handle_binary.o.
Fixes: commit 67526eb51ecf ("compel: add tests for compel").
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
test/compel/arch/aarch64/include/arch_test_handle_binary.h | 3 +++
test/compel/arch/arm/include/arch_test_handle_binary.h | 3 +++
test/compel/arch/ppc64/include/arch_test_handle_binary.h | 3 +++
3 files changed, 9 insertions(+)
diff --git a/test/compel/arch/aarch64/include/arch_test_handle_binary.h b/test/compel/arch/aarch64/include/arch_test_handle_binary.h
index cbefd6843d6c..dbaa1d6e3064 100644
--- a/test/compel/arch/aarch64/include/arch_test_handle_binary.h
+++ b/test/compel/arch/aarch64/include/arch_test_handle_binary.h
@@ -1,8 +1,11 @@
#ifndef __ARCH_TEST_HANDLE_BINARY__
#define __ARCH_TEST_HANDLE_BINARY__
+#include <string.h>
+
#include "uapi/elf64-types.h"
#define arch_run_tests(mem) __run_tests(mem, "")
+extern int __run_tests(void *mem, const char *msg);
static __maybe_unused void arch_test_set_elf_hdr_ident(void *mem)
{
diff --git a/test/compel/arch/arm/include/arch_test_handle_binary.h b/test/compel/arch/arm/include/arch_test_handle_binary.h
index d803829119d6..234bd384a2ee 100644
--- a/test/compel/arch/arm/include/arch_test_handle_binary.h
+++ b/test/compel/arch/arm/include/arch_test_handle_binary.h
@@ -1,8 +1,11 @@
#ifndef __ARCH_TEST_HANDLE_BINARY__
#define __ARCH_TEST_HANDLE_BINARY__
+#include <string.h>
+
#include "uapi/elf32-types.h"
#define arch_run_tests(mem) __run_tests(mem, "")
+extern int __run_tests(void *mem, const char *msg);
static __maybe_unused void arch_test_set_elf_hdr_ident(void *mem)
{
diff --git a/test/compel/arch/ppc64/include/arch_test_handle_binary.h b/test/compel/arch/ppc64/include/arch_test_handle_binary.h
index 0c70c91db289..5f826fee26aa 100644
--- a/test/compel/arch/ppc64/include/arch_test_handle_binary.h
+++ b/test/compel/arch/ppc64/include/arch_test_handle_binary.h
@@ -1,8 +1,11 @@
#ifndef __ARCH_TEST_HANDLE_BINARY__
#define __ARCH_TEST_HANDLE_BINARY__
+#include <string.h>
+
#include "uapi/elf64-types.h"
#define arch_run_tests(mem) __run_tests(mem, "")
+extern int __run_tests(void *mem, const char *msg);
static __maybe_unused void arch_test_set_elf_hdr_ident(void *mem)
{
--
2.8.2
More information about the CRIU
mailing list