git: 7214e0469234 - main - amd64/vmm: Remove an unused function

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 04 Nov 2025 14:36:07 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=7214e0469234d90edd6deda4b181cd4862a9ace0

commit 7214e0469234d90edd6deda4b181cd4862a9ace0
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-11-04 13:56:02 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-11-04 13:56:02 +0000

    amd64/vmm: Remove an unused function
    
    Reviewed by:    corvink, emaste
    MFC after:      2 weeks
    Sponsored by:   The FreeBSD Foundation
    Sponsored by:   Klara, Inc.
    Differential Revision:  https://reviews.freebsd.org/D53423
---
 sys/amd64/vmm/io/ppt.c | 7 -------
 sys/amd64/vmm/io/ppt.h | 6 ------
 2 files changed, 13 deletions(-)

diff --git a/sys/amd64/vmm/io/ppt.c b/sys/amd64/vmm/io/ppt.c
index 2cb459fb848f..6feac5dcbbed 100644
--- a/sys/amd64/vmm/io/ppt.c
+++ b/sys/amd64/vmm/io/ppt.c
@@ -335,13 +335,6 @@ ppt_teardown_msix(struct pptdev *ppt)
 	ppt->msix.num_msgs = 0;
 }
 
-int
-ppt_avail_devices(void)
-{
-
-	return (num_pptdevs);
-}
-
 int
 ppt_assigned_devices(struct vm *vm)
 {
diff --git a/sys/amd64/vmm/io/ppt.h b/sys/amd64/vmm/io/ppt.h
index f97c399564d7..9377f34d50e6 100644
--- a/sys/amd64/vmm/io/ppt.h
+++ b/sys/amd64/vmm/io/ppt.h
@@ -42,12 +42,6 @@ int	ppt_disable_msix(struct vm *vm, int bus, int slot, int func);
 int	ppt_assigned_devices(struct vm *vm);
 bool	ppt_is_mmio(struct vm *vm, vm_paddr_t gpa);
 
-/*
- * Returns the number of devices sequestered by the ppt driver for assignment
- * to virtual machines.
- */
-int	ppt_avail_devices(void);
-
 /*
  * The following functions should never be called directly.
  * Use 'vm_assign_pptdev()' and 'vm_unassign_pptdev()' instead.