diff --git a/cr-dump.c b/cr-dump.c index d1a4598e5..1bd2d90a9 100644 --- a/cr-dump.c +++ b/cr-dump.c @@ -15,6 +15,7 @@ #include #include +#include #include diff --git a/files.c b/files.c index 1aecd6fd5..c7eee1de3 100644 --- a/files.c +++ b/files.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "crtools.h" diff --git a/include/parasite-syscall.h b/include/parasite-syscall.h index d8e1259ee..6cf844e1c 100644 --- a/include/parasite-syscall.h +++ b/include/parasite-syscall.h @@ -1,14 +1,6 @@ #ifndef PARASITE_SYSCALL_H_ #define PARASITE_SYSCALL_H_ -#include -#include - -#include "compiler.h" -#include "types.h" -#include "list.h" -#include "crtools.h" - #define BUILTIN_SYSCALL_SIZE 8 /* parasite control block */ @@ -29,6 +21,9 @@ struct parasite_ctl { void * addr_args; /* address for arguments */ }; +struct cr_fdset; +struct list_head; + extern int parasite_dump_sigacts_seized(struct parasite_ctl *ctl, struct cr_fdset *cr_fdset); extern int parasite_dump_itimers_seized(struct parasite_ctl *ctl, struct cr_fdset *cr_fdset); diff --git a/include/parasite.h b/include/parasite.h index 23773d141..37965053b 100644 --- a/include/parasite.h +++ b/include/parasite.h @@ -8,11 +8,8 @@ #ifndef __ASSEMBLY__ -#include #include -#include -#include "compiler.h" #include "image.h" #include "sockets.h" diff --git a/include/syscall-types.h b/include/syscall-types.h index 918c0fc6f..a4f0a008d 100644 --- a/include/syscall-types.h +++ b/include/syscall-types.h @@ -8,13 +8,10 @@ #ifndef SYSCALL_TYPES_H__ #define SYSCALL_TYPES_H__ -#include #include #include -#include #include "types.h" -#include "compiler.h" #ifndef CONFIG_X86_64 # error x86-32 bit mode not yet implemented diff --git a/include/util.h b/include/util.h index 714bfddff..851131ade 100644 --- a/include/util.h +++ b/include/util.h @@ -4,8 +4,6 @@ /* * Some bits are stolen from perf and kvm tools */ -#include -#include #include #include #include diff --git a/kcmp-ids.c b/kcmp-ids.c index 028c774cf..6823586e1 100644 --- a/kcmp-ids.c +++ b/kcmp-ids.c @@ -1,4 +1,5 @@ #include +#include #include "types.h" #include "rbtree.h" #include "util.h" diff --git a/namespaces.c b/namespaces.c index b925b7f0e..e3121ca68 100644 --- a/namespaces.c +++ b/namespaces.c @@ -1,6 +1,7 @@ #include #include #include +#include #include "util.h" #include "syscall.h" #include "uts_ns.h" diff --git a/netfilter.c b/netfilter.c index e827c43c0..eebde5dff 100644 --- a/netfilter.c +++ b/netfilter.c @@ -3,6 +3,7 @@ #include #include #include +#include #include "types.h" #include "util.h" diff --git a/parasite-syscall.c b/parasite-syscall.c index 64f6ab714..72a5a626e 100644 --- a/parasite-syscall.c +++ b/parasite-syscall.c @@ -2,6 +2,7 @@ #include #include +#include #include "syscall.h" #include "ptrace.h" @@ -9,6 +10,10 @@ #include "parasite-syscall.h" #include "parasite-blob.h" #include "parasite.h" +#include "crtools.h" + +#include +#include #ifdef CONFIG_X86_64 static const char code_syscall[] = {0x0f, 0x05, 0xcc, 0xcc, diff --git a/parasite.c b/parasite.c index fb1ddb750..9aa68bd8e 100644 --- a/parasite.c +++ b/parasite.c @@ -4,6 +4,8 @@ #include "parasite.h" #include "util.h" +#include + /* * Some notes on parasite code overall. There are a few * calling convention specfics the caller must follow diff --git a/pipes.c b/pipes.c index ebabca105..85f4bd709 100644 --- a/pipes.c +++ b/pipes.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "crtools.h" #include "image.h" diff --git a/proc_parse.c b/proc_parse.c index e6c210209..6ca23b9d4 100644 --- a/proc_parse.c +++ b/proc_parse.c @@ -16,6 +16,8 @@ #include "proc_parse.h" +#include + struct buffer { char buf[PAGE_SIZE]; char end; /* '\0' */ diff --git a/shmem.c b/shmem.c index fea697ffc..dccc5c781 100644 --- a/shmem.c +++ b/shmem.c @@ -1,5 +1,6 @@ #include #include +#include #include "shmem.h" #include "image.h" diff --git a/sk-inet.c b/sk-inet.c index a193fed6f..d6abd7ea8 100644 --- a/sk-inet.c +++ b/sk-inet.c @@ -3,6 +3,8 @@ #include #include #include +#include +#include #include "types.h" #include "libnetlink.h" diff --git a/sk-tcp.c b/sk-tcp.c index c2e3f5a3d..dd31144f1 100644 --- a/sk-tcp.c +++ b/sk-tcp.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "crtools.h" #include "util.h" diff --git a/sk-unix.c b/sk-unix.c index a6d109e54..7950b8447 100644 --- a/sk-unix.c +++ b/sk-unix.c @@ -5,6 +5,7 @@ #include #include #include +#include #include "types.h" #include "libnetlink.h" diff --git a/sockets.c b/sockets.c index 950333475..df944f33e 100644 --- a/sockets.c +++ b/sockets.c @@ -1,25 +1,10 @@ #include #include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include "types.h" #include "libnetlink.h" #include "sockets.h" -#include "sk-queue.h" #include "unix_diag.h" -#include "image.h" -#include "crtools.h" -#include "util.h" #include "inet_diag.h" #include "files.h" #include "util-net.h" diff --git a/sysctl.c b/sysctl.c index 51255a9a9..a7bb6e3a2 100644 --- a/sysctl.c +++ b/sysctl.c @@ -1,6 +1,8 @@ #include #include #include +#include +#include #include "types.h" #include "sysctl.h" diff --git a/uts_ns.c b/uts_ns.c index b73915850..ff89e3439 100644 --- a/uts_ns.c +++ b/uts_ns.c @@ -1,6 +1,7 @@ #include #include #include +#include #include "util.h" #include "crtools.h"