Skip to content

Commit

Permalink
Indent with clang-format-12
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Jul 18, 2024
1 parent fb87e66 commit 218f9e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 5 additions & 2 deletions src/arch/arm64/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,11 @@ static int generate_fdt(vm_t *v)
/* Create /intr node: The interrupt controller */
__FDT(begin_node, "intr");
uint64_t gic_reg[] = {
cpu_to_fdt64(ARM_GIC_DIST_BASE), cpu_to_fdt64(ARM_GIC_DIST_SIZE),
cpu_to_fdt64(ARM_GIC_REDIST_CPUI_BASE), cpu_to_fdt64(ARM_GIC_REDIST_CPUI_SIZE)};
cpu_to_fdt64(ARM_GIC_DIST_BASE),
cpu_to_fdt64(ARM_GIC_DIST_SIZE),
cpu_to_fdt64(ARM_GIC_REDIST_CPUI_BASE),
cpu_to_fdt64(ARM_GIC_REDIST_CPUI_SIZE),
};
if (priv->gic_type == IRQCHIP_TYPE_GIC_V3)
__FDT(property_string, "compatible", "arm,gic-v3");
else
Expand Down
7 changes: 2 additions & 5 deletions src/arch/x86/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,8 @@ static void vm_init_cpu_id(vm_t *v)
#define MSR_IA32_MISC_ENABLE_FAST_STRING \
(1ULL << MSR_IA32_MISC_ENABLE_FAST_STRING_BIT)

#define KVM_MSR_ENTRY(_index, _data) \
(struct kvm_msr_entry) \
{ \
.index = _index, .data = _data \
}
#define KVM_MSR_ENTRY(_index, _data) \
(struct kvm_msr_entry) { .index = _index, .data = _data }
static void vm_init_msrs(vm_t *v)
{
int ndx = 0;
Expand Down

0 comments on commit 218f9e5

Please sign in to comment.