[CRIU] [PATCHv2] criu/compat: include log.h in compat.h

Dmitry Safonov dsafonov at virtuozzo.com
Tue Dec 13 05:35:25 PST 2016


Fix for build:
In file included from /home/travis/build/xemul/criu/criu/arch/x86/include/asm/restorer.h:9:0,
                 from criu/arch/x86/crtools.c:10:
/home/travis/build/xemul/criu/criu/arch/x86/include/asm/compat.h: In function ‘free_compat_syscall_stack’:
/home/travis/build/xemul/criu/criu/arch/x86/include/asm/compat.h:29:3: error: implicit declaration of function ‘pr_err’ [-Werror=implicit-function-declaration]
   pr_err("munmap of compat addr %p failed with %ld", mem, ret);
   ^

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 criu/arch/x86/include/asm/compat.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/criu/arch/x86/include/asm/compat.h b/criu/arch/x86/include/asm/compat.h
index 8379af452e47..dd7a6a594b82 100644
--- a/criu/arch/x86/include/asm/compat.h
+++ b/criu/arch/x86/include/asm/compat.h
@@ -10,6 +10,7 @@
 #endif
 
 #include <sys/mman.h>
+#include "log.h"
 
 static inline void *alloc_compat_syscall_stack(void)
 {
-- 
2.10.2



More information about the CRIU mailing list