Skip to content

Commit

Permalink
virtio: make unused function virtio_describe() deprecated
Browse files Browse the repository at this point in the history
The virtio_describe() function does not seem usable.
Therefore, it should be marked as deprecated to initiate
the removal process.

Signed-off-by: Arnaud Pouliquen <[email protected]>
  • Loading branch information
arnopo committed Oct 9, 2023
1 parent 937ba1d commit 923224d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions lib/include/openamp/virtio.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,10 @@ struct virtio_device {
* Helper functions.
*/
const char *virtio_dev_name(uint16_t devid);
void virtio_describe(struct virtio_device *dev, const char *msg,
uint32_t features,
struct virtio_feature_desc *feature_desc);

__deprecated void virtio_describe(struct virtio_device *dev, const char *msg,
uint32_t features,
struct virtio_feature_desc *feature_desc);

/*
* Functions for virtio device configuration as defined in Rusty Russell's
Expand Down
4 changes: 2 additions & 2 deletions lib/virtio/virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ static const char *virtio_feature_name(unsigned long val,
return NULL;
}

void virtio_describe(struct virtio_device *dev, const char *msg,
uint32_t features, struct virtio_feature_desc *desc)
__deprecated void virtio_describe(struct virtio_device *dev, const char *msg,
uint32_t features, struct virtio_feature_desc *desc)
{
(void)dev;
(void)msg;
Expand Down

0 comments on commit 923224d

Please sign in to comment.