Rename VM_LAST to more appropriate VM_GUEST_LAST

NFC

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2024-03-18 10:48:10 +00:00
parent 85c3ef77cc
commit b0aaf8beb1
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ static const char *const vm_guest_sysctl_names[] = {
[VM_GUEST_VBOX] = "vbox",
[VM_GUEST_PARALLELS] = "parallels",
};
_Static_assert(nitems(vm_guest_sysctl_names) == VM_LAST,
_Static_assert(nitems(vm_guest_sysctl_names) == VM_GUEST_LAST,
"new vm guest type not added to vm_guest_sysctl_names");
/*

View File

@ -79,7 +79,7 @@ extern u_long maxphys; /* max raw I/O transfer size */
*/
enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV,
VM_GUEST_VMWARE, VM_GUEST_KVM, VM_GUEST_BHYVE, VM_GUEST_VBOX,
VM_GUEST_PARALLELS, VM_LAST };
VM_GUEST_PARALLELS, VM_GUEST_LAST };
#endif /* KERNEL */