All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/mlx5: fix ICC compiler warning
@ 2017-10-17  2:46 Xueming Li
  2017-10-17  7:56 ` Nélio Laranjeiro
  2017-10-21  1:05 ` Ferruh Yigit
  0 siblings, 2 replies; 5+ messages in thread
From: Xueming Li @ 2017-10-17  2:46 UTC (permalink / raw)
  To: Nelio Laranjeiro, FerruhYigitferruh.yigit; +Cc: Xueming Li, dev

Initialize variable to avoid ICC compiler warning:
http://www.dpdk.org/ml/archives/dev/2017-October/077971.html

Fixes: f8b9a3bad467 ("net/mlx5: install a socket to exchange a file...")

Signed-off-by: Xueming Li <xuemingl@mellanox.com>
---
 drivers/net/mlx5/mlx5_txq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
index 9deaa7e..93f1388 100644
--- a/drivers/net/mlx5/mlx5_txq.c
+++ b/drivers/net/mlx5/mlx5_txq.c
@@ -246,6 +246,7 @@
 	int already_mapped;
 	size_t page_size = sysconf(_SC_PAGESIZE);
 
+	memset(pages, 0, priv->txqs_n * sizeof(uintptr_t));
 	/*
 	 * As rdma-core, UARs are mapped in size of OS page size.
 	 * Use aligned address to avoid duplicate mmap.
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-24 12:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-17  2:46 [PATCH] net/mlx5: fix ICC compiler warning Xueming Li
2017-10-17  7:56 ` Nélio Laranjeiro
2017-10-23 21:54   ` Ferruh Yigit
2017-10-24 12:28     ` Xueming(Steven) Li
2017-10-21  1:05 ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.