Skip to content

Commit 7214e04

Browse files
committed
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
1 parent 7377c87 commit 7214e04

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

sys/amd64/vmm/io/ppt.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,6 @@ ppt_teardown_msix(struct pptdev *ppt)
335335
ppt->msix.num_msgs = 0;
336336
}
337337

338-
int
339-
ppt_avail_devices(void)
340-
{
341-
342-
return (num_pptdevs);
343-
}
344-
345338
int
346339
ppt_assigned_devices(struct vm *vm)
347340
{

sys/amd64/vmm/io/ppt.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ int ppt_disable_msix(struct vm *vm, int bus, int slot, int func);
4242
int ppt_assigned_devices(struct vm *vm);
4343
bool ppt_is_mmio(struct vm *vm, vm_paddr_t gpa);
4444

45-
/*
46-
* Returns the number of devices sequestered by the ppt driver for assignment
47-
* to virtual machines.
48-
*/
49-
int ppt_avail_devices(void);
50-
5145
/*
5246
* The following functions should never be called directly.
5347
* Use 'vm_assign_pptdev()' and 'vm_unassign_pptdev()' instead.

0 commit comments

Comments
 (0)