Commit 3564a4d0 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

include/common: Move bug.h in

travis-ci: success for Common headers
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 9e2c8fae
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "cr-service.h" #include "cr-service.h"
#include "action-scripts.h" #include "action-scripts.h"
#include "pstree.h" #include "pstree.h"
#include "bug.h" #include "common/bug.h"
static const char *action_names[ACT_MAX] = { static const char *action_names[ACT_MAX] = {
[ ACT_PRE_DUMP ] = "pre-dump", [ ACT_PRE_DUMP ] = "pre-dump",
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "syscall.h" #include "syscall.h"
#include "parasite-vdso.h" #include "parasite-vdso.h"
#include "log.h" #include "log.h"
#include "bug.h" #include "common/bug.h"
#ifdef LOG_PREFIX #ifdef LOG_PREFIX
# undef LOG_PREFIX # undef LOG_PREFIX
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "syscall.h" #include "syscall.h"
#include "parasite-vdso.h" #include "parasite-vdso.h"
#include "log.h" #include "log.h"
#include "bug.h" #include "common/bug.h"
#ifdef LOG_PREFIX #ifdef LOG_PREFIX
# undef LOG_PREFIX # undef LOG_PREFIX
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "syscall.h" #include "syscall.h"
#include "parasite-vdso.h" #include "parasite-vdso.h"
#include "log.h" #include "log.h"
#include "bug.h" #include "common/bug.h"
#ifdef LOG_PREFIX #ifdef LOG_PREFIX
# undef LOG_PREFIX # undef LOG_PREFIX
......
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
#include <sys/uio.h> #include <sys/uio.h>
#include <errno.h> #include <errno.h>
#include "bug.h" #include "int.h"
#include "log.h" #include "log.h"
#include "common/bug.h"
#include "bfd.h" #include "bfd.h"
#include "common/list.h" #include "common/list.h"
#include "util.h" #include "util.h"
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "util.h" #include "util.h"
#include "common/list.h" #include "common/list.h"
#include "log.h" #include "log.h"
#include "bug.h" #include "common/bug.h"
#undef LOG_PREFIX #undef LOG_PREFIX
#define LOG_PREFIX "cg-prop: " #define LOG_PREFIX "cg-prop: "
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
#include "fcntl.h" #include "fcntl.h"
#include "magic.h" #include "magic.h"
#include "bfd.h" #include "bfd.h"
#include "bug.h" #include "log.h"
#include "common/bug.h"
#ifdef _ARCH_PPC64 #ifdef _ARCH_PPC64
#define PAGE_IMAGE_SIZE 65536 #define PAGE_IMAGE_SIZE 65536
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
#define __CR_IMGSET_H__ #define __CR_IMGSET_H__
#include "image-desc.h" #include "image-desc.h"
#include "bug.h" #include "log.h"
#include "common/bug.h"
#include "image.h" #include "image.h"
struct cr_imgset { struct cr_imgset {
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
#include <errno.h> #include <errno.h>
#include "atomic.h" #include "atomic.h"
#include "bug.h" #include "log.h"
#include "common/bug.h"
#ifdef CR_NOGLIBC #ifdef CR_NOGLIBC
# include "syscall.h" # include "syscall.h"
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "int.h" #include "int.h"
#include "common/compiler.h" #include "common/compiler.h"
#include "xmalloc.h" #include "xmalloc.h"
#include "bug.h" #include "common/bug.h"
#include "log.h" #include "log.h"
#include "err.h" #include "err.h"
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
#include "int.h" #include "int.h"
#include "mount.h" #include "mount.h"
#include "path.h" #include "path.h"
#include "bug.h" #include "log.h"
#include "common/bug.h"
char *cut_root_for_bind(char *target_root, char *source_root) char *cut_root_for_bind(char *target_root, char *source_root)
{ {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "parasite-vdso.h" #include "parasite-vdso.h"
#include "vma.h" #include "vma.h"
#include "log.h" #include "log.h"
#include "bug.h" #include "common/bug.h"
#ifdef LOG_PREFIX #ifdef LOG_PREFIX
# undef LOG_PREFIX # undef LOG_PREFIX
......
...@@ -14,9 +14,11 @@ ...@@ -14,9 +14,11 @@
#include "asm-generic/int.h" #include "asm-generic/int.h"
#include "log.h"
#include "common/compiler.h" #include "common/compiler.h"
#include "piegen/uapi/types.h" #include "piegen/uapi/types.h"
#include "bug.h" #include "common/bug.h"
__maybe_unused void elf_relocs_apply(void *mem, void *vbase, size_t size, elf_reloc_t *elf_relocs, size_t nr_relocs) __maybe_unused void elf_relocs_apply(void *mem, void *vbase, size_t size, elf_reloc_t *elf_relocs, size_t nr_relocs)
{ {
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "util-pie.h" #include "util-pie.h"
#include "fcntl.h" #include "fcntl.h"
#include "bug.h" #include "common/bug.h"
static void scm_fdset_init_chunk(struct scm_fdset *fdset, int nr_fds) static void scm_fdset_init_chunk(struct scm_fdset *fdset, int nr_fds)
{ {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "util-vdso.h" #include "util-vdso.h"
#include "vma.h" #include "vma.h"
#include "log.h" #include "log.h"
#include "bug.h" #include "common/bug.h"
#ifdef LOG_PREFIX #ifdef LOG_PREFIX
# undef LOG_PREFIX # undef LOG_PREFIX
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
#include "page.h" #include "page.h"
#include "rst-malloc.h" #include "rst-malloc.h"
#include "bug.h" #include "log.h"
#include "common/bug.h"
struct rst_mem_type_s { struct rst_mem_type_s {
bool remapable; bool remapable;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "imgset.h" #include "imgset.h"
#include "util.h" #include "util.h"
#include "log.h" #include "log.h"
#include "bug.h" #include "common/bug.h"
#undef LOG_PREFIX #undef LOG_PREFIX
#define LOG_PREFIX "timerfd: " #define LOG_PREFIX "timerfd: "
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#include <stdbool.h> #include <stdbool.h>
#include "common/compiler.h" #include "common/compiler.h"
#include "log.h"
#ifndef BUG_ON_HANDLER #ifndef BUG_ON_HANDLER
...@@ -16,6 +15,9 @@ ...@@ -16,6 +15,9 @@
#endif #endif
#ifndef __clang_analyzer__ #ifndef __clang_analyzer__
# ifndef pr_err
# error pr_err macro must be defined
# endif
# define BUG_ON_HANDLER(condition) \ # define BUG_ON_HANDLER(condition) \
do { \ do { \
if ((condition)) { \ if ((condition)) { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment