git: b0aaf8beb126 - main - Rename VM_LAST to more appropriate VM_GUEST_LAST
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Mar 2024 10:49:15 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=b0aaf8beb12609f8a94575ee21f849474bf7e03a
commit b0aaf8beb12609f8a94575ee21f849474bf7e03a
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2024-03-18 10:48:10 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2024-03-18 10:49:09 +0000
Rename VM_LAST to more appropriate VM_GUEST_LAST
NFC
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/kern/subr_param.c | 2 +-
sys/sys/systm.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index caa30b56b582..2a721c3c113f 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -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");
/*
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 17a1c814cf75..435e6b61c904 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -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 */