Skip to content

Commit

Permalink
rpmsg_virtio: Deprecate rpmsg_virtio_{create,delete}_virtqueues helpers
Browse files Browse the repository at this point in the history
These are only used internally by rpmsg_virtio. They also already exist
as part of the virtio API. Do not create an extra wrapper API out of
these functions. Deprecate these functions.

Signed-off-by: Andrew Davis <afd@ti.com>
  • Loading branch information
glneo authored and arnopo committed Apr 2, 2024
1 parent d50bb03 commit 962b6ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/include/openamp/rpmsg_virtio.h
Expand Up @@ -212,6 +212,8 @@ rpmsg_virtio_write_config(struct rpmsg_virtio_device *rvdev,
/**
* @brief Create the rpmsg virtio device virtqueue.
*
* Deprecated: Use virtio_create_virtqueues() instead
*
* @param rvdev Pointer to the rpmsg virtio device.
* @param flags Create flag.
* @param nvqs The virtqueue number.
Expand All @@ -220,6 +222,7 @@ rpmsg_virtio_write_config(struct rpmsg_virtio_device *rvdev,
*
* @return 0 on success, otherwise error code.
*/
__deprecated
static inline int
rpmsg_virtio_create_virtqueues(struct rpmsg_virtio_device *rvdev,
int flags, unsigned int nvqs,
Expand All @@ -233,8 +236,11 @@ rpmsg_virtio_create_virtqueues(struct rpmsg_virtio_device *rvdev,
/**
* @brief Delete the virtqueues created in rpmsg_virtio_create_virtqueues()
*
* Deprecated: Use virtio_delete_virtqueues() instead
*
* @param rvdev Pointer to the rpmsg virtio device
*/
__deprecated
static inline void
rpmsg_virtio_delete_virtqueues(struct rpmsg_virtio_device *rvdev)
{
Expand Down

0 comments on commit 962b6ef

Please sign in to comment.