aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_kvm_ppc64.h
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-04-24 09:20:16 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-04-24 08:05:31 +0000
commit40036e99fc252de1dcaf9cc72a33a34e39b91b65 (patch)
tree0a9e1bcda99e39444a192abd14332d51920cd326 /executor/common_kvm_ppc64.h
parent84ca98f9e1bb10f2e754c5fb8e5cc9c58ac6c276 (diff)
all: format with clang-format-20
The tests began to fail after pushing the new env container.
Diffstat (limited to 'executor/common_kvm_ppc64.h')
-rw-r--r--executor/common_kvm_ppc64.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/common_kvm_ppc64.h b/executor/common_kvm_ppc64.h
index 82d781772..c154d7092 100644
--- a/executor/common_kvm_ppc64.h
+++ b/executor/common_kvm_ppc64.h
@@ -62,7 +62,7 @@
#define PATB_HR (1UL << 63)
#define PRTB_MASK 0x0ffffffffffff000UL
-#define ALIGNUP(p, q) ((void*)(((unsigned long)(p) + (q)-1) & ~((q)-1)))
+#define ALIGNUP(p, q) ((void*)(((unsigned long)(p) + (q) - 1) & ~((q) - 1)))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#ifndef KVM_REG_PPC_DEC_EXPIRY
@@ -387,8 +387,8 @@ static volatile long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volat
if (kvmppc_set_one_reg(cpufd, KVM_REG_PPC_PID, &pid))
return -1;
- // Hypercalls need to be enable so we enable them all here to
- // allow fuzzing
+ // Hypercalls need to be enable so we enable them all here to
+ // allow fuzzing
#define MAX_HCALL 0x450
for (unsigned hcall = 4; hcall < MAX_HCALL; hcall += 4)
kvm_vm_enable_cap(vmfd, KVM_CAP_PPC_ENABLE_HCALL, hcall, 1);