mirror of
https://passt.top/passt
synced 2025-05-21 08:45:36 +02:00
vhost_user: Don't export several functions
vhost-user added several functions which are exposed in headers, but not used outside the file where they're defined. I can't tell if these are really internal functions, or of they're logically supposed to be exported, but we don't happen to have anything using them yet. For the time being, just remove the exports. We can add them back if we need to. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
27395e67c2
commit
a83c806d17
4 changed files with 6 additions and 10 deletions
|
@ -517,7 +517,7 @@ static void vu_close_log(struct vu_dev *vdev)
|
|||
* vu_log_kick() - Inform the front-end that the log has been modified
|
||||
* @vdev: vhost-user device
|
||||
*/
|
||||
void vu_log_kick(const struct vu_dev *vdev)
|
||||
static void vu_log_kick(const struct vu_dev *vdev)
|
||||
{
|
||||
if (vdev->log_call_fd != -1) {
|
||||
int rc;
|
||||
|
|
|
@ -241,7 +241,6 @@ static inline bool vu_queue_started(const struct vu_virtq *vq)
|
|||
void vu_print_capabilities(void);
|
||||
void vu_init(struct ctx *c);
|
||||
void vu_cleanup(struct vu_dev *vdev);
|
||||
void vu_log_kick(const struct vu_dev *vdev);
|
||||
void vu_log_write(const struct vu_dev *vdev, uint64_t address,
|
||||
uint64_t length);
|
||||
void vu_control_handler(struct vu_dev *vdev, int fd, uint32_t events);
|
||||
|
|
9
virtio.c
9
virtio.c
|
@ -286,7 +286,7 @@ static int virtqueue_read_next_desc(const struct vring_desc *desc,
|
|||
*
|
||||
* Return: true if the virtqueue is empty, false otherwise
|
||||
*/
|
||||
bool vu_queue_empty(struct vu_virtq *vq)
|
||||
static bool vu_queue_empty(struct vu_virtq *vq)
|
||||
{
|
||||
if (!vq->vring.avail)
|
||||
return true;
|
||||
|
@ -671,9 +671,10 @@ static void vu_log_queue_fill(const struct vu_dev *vdev, struct vu_virtq *vq,
|
|||
* @len: Size of the element
|
||||
* @idx: Used ring entry index
|
||||
*/
|
||||
void vu_queue_fill_by_index(const struct vu_dev *vdev, struct vu_virtq *vq,
|
||||
unsigned int index, unsigned int len,
|
||||
unsigned int idx)
|
||||
static void vu_queue_fill_by_index(const struct vu_dev *vdev,
|
||||
struct vu_virtq *vq,
|
||||
unsigned int index, unsigned int len,
|
||||
unsigned int idx)
|
||||
{
|
||||
struct vring_used_elem uelem;
|
||||
|
||||
|
|
4
virtio.h
4
virtio.h
|
@ -174,16 +174,12 @@ static inline bool vu_has_protocol_feature(const struct vu_dev *vdev,
|
|||
return has_feature(vdev->protocol_features, fbit);
|
||||
}
|
||||
|
||||
bool vu_queue_empty(struct vu_virtq *vq);
|
||||
void vu_queue_notify(const struct vu_dev *dev, struct vu_virtq *vq);
|
||||
int vu_queue_pop(const struct vu_dev *dev, struct vu_virtq *vq,
|
||||
struct vu_virtq_element *elem);
|
||||
void vu_queue_detach_element(struct vu_virtq *vq);
|
||||
void vu_queue_unpop(struct vu_virtq *vq);
|
||||
bool vu_queue_rewind(struct vu_virtq *vq, unsigned int num);
|
||||
void vu_queue_fill_by_index(const struct vu_dev *vdev, struct vu_virtq *vq,
|
||||
unsigned int index, unsigned int len,
|
||||
unsigned int idx);
|
||||
void vu_queue_fill(const struct vu_dev *vdev, struct vu_virtq *vq,
|
||||
const struct vu_virtq_element *elem, unsigned int len,
|
||||
unsigned int idx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue