Hide asm/types.h from sources

travis-ci: success for criu: Remove asm/ includes from non-arch sources
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Pavel Emelyanov 2016-10-20 23:34:51 +03:00
parent 912cc2d16f
commit 96c7cb7661
80 changed files with 53 additions and 69 deletions

View file

@ -7,6 +7,7 @@
#include <sys/uio.h>
#include <errno.h>
#include "asm/int.h"
#include "bug.h"
#include "log.h"
#include "bfd.h"

View file

@ -8,6 +8,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "asm/int.h"
#include "compiler.h"
#include "cgroup-props.h"
#include "cr_options.h"

View file

@ -19,7 +19,6 @@
#include "namespaces.h"
#include "seize.h"
#include "syscall-types.h"
#include "parasite.h"
#include "protobuf.h"
#include "images/core.pb-c.h"
#include "images/cgroup.pb-c.h"

View file

@ -23,6 +23,7 @@
#include <linux/aio_abi.h>
#include <sys/mount.h>
#include "types.h"
#include "fdinfo.h"
#include "sockets.h"
#include "crtools.h"

View file

@ -22,6 +22,7 @@
#include <sched.h>
#include <sys/resource.h>
#include "types.h"
#include "protobuf.h"
#include "images/fdinfo.pb-c.h"
#include "images/fs.pb-c.h"
@ -32,7 +33,6 @@
#include "images/rlimit.pb-c.h"
#include "images/siginfo.pb-c.h"
#include "asm/types.h"
#include "common/list.h"
#include "imgset.h"
#include "file-ids.h"

View file

@ -19,14 +19,13 @@
#include <sys/shm.h>
#include <sys/mount.h>
#include <sys/prctl.h>
#include <sched.h>
#include <sys/sendfile.h>
#include "types.h"
#include "ptrace.h"
#include "compiler.h"
#include "asm/types.h"
#include "asm/restorer.h"
#include "cr_options.h"

View file

@ -15,6 +15,7 @@
#include <arpa/inet.h>
#include <sched.h>
#include "asm/int.h"
#include "crtools.h"
#include "cr_options.h"
#include "external.h"

View file

@ -19,8 +19,7 @@
#include <dlfcn.h>
#include "asm/types.h"
#include "asm/int.h"
#include "compiler.h"
#include "crtools.h"
#include "cr_options.h"

View file

@ -13,7 +13,6 @@
#include <sys/eventfd.h>
#include "compiler.h"
#include "asm/types.h"
#include "imgset.h"
#include "eventfd.h"
#include "fdinfo.h"

View file

@ -14,7 +14,6 @@
#include "crtools.h"
#include "compiler.h"
#include "asm/types.h"
#include "imgset.h"
#include "rst_info.h"
#include "eventpoll.h"

View file

@ -9,7 +9,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include "asm/types.h"
#include "asm/int.h"
#include "file-ids.h"
#include "rbtree.h"
#include "kcmp-ids.h"

View file

@ -16,8 +16,6 @@
#include "proc_parse.h"
#include "servicefd.h"
#include "file-lock.h"
#include "parasite.h"
#include "parasite-syscall.h"
struct file_lock_rst {
FileLockEntry *fle;

View file

@ -13,6 +13,7 @@
#include <sys/un.h>
#include <stdlib.h>
#include "types.h"
#include "files.h"
#include "file-ids.h"
#include "files-reg.h"
@ -40,7 +41,6 @@
#include "fdinfo.h"
#include "cr_options.h"
#include "autofs.h"
#include "parasite.h"
#include "parasite-syscall.h"

View file

@ -4,7 +4,7 @@
#include <fcntl.h>
#include <sys/mount.h>
#include "asm/types.h"
#include "asm/int.h"
#include "compiler.h"
#include "xmalloc.h"
#include "cr_options.h"

View file

@ -23,7 +23,6 @@
#include <sys/fanotify.h>
#include "compiler.h"
#include "asm/types.h"
#include "imgset.h"
#include "fsnotify.h"
#include "fdinfo.h"

View file

@ -4,7 +4,6 @@
#include <sys/types.h>
#include "common/list.h"
#include "asm/types.h"
#include "servicefd.h"
#include "images/inventory.pb-c.h"

View file

@ -2,7 +2,6 @@
#define __CR_FILE_IDS_H__
#include "compiler.h"
#include "asm/types.h"
#include "rbtree.h"
#include "images/fdinfo.pb-c.h"

View file

@ -1,7 +1,6 @@
#ifndef __CR_FILES_REG_H__
#define __CR_FILES_REG_H__
#include "asm/types.h"
#include "files.h"
#include "images/regfile.pb-c.h"

View file

@ -4,7 +4,6 @@
#include <sys/stat.h>
#include "compiler.h"
#include "asm/types.h"
#include "fcntl.h"
#include "lock.h"
#include "common/list.h"

View file

@ -1,7 +1,6 @@
#ifndef __CR_FSNOTIFY_H__
#define __CR_FSNOTIFY_H__
#include "asm/types.h"
#include "files.h"
#include "protobuf.h"

View file

@ -1,8 +1,6 @@
#ifndef __CR_KERNDAT_H__
#define __CR_KERNDAT_H__
#include "asm/types.h"
struct stat;
/*

View file

@ -6,7 +6,6 @@
#include <limits.h>
#include <errno.h>
#include "asm/types.h"
#include "asm/atomic.h"
#include "bug.h"

View file

@ -3,7 +3,6 @@
#include <sys/types.h>
#include "asm/types.h"
#include "common/list.h"
struct proc_mountinfo;

View file

@ -1,7 +1,6 @@
#ifndef __CR_PARASITE_SYSCALL_H__
#define __CR_PARASITE_SYSCALL_H__
#include "asm/types.h"
#include "pid.h"
#include "common/list.h"
#include "config.h"

View file

@ -2,7 +2,6 @@
#define __CR_PROC_PARSE_H__
#include <sys/types.h>
#include "asm/types.h"
#include "images/seccomp.pb-c.h"

View file

@ -3,7 +3,6 @@
#include "protobuf-desc.h"
#include "asm/types.h"
#include "compiler.h"
#include "util.h"

View file

@ -8,7 +8,6 @@
#include <stddef.h>
#include "compiler.h"
#include "asm/types.h"
#define RB_RED 0
#define RB_BLACK 1

View file

@ -6,7 +6,6 @@
#include <sys/resource.h>
#include "compiler.h"
#include "asm/types.h"
#include "asm/fpu.h"
#include "lock.h"
#include "util.h"

View file

@ -5,7 +5,6 @@
#ifndef __CR_SIGFRAME_H__
#define __CR_SIGFRAME_H__
#include "asm/types.h"
#include "images/core.pb-c.h"
struct rt_sigframe;

View file

@ -1,6 +1,5 @@
#ifndef __CR_SIGNAL_H__
#define __CR_SIGNAL_H__
#include "asm/types.h"
static inline void ksigfillset(k_rtsigset_t *set)
{

View file

@ -4,8 +4,6 @@
#include <stdbool.h>
#include <sys/socket.h>
#include "asm/types.h"
#include "protobuf.h"
#include "images/sk-opts.pb-c.h"

View file

@ -14,8 +14,6 @@
#include <time.h>
#include <fcntl.h>
#include "asm/types.h"
struct cap_header {
u32 version;
int pid;

4
criu/include/types.h Normal file
View file

@ -0,0 +1,4 @@
#ifndef __CR_INC_TYPES_H__
#define __CR_INC_TYPES_H__
#include "asm/types.h"
#endif

View file

@ -1,8 +1,6 @@
#ifndef __CR_UNIX_DIAG_H__
#define __CR_UNIX_DIAG_H__
#include "asm/types.h"
struct unix_diag_req {
u8 sdiag_family;
u8 sdiag_protocol;

View file

@ -4,8 +4,6 @@
#include <sys/socket.h>
#include <sys/un.h>
#include "asm/types.h"
#define UNIX_PATH_MAX (sizeof(struct sockaddr_un) - \
(size_t)((struct sockaddr_un *) 0)->sun_path)

View file

@ -13,7 +13,6 @@
#include <dirent.h>
#include "compiler.h"
#include "asm/types.h"
#include "xmalloc.h"
#include "bug.h"
#include "log.h"

View file

@ -1,7 +1,6 @@
#ifndef __CR_VMA_H__
#define __CR_VMA_H__
#include "asm/types.h"
#include "image.h"
#include "common/list.h"

View file

@ -8,6 +8,7 @@
#include <sys/shm.h>
#include <sched.h>
#include "asm/int.h"
#include "util.h"
#include "cr_options.h"
#include "imgset.h"

View file

@ -16,6 +16,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include "asm/int.h"
#include "xmalloc.h"
#include "irmap.h"
#include "mount.h"

View file

@ -2,7 +2,7 @@
#include <stdlib.h>
#include <sys/syscall.h>
#include "asm/types.h"
#include "asm/int.h"
#include "rbtree.h"
#include "util.h"
#include "kcmp-ids.h"

View file

@ -8,6 +8,7 @@
#include <errno.h>
#include <sys/syscall.h>
#include "asm/int.h"
#include "log.h"
#include "bug.h"
#include "kerndat.h"
@ -15,7 +16,6 @@
#include "mem.h"
#include "compiler.h"
#include "sysctl.h"
#include "asm/types.h"
#include "cr_options.h"
#include "util.h"
#include "lsm.h"

View file

@ -7,6 +7,7 @@
#include <string.h>
#include <unistd.h>
#include "asm/int.h"
#include "libnetlink.h"
#include "util.h"

View file

@ -12,8 +12,9 @@
#include <fcntl.h>
#include "asm/int.h"
#include "asm/page.h"
#include "compiler.h"
#include "asm/types.h"
#include "util.h"
#include "cr_options.h"
#include "servicefd.h"

View file

@ -5,6 +5,7 @@
#include <sys/types.h>
#include <unistd.h>
#include "asm/int.h"
#include "config.h"
#include "pstree.h"
#include "util.h"

View file

@ -4,6 +4,7 @@
#include <errno.h>
#include <fcntl.h>
#include "types.h"
#include "cr_options.h"
#include "servicefd.h"
#include "mem.h"

View file

@ -11,8 +11,8 @@
#include <sys/wait.h>
#include <sched.h>
#include "asm/int.h"
#include "cr_options.h"
#include "asm/types.h"
#include "util.h"
#include "util-pie.h"
#include "log.h"

View file

@ -14,6 +14,7 @@
#include <limits.h>
#include <errno.h>
#include "asm/page.h"
#include "rst-malloc.h"
#include "cr_options.h"
#include "imgset.h"

View file

@ -5,7 +5,7 @@
#include <sys/wait.h>
#include <stdlib.h>
#include "asm/types.h"
#include "asm/int.h"
#include "util.h"
#include "common/list.h"
#include "files.h"

View file

@ -4,6 +4,8 @@
#undef LOG_PREFIX
#define LOG_PREFIX "page-pipe: "
#include "asm/int.h"
#include "asm/page.h"
#include "config.h"
#include "util.h"
#include "page-pipe.h"

View file

@ -8,6 +8,7 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include "types.h"
#include "cr_options.h"
#include "servicefd.h"
#include "image.h"

View file

@ -3,6 +3,7 @@
#include <unistd.h>
#include <linux/falloc.h>
#include "types.h"
#include "image.h"
#include "cr_options.h"
#include "servicefd.h"

View file

@ -5,6 +5,7 @@
#include <sys/wait.h>
#include <sys/mman.h>
#include "types.h"
#include "protobuf.h"
#include "images/sa.pb-c.h"
#include "images/timer.pb-c.h"

View file

@ -1,6 +1,8 @@
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include "asm/int.h"
#include "mount.h"
#include "path.h"
#include "bug.h"

View file

@ -10,7 +10,6 @@
#include <sys/mman.h>
#include "asm/string.h"
#include "asm/types.h"
#include "syscall.h"
#include "image.h"

View file

@ -8,6 +8,7 @@
#include <sys/ioctl.h>
#include "syscall.h"
#include "types.h"
#include "parasite.h"
#include "config.h"
#include "fcntl.h"
@ -20,7 +21,6 @@
#include <string.h>
#include "asm/types.h"
#include "asm/parasite.h"
#include "asm/restorer.h"

View file

@ -19,7 +19,6 @@
#include "compiler.h"
#include "asm/string.h"
#include "asm/types.h"
#include "syscall.h"
#include "signal.h"
#include "config.h"

View file

@ -1,13 +1,13 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/mount.h>
#include <stdbool.h>
#include <errno.h>
#include "asm/int.h"
#include "compiler.h"
#include "log.h"
#include "asm/string.h"
#include "asm/types.h"
#ifdef CR_NOGLIBC
# include "syscall.h"

View file

@ -11,7 +11,6 @@
#include <sys/mman.h>
#include "asm/string.h"
#include "asm/types.h"
#include "image.h"
#include "util-vdso.h"

View file

@ -3,10 +3,11 @@
#include <sys/mount.h>
#include <unistd.h>
#include <errno.h>
#include <stdbool.h>
#include "asm/int.h"
#include "compiler.h"
#include "asm/string.h"
#include "asm/types.h"
#include "fcntl.h"
#include "log.h"
#include "util-pie.h"

View file

@ -10,7 +10,7 @@
#include <ctype.h>
#include <linux/fs.h>
#include "asm/types.h"
#include "asm/int.h"
#include "common/list.h"
#include "util.h"
#include "mount.h"

View file

@ -8,8 +8,6 @@
#include <arpa/inet.h>
#include <ctype.h>
#include "asm/types.h"
#include "compiler.h"
#include "log.h"

View file

@ -11,7 +11,6 @@
#include "image.h"
#include "servicefd.h"
#include "compiler.h"
#include "asm/types.h"
#include "log.h"
#include "rst-malloc.h"
#include "string.h"

View file

@ -3,6 +3,7 @@
#include <stdlib.h>
#include <sched.h>
#include "types.h"
#include "cr_options.h"
#include "pstree.h"
#include "rst-malloc.h"

View file

@ -14,8 +14,8 @@
#include <sys/resource.h>
#include <sys/wait.h>
#include "asm/int.h"
#include "compiler.h"
#include "asm/types.h"
#include "util.h"
#include "ptrace.h"
#include "pid.h"

View file

@ -2,9 +2,9 @@
#include <stdbool.h>
#include <sys/mman.h>
#include "asm/page.h"
#include "rst-malloc.h"
#include "bug.h"
#include "asm/types.h"
struct rst_mem_type_s {
bool remapable;

View file

@ -9,6 +9,7 @@
#include <sys/wait.h>
#include <time.h>
#include "asm/int.h"
#include "compiler.h"
#include "cr_options.h"
#include "cr-errno.h"

View file

@ -19,6 +19,7 @@
#include "syscall-codes.h"
#include "asm/bitops.h"
#include "criu-log.h"
#include "asm/page.h"
#include "protobuf.h"
#include "images/pagemap.pb-c.h"

View file

@ -3,7 +3,6 @@
#include <sys/signalfd.h>
#include "compiler.h"
#include "asm/types.h"
#include "signalfd.h"
#include "fdinfo.h"
#include "imgset.h"

View file

@ -11,7 +11,6 @@
#include <string.h>
#include <stdlib.h>
#include "asm/types.h"
#include "libnetlink.h"
#include "cr_options.h"
#include "imgset.h"

View file

@ -5,7 +5,6 @@
#include <libnl3/netlink/msg.h>
#include <unistd.h>
#include <string.h>
#include "asm/types.h"
#include "imgset.h"
#include "files.h"
#include "sockets.h"

View file

@ -10,7 +10,6 @@
#include <sys/socket.h>
#include <sys/sendfile.h>
#include "asm/types.h"
#include "common/list.h"
#include "imgset.h"
#include "image.h"

View file

@ -8,11 +8,11 @@
#include <sched.h>
#include <netinet/in.h>
#include "asm/int.h"
#include "cr_options.h"
#include "util.h"
#include "common/list.h"
#include "log.h"
#include "asm/types.h"
#include "files.h"
#include "sockets.h"
#include "sk-inet.h"

View file

@ -10,7 +10,6 @@
#include <stdlib.h>
#include <dlfcn.h>
#include "asm/types.h"
#include "libnetlink.h"
#include "cr_options.h"
#include "imgset.h"

View file

@ -9,6 +9,8 @@
#include <string.h>
#include <netinet/in.h>
#include "asm/int.h"
#include "asm/bitops.h"
#include "libnetlink.h"
#include "sockets.h"
#include "unix_diag.h"

View file

@ -7,7 +7,6 @@
#include <sys/wait.h>
#include <sched.h>
#include "asm/types.h"
#include "namespaces.h"
#include "sysctl.h"
#include "util.h"

View file

@ -5,6 +5,7 @@
#include <sys/timerfd.h>
#include <sys/ioctl.h>
#include "asm/int.h"
#include "protobuf.h"
#include "images/timerfd.pb-c.h"

View file

@ -12,9 +12,8 @@
#include <termios.h>
#include <linux/major.h>
#include "types.h"
#include "compiler.h"
#include "asm/types.h"
#include "crtools.h"
#include "files.h"
#include "cr_options.h"

View file

@ -35,8 +35,10 @@
#include <sched.h>
#include <ctype.h>
#include "asm/int.h"
#include "asm/bitops.h"
#include "asm/page.h"
#include "compiler.h"
#include "asm/types.h"
#include "common/list.h"
#include "util.h"
#include "rst-malloc.h"

View file

@ -4,6 +4,7 @@
#include <string.h>
#include <sched.h>
#include "asm/int.h"
#include "util.h"
#include "namespaces.h"
#include "sysctl.h"

View file

@ -9,7 +9,6 @@
#include <sys/stat.h>
#include <sys/mman.h>
#include "asm/types.h"
#include "asm/parasite-syscall.h"
#include "parasite-syscall.h"