summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.bie@intel.com>2019-11-19 15:12:24 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-11-21 14:02:41 +0000
commit5765b0525b567ee93159692d70ac17001e103ba7 (patch)
tree3fdcc252d62a79a179be075dbef5d7584c0ac72f
parent038fd679cabf0bdf300abdd003457c9d3d35efe2 (diff)
downloaddpdk-next-net-intel-5765b0525b567ee93159692d70ac17001e103ba7.zip
dpdk-next-net-intel-5765b0525b567ee93159692d70ac17001e103ba7.tar.gz
dpdk-next-net-intel-5765b0525b567ee93159692d70ac17001e103ba7.tar.xz
net/virtio-user: drop attribute unused for memory callback
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: f32c7c9de961 ("malloc: enable event callbacks for external memory") Cc: stable@dpdk.org Signed-off-by: Tiwei Bie <tiwei.bie@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
-rw-r--r--drivers/net/virtio/virtio_user/virtio_user_dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_user/virtio_user_dev.c
index a4400e7..ea016e8 100644
--- a/drivers/net/virtio/virtio_user/virtio_user_dev.c
+++ b/drivers/net/virtio/virtio_user/virtio_user_dev.c
@@ -315,9 +315,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;