Skip to content

Commit

Permalink
net/virtio-user: drop attribute unused for memory callback
Browse files Browse the repository at this point in the history
[ upstream commit 2286291 ]

The "addr" param has been used since the event callbacks are enabled
for external memory. So the "__rte_unused" should be dropped.

Besides, slightly refine the coding style by consistently assuming
tabs are 8 characters.

Fixes: f32c7c9 ("malloc: enable event callbacks for external memory")

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
Tiwei Bie authored and kevintraynor committed Dec 11, 2019
1 parent 3548806 commit c269e97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/virtio/virtio_user/virtio_user_dev.c
Expand Up @@ -306,9 +306,9 @@ virtio_user_fill_intr_handle(struct virtio_user_dev *dev)

static void
virtio_user_mem_event_cb(enum rte_mem_event type __rte_unused,
const void *addr __rte_unused,
size_t len __rte_unused,
void *arg)
const void *addr,
size_t len __rte_unused,
void *arg)
{
struct virtio_user_dev *dev = arg;
struct rte_memseg_list *msl;
Expand Down

0 comments on commit c269e97

Please sign in to comment.