diff options
author | Radostin Stoyanov <rstoyanov@fedoraproject.org> | 2022-06-21 11:08:21 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2022-06-22 20:20:33 +0300 |
commit | 46ec6749faa91689da0de8439540607c15696b12 (patch) | |
tree | 651dec821fbdeef3632925d1a1881acdcbf6f4d8 | |
parent | f29d51560ee5ac3fb11ab8e4034938ff21242f17 (diff) |
ci: Fix code indent
This patch contains auto-generated changes from `make indent`
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
-rw-r--r-- | criu/arch/x86/cpu.c | 2 | ||||
-rw-r--r-- | criu/arch/x86/crtools.c | 2 | ||||
-rw-r--r-- | criu/cr-check.c | 2 | ||||
-rw-r--r-- | criu/unittest/mock.c | 6 | ||||
-rw-r--r-- | plugins/amdgpu/amdgpu_plugin.c | 4 | ||||
-rw-r--r-- | test/zdtm/static/inotify_system.c | 2 |
6 files changed, 8 insertions, 10 deletions
diff --git a/criu/arch/x86/cpu.c b/criu/arch/x86/cpu.c index b3a7ca636..dfa31569f 100644 --- a/criu/arch/x86/cpu.c +++ b/criu/arch/x86/cpu.c @@ -78,7 +78,7 @@ int cpu_dump_cpuinfo(void) cpu_info.n_x86_entry = 1; cpu_x86_info.vendor_id = (rt_cpu_info.x86_vendor == X86_VENDOR_INTEL) ? CPUINFO_X86_ENTRY__VENDOR__INTEL : - CPUINFO_X86_ENTRY__VENDOR__AMD; + CPUINFO_X86_ENTRY__VENDOR__AMD; cpu_x86_info.cpu_family = rt_cpu_info.x86_family; cpu_x86_info.model = rt_cpu_info.x86_model; diff --git a/criu/arch/x86/crtools.c b/criu/arch/x86/crtools.c index f177b9e7b..d10e51e48 100644 --- a/criu/arch/x86/crtools.c +++ b/criu/arch/x86/crtools.c @@ -409,7 +409,7 @@ int restore_fpu(struct rt_sigframe *sigframe, CoreEntry *core) { fpu_state_t *fpu_state = core_is_compat(core) ? &sigframe->compat.fpu_state : &sigframe->native.fpu_state; struct xsave_struct *x = core_is_compat(core) ? (void *)&fpu_state->fpu_state_ia32.xsave : - (void *)&fpu_state->fpu_state_64.xsave; + (void *)&fpu_state->fpu_state_64.xsave; /* * If no FPU information provided -- we're restoring diff --git a/criu/cr-check.c b/criu/cr-check.c index a172806f5..f589a91da 100644 --- a/criu/cr-check.c +++ b/criu/cr-check.c @@ -1291,7 +1291,7 @@ static int check_net_diag_raw(void) { check_sock_diag(); return (socket_test_collect_bit(AF_INET, IPPROTO_RAW) && socket_test_collect_bit(AF_INET6, IPPROTO_RAW)) ? 0 : - -1; + -1; } static int check_pidfd_store(void) diff --git a/criu/unittest/mock.c b/criu/unittest/mock.c index 0151873dc..e517720e4 100644 --- a/criu/unittest/mock.c +++ b/criu/unittest/mock.c @@ -103,8 +103,7 @@ void set_cr_errno(int new_err) { } -struct ns_desc { -}; +struct ns_desc {}; struct ns_desc user_ns_desc; int switch_ns(int pid, struct ns_desc *nd, int *rst) { @@ -118,8 +117,7 @@ int run_scripts(enum script_actions act) } typedef struct VmaEntry VmaEntry; -struct VmaEntry { -}; +struct VmaEntry {}; void vma_entry__init(VmaEntry *message) { } diff --git a/plugins/amdgpu/amdgpu_plugin.c b/plugins/amdgpu/amdgpu_plugin.c index e48c8988b..0a55e34a2 100644 --- a/plugins/amdgpu/amdgpu_plugin.c +++ b/plugins/amdgpu/amdgpu_plugin.c @@ -873,7 +873,7 @@ void *dump_bo_contents(void *_thread_data) } max_copy_size = (gpu_info.family_id >= AMDGPU_FAMILY_AI) ? SDMA_LINEAR_COPY_MAX_SIZE : - SDMA_LINEAR_COPY_MAX_SIZE - 1; + SDMA_LINEAR_COPY_MAX_SIZE - 1; for (i = 0; i < thread_data->num_of_bos; i++) { if (bo_buckets[i].gpu_id == thread_data->gpu_id && @@ -967,7 +967,7 @@ void *restore_bo_contents(void *_thread_data) } max_copy_size = (gpu_info.family_id >= AMDGPU_FAMILY_AI) ? SDMA_LINEAR_COPY_MAX_SIZE : - SDMA_LINEAR_COPY_MAX_SIZE - 1; + SDMA_LINEAR_COPY_MAX_SIZE - 1; snprintf(img_path, sizeof(img_path), IMG_PAGES_FILE, thread_data->id, thread_data->gpu_id); bo_contents_fp = open_img_file(img_path, false, &image_size); diff --git a/test/zdtm/static/inotify_system.c b/test/zdtm/static/inotify_system.c index 141476415..079d4b161 100644 --- a/test/zdtm/static/inotify_system.c +++ b/test/zdtm/static/inotify_system.c @@ -57,7 +57,7 @@ const char *inot_dir = "./inotify.no_del"; (MASK == IN_UNMOUNT) ? "IN_UNMOUNT" : \ (MASK == IN_Q_OVERFLOW) ? "IN_Q_OVERFLOW" : \ (MASK == IN_IGNORED) ? "IN_IGNORED" : \ - "UNKNOWN" + "UNKNOWN" #include <unistd.h> #include <fcntl.h> |