The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=002c50ea23b99b415b1b392d3dd5ea6223c3a74c

commit 002c50ea23b99b415b1b392d3dd5ea6223c3a74c
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-01-19 16:25:50 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-01-19 16:45:40 +0000

    amd64/vmm: remove unused static function vcpu_state2str()
    
    It is guarded by #ifdef KTR, so the warning does not show up under usual
    kernel configs.
    
    Fixes:  ed85203fb7a0334041db6da07e45ddda4caef13d
    Sponsored by:   The FreeBSD Foundation
    Differential revision:  https://reviews.freebsd.org/D54781
---
 sys/amd64/vmm/vmm.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c
index 6312fafa2975..050cc93d2605 100644
--- a/sys/amd64/vmm/vmm.c
+++ b/sys/amd64/vmm/vmm.c
@@ -204,26 +204,6 @@ VMM_STAT(VMEXIT_USERSPACE, "number of vm exits handled in 
userspace");
 VMM_STAT(VMEXIT_RENDEZVOUS, "number of times rendezvous pending at exit");
 VMM_STAT(VMEXIT_EXCEPTION, "number of vm exits due to exceptions");
 
-#ifdef KTR
-static const char *
-vcpu_state2str(enum vcpu_state state)
-{
-
-       switch (state) {
-       case VCPU_IDLE:
-               return ("idle");
-       case VCPU_FROZEN:
-               return ("frozen");
-       case VCPU_RUNNING:
-               return ("running");
-       case VCPU_SLEEPING:
-               return ("sleeping");
-       default:
-               return ("unknown");
-       }
-}
-#endif
-
 static void
 vcpu_cleanup(struct vcpu *vcpu, bool destroy)
 {

Reply via email to