ci: Fix code indent

This patch contains auto-generated changes from `make indent`

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
Radostin Stoyanov 2022-06-21 09:08:21 +01:00 committed by Andrei Vagin
parent f29d51560e
commit 46ec6749fa
6 changed files with 8 additions and 10 deletions

View file

@ -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;

View file

@ -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

View file

@ -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)

View file

@ -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)
{
}

View file

@ -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);

View file

@ -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>