hypervisor: kvm: aarch64: rename offset__of to offset_of

The double underscore made it different from how other projects would
name this particular macro.

No functional change.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2022-12-16 15:56:56 +00:00
committed by Rob Bradford
parent 1b0f35e42d
commit cd83d258b8
3 changed files with 28 additions and 28 deletions

View File

@@ -2629,7 +2629,7 @@ mod tests {
kvm_regs, kvm_vcpu_init, user_pt_regs, KVM_REG_ARM64, KVM_REG_ARM64_SYSREG,
KVM_REG_ARM_CORE, KVM_REG_SIZE_U64,
};
use hypervisor::{arm64_core_reg_id, offset__of};
use hypervisor::{arm64_core_reg_id, offset_of};
use std::mem;
#[test]
@@ -2666,7 +2666,7 @@ mod tests {
#[test]
fn test_is_system_register() {
let offset = offset__of!(user_pt_regs, pc);
let offset = offset_of!(user_pt_regs, pc);
let regid = arm64_core_reg_id!(KVM_REG_SIZE_U64, offset);
assert!(!is_system_register(regid));
let regid = KVM_REG_ARM64 | KVM_REG_SIZE_U64 | KVM_REG_ARM64_SYSREG as u64;