Date: Tue, 18 Nov 2025 15:02:55 +0000 From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 10b2ebb5a368 - stable/15 - amd64/vmm: Remove an unused function Message-ID: <691c8a9f.379a6.5c46a910@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=10b2ebb5a3686cc77135dce8b68ec2b890519b49 commit 10b2ebb5a3686cc77135dce8b68ec2b890519b49 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2025-11-04 13:56:02 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2025-11-18 14:57:34 +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 (cherry picked from commit 7214e0469234d90edd6deda4b181cd4862a9ace0) --- 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?691c8a9f.379a6.5c46a910>
