Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vhost: vringh: Remove unused iotlb functions

The functions:
vringh_abandon_iotlb()
vringh_notify_disable_iotlb() and
vringh_notify_enable_iotlb()

were added in 2020 by
commit 9ad9c49cfe97 ("vringh: IOTLB support")
but have remained unused.

Remove them.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Message-Id: <20250617001838.114457-2-linux@treblig.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>

authored by

Dr. David Alan Gilbert and committed by
Michael S. Tsirkin
569c392e 69cd720a

-48
-43
drivers/vhost/vringh.c
··· 1535 1535 EXPORT_SYMBOL(vringh_iov_push_iotlb); 1536 1536 1537 1537 /** 1538 - * vringh_abandon_iotlb - we've decided not to handle the descriptor(s). 1539 - * @vrh: the vring. 1540 - * @num: the number of descriptors to put back (ie. num 1541 - * vringh_get_iotlb() to undo). 1542 - * 1543 - * The next vringh_get_iotlb() will return the old descriptor(s) again. 1544 - */ 1545 - void vringh_abandon_iotlb(struct vringh *vrh, unsigned int num) 1546 - { 1547 - /* We only update vring_avail_event(vr) when we want to be notified, 1548 - * so we haven't changed that yet. 1549 - */ 1550 - vrh->last_avail_idx -= num; 1551 - } 1552 - EXPORT_SYMBOL(vringh_abandon_iotlb); 1553 - 1554 - /** 1555 1538 * vringh_complete_iotlb - we've finished with descriptor, publish it. 1556 1539 * @vrh: the vring. 1557 1540 * @head: the head as filled in by vringh_getdesc_iotlb. ··· 1553 1570 return __vringh_complete(vrh, &used, 1, putu16_iotlb, putused_iotlb); 1554 1571 } 1555 1572 EXPORT_SYMBOL(vringh_complete_iotlb); 1556 - 1557 - /** 1558 - * vringh_notify_enable_iotlb - we want to know if something changes. 1559 - * @vrh: the vring. 1560 - * 1561 - * This always enables notifications, but returns false if there are 1562 - * now more buffers available in the vring. 1563 - */ 1564 - bool vringh_notify_enable_iotlb(struct vringh *vrh) 1565 - { 1566 - return __vringh_notify_enable(vrh, getu16_iotlb, putu16_iotlb); 1567 - } 1568 - EXPORT_SYMBOL(vringh_notify_enable_iotlb); 1569 - 1570 - /** 1571 - * vringh_notify_disable_iotlb - don't tell us if something changes. 1572 - * @vrh: the vring. 1573 - * 1574 - * This is our normal running state: we disable and then only enable when 1575 - * we're going to sleep. 1576 - */ 1577 - void vringh_notify_disable_iotlb(struct vringh *vrh) 1578 - { 1579 - __vringh_notify_disable(vrh, putu16_iotlb); 1580 - } 1581 - EXPORT_SYMBOL(vringh_notify_disable_iotlb); 1582 1573 1583 1574 /** 1584 1575 * vringh_need_notify_iotlb - must we tell the other side about used buffers?
-5
include/linux/vringh.h
··· 319 319 struct vringh_kiov *wiov, 320 320 const void *src, size_t len); 321 321 322 - void vringh_abandon_iotlb(struct vringh *vrh, unsigned int num); 323 - 324 322 int vringh_complete_iotlb(struct vringh *vrh, u16 head, u32 len); 325 - 326 - bool vringh_notify_enable_iotlb(struct vringh *vrh); 327 - void vringh_notify_disable_iotlb(struct vringh *vrh); 328 323 329 324 int vringh_need_notify_iotlb(struct vringh *vrh); 330 325