mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
headers: Change "../protobuf/" to "protobuf/"
No need to walk up the directories if we need to include protobuf file. This was always a bad use of ability to walk the filesystem from other headers. Same time we don't need -I$(SRC_DIR)/protobuf/ in general makefile anymore. [xemul: Small fixlet in head Makefile, since patch it out-of-order] Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
ef4783a646
commit
fdfef4b485
2
Makefile
2
Makefile
@@ -59,7 +59,7 @@ ARCH_DIR := $(SRC_DIR)/arch/$(ARCH)
|
||||
|
||||
$(if $(wildcard $(ARCH_DIR)),,$(error "The architecture $(ARCH) isn't supported"))
|
||||
|
||||
CFLAGS += -I$(SRC_DIR)/include -I$(SRC_DIR)/pie -I$(ARCH_DIR)
|
||||
CFLAGS += -I$(SRC_DIR)/include -I$(SRC_DIR)/pie -I$(ARCH_DIR) -I$(SRC_DIR)
|
||||
CFLAGS += -iquote $(ARCH_DIR)/include -fno-strict-aliasing
|
||||
|
||||
LIBS := -lrt -lpthread -lprotobuf-c
|
||||
|
@@ -6,8 +6,8 @@
|
||||
#include "ptrace.h"
|
||||
#include "asm/processor-flags.h"
|
||||
#include "protobuf.h"
|
||||
#include "../protobuf/core.pb-c.h"
|
||||
#include "../protobuf/creds.pb-c.h"
|
||||
#include "protobuf/core.pb-c.h"
|
||||
#include "protobuf/creds.pb-c.h"
|
||||
#include "parasite-syscall.h"
|
||||
#include "syscall.h"
|
||||
#include "log.h"
|
||||
|
@@ -2,7 +2,7 @@
|
||||
#define __CR_ASM_RESTORER_H__
|
||||
|
||||
#include "asm/types.h"
|
||||
#include "../protobuf/core.pb-c.h"
|
||||
#include "protobuf/core.pb-c.h"
|
||||
|
||||
/* Copied from the Linux kernel header arch/arm/include/asm/sigcontext.h */
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <signal.h>
|
||||
#include "../protobuf/core.pb-c.h"
|
||||
#include "protobuf/core.pb-c.h"
|
||||
|
||||
#include "asm/bitops.h"
|
||||
|
||||
|
@@ -6,8 +6,8 @@
|
||||
#include "ptrace.h"
|
||||
#include "asm/processor-flags.h"
|
||||
#include "protobuf.h"
|
||||
#include "../protobuf/core.pb-c.h"
|
||||
#include "../protobuf/creds.pb-c.h"
|
||||
#include "protobuf/core.pb-c.h"
|
||||
#include "protobuf/creds.pb-c.h"
|
||||
#include "parasite-syscall.h"
|
||||
#include "syscall.h"
|
||||
#include "log.h"
|
||||
|
@@ -2,7 +2,7 @@
|
||||
#define __CR_ASM_RESTORER_H__
|
||||
|
||||
#include "asm/types.h"
|
||||
#include "../protobuf/core.pb-c.h"
|
||||
#include "protobuf/core.pb-c.h"
|
||||
|
||||
struct pt_regs {
|
||||
unsigned long r15;
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "asm/bitops.h"
|
||||
|
||||
#include "../protobuf/core.pb-c.h"
|
||||
#include "protobuf/core.pb-c.h"
|
||||
|
||||
/* prctl */
|
||||
#define ARCH_SET_GS 0x1001
|
||||
|
@@ -10,7 +10,7 @@
|
||||
#include "image.h"
|
||||
#include "lock.h"
|
||||
|
||||
#include "../protobuf/vma.pb-c.h"
|
||||
#include "protobuf/vma.pb-c.h"
|
||||
|
||||
#define CR_FD_PERM (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH)
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#include "asm/types.h"
|
||||
#include "rbtree.h"
|
||||
|
||||
#include "../protobuf/fdinfo.pb-c.h"
|
||||
#include "protobuf/fdinfo.pb-c.h"
|
||||
|
||||
#define FD_PID_INVALID (-2U)
|
||||
#define FD_DESC_INVALID (-3U)
|
||||
|
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "crtools.h"
|
||||
#include "protobuf.h"
|
||||
#include "../protobuf/file-lock.pb-c.h"
|
||||
#include "protobuf/file-lock.pb-c.h"
|
||||
|
||||
#define FL_POSIX 1
|
||||
#define FL_FLOCK 2
|
||||
|
@@ -5,8 +5,8 @@
|
||||
#include "files.h"
|
||||
#include "image.h"
|
||||
|
||||
#include "../protobuf/regfile.pb-c.h"
|
||||
#include "../protobuf/ghost-file.pb-c.h"
|
||||
#include "protobuf/regfile.pb-c.h"
|
||||
#include "protobuf/ghost-file.pb-c.h"
|
||||
|
||||
struct cr_fdset;
|
||||
struct fd_parms;
|
||||
|
@@ -7,9 +7,9 @@
|
||||
#include "list.h"
|
||||
#include "image.h"
|
||||
|
||||
#include "../protobuf/fdinfo.pb-c.h"
|
||||
#include "../protobuf/fown.pb-c.h"
|
||||
#include "../protobuf/vma.pb-c.h"
|
||||
#include "protobuf/fdinfo.pb-c.h"
|
||||
#include "protobuf/fown.pb-c.h"
|
||||
#include "protobuf/vma.pb-c.h"
|
||||
|
||||
struct pstree_item;
|
||||
struct file_desc;
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#include "image.h"
|
||||
#include "util-net.h"
|
||||
|
||||
#include "../protobuf/vma.pb-c.h"
|
||||
#include "protobuf/vma.pb-c.h"
|
||||
|
||||
#define __head __used __section(.head.text)
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef __CR_PIPES_H__
|
||||
#define __CR_PIPES_H__
|
||||
|
||||
#include "../protobuf/pipe-data.pb-c.h"
|
||||
#include "protobuf/pipe-data.pb-c.h"
|
||||
|
||||
extern int collect_pipes(void);
|
||||
extern void mark_pipe_master(void);
|
||||
|
@@ -6,10 +6,10 @@
|
||||
#include "image.h"
|
||||
#include "list.h"
|
||||
|
||||
#include "../protobuf/eventfd.pb-c.h"
|
||||
#include "../protobuf/eventpoll.pb-c.h"
|
||||
#include "../protobuf/signalfd.pb-c.h"
|
||||
#include "../protobuf/fsnotify.pb-c.h"
|
||||
#include "protobuf/eventfd.pb-c.h"
|
||||
#include "protobuf/eventpoll.pb-c.h"
|
||||
#include "protobuf/signalfd.pb-c.h"
|
||||
#include "protobuf/fsnotify.pb-c.h"
|
||||
|
||||
#define PROC_TASK_COMM_LEN 32
|
||||
#define PROC_TASK_COMM_LEN_FMT "(%31s"
|
||||
|
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "list.h"
|
||||
#include "crtools.h"
|
||||
#include "../protobuf/core.pb-c.h"
|
||||
#include "protobuf/core.pb-c.h"
|
||||
|
||||
/*
|
||||
* That's the init process which usually inherit
|
||||
|
@@ -13,10 +13,10 @@
|
||||
#include "crtools.h"
|
||||
#include "fpu.h"
|
||||
|
||||
#include "../protobuf/mm.pb-c.h"
|
||||
#include "../protobuf/vma.pb-c.h"
|
||||
#include "../protobuf/creds.pb-c.h"
|
||||
#include "../protobuf/core.pb-c.h"
|
||||
#include "protobuf/mm.pb-c.h"
|
||||
#include "protobuf/vma.pb-c.h"
|
||||
#include "protobuf/creds.pb-c.h"
|
||||
#include "protobuf/core.pb-c.h"
|
||||
|
||||
struct task_restore_core_args;
|
||||
struct thread_restore_args;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef __CR_SHMEM_H__
|
||||
#define __CR_SHMEM_H__
|
||||
|
||||
#include "../protobuf/vma.pb-c.h"
|
||||
#include "protobuf/vma.pb-c.h"
|
||||
|
||||
int prepare_shmem_pid(int pid);
|
||||
int prepare_shmem_restore(void);
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#include "files.h"
|
||||
#include "list.h"
|
||||
#include "protobuf.h"
|
||||
#include "../protobuf/sk-inet.pb-c.h"
|
||||
#include "protobuf/sk-inet.pb-c.h"
|
||||
|
||||
#define INET_ADDR_LEN 40
|
||||
#ifndef TCP_REPAIR
|
||||
|
@@ -9,7 +9,7 @@
|
||||
#include "asm/types.h"
|
||||
|
||||
#include "protobuf.h"
|
||||
#include "../protobuf/sk-opts.pb-c.h"
|
||||
#include "protobuf/sk-opts.pb-c.h"
|
||||
|
||||
struct fdinfo_list_entry;
|
||||
struct sk_opts_entry;
|
||||
|
@@ -16,7 +16,7 @@
|
||||
#include "asm/types.h"
|
||||
#include "log.h"
|
||||
|
||||
#include "../protobuf/vma.pb-c.h"
|
||||
#include "protobuf/vma.pb-c.h"
|
||||
|
||||
#define PREF_SHIFT_OP(pref, op, size) ((size) op (pref ##BYTES_SHIFT))
|
||||
#define KBYTES_SHIFT 10
|
||||
|
@@ -1,4 +1,4 @@
|
||||
CFLAGS += -c -I$(SRC_DIR)/protobuf/ -I$(SRC_DIR)/syscall/
|
||||
CFLAGS += -c -I$(SRC_DIR)/syscall/
|
||||
CFLAGS += -fpie -Wa,--noexecstack -fno-strict-aliasing
|
||||
|
||||
GEN-OFFSETS := gen-offsets.sh
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include "lock.h"
|
||||
#include "restorer.h"
|
||||
|
||||
#include "creds.pb-c.h"
|
||||
#include "protobuf/creds.pb-c.h"
|
||||
|
||||
#include "asm/restorer.h"
|
||||
|
||||
|
Reference in New Issue
Block a user