net/mlx5: fix icc compilation issue with type qualifier

Message ID 1563820017-9739-1-git-send-email-viacheslavo@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series net/mlx5: fix icc compilation issue with type qualifier |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-Compile-Testing success Compile Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Performance-Testing success Performance Testing PASS
ci/mellanox-Performance-Testing success Performance Testing PASS

Commit Message

Slava Ovsiienko July 22, 2019, 6:26 p.m. UTC
  This fixes icc warning "type qualifier is meaningless on cast type".

[1] http://patches.dpdk.org/patch/56810/

Fixes: aa0d2b1bec2d ("net/mlx5: introduce Tx burst routine template")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
---
 drivers/net/mlx5/mlx5_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Ferruh Yigit July 22, 2019, 7:07 p.m. UTC | #1
On 7/22/2019 7:26 PM, Viacheslav Ovsiienko wrote:
> This fixes icc warning "type qualifier is meaningless on cast type".
> 
> [1] http://patches.dpdk.org/patch/56810/
> 
> Fixes: aa0d2b1bec2d ("net/mlx5: introduce Tx burst routine template")
> 
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>

Squashed into relevant commit in next-net, thanks.

Thanks for the prompt update.
  

Patch

diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c
index 3872966..007df8f 100644
--- a/drivers/net/mlx5/mlx5_rxtx.c
+++ b/drivers/net/mlx5/mlx5_rxtx.c
@@ -79,7 +79,7 @@  enum mlx5_txcmp_code {
 				     struct rte_mbuf **pkts, \
 				    uint16_t pkts_n) \
 { \
-	return mlx5_tx_burst_tmpl((struct mlx5_txq_data *restrict)txq, \
+	return mlx5_tx_burst_tmpl((struct mlx5_txq_data *)txq, \
 		    pkts, pkts_n, (olx)); \
 }