The word "unused" is too common for being used in a header.
There is a warning because a parameter is named "unused" in mbuf:
lib/mbuf/rte_mbuf.h: In function 'rte_mbuf_tx_offload':
error: declaration of 'unused' shadows a previous local [-Werror=shadow]
1910 | uint64_t ol3, uint64_t ol2, uint64_t unused)
| ~~~~~~~~~^~~~~~
Such value should be prefixed with "MLX5".
Fixes: bd935fe3e624 ("net/mlx5: wrap sampling actions per OS")
Cc: [email protected]
Signed-off-by: Thomas Monjalon <[email protected]>
---
drivers/common/mlx5/windows/mlx5_glue.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/mlx5/windows/mlx5_glue.h
b/drivers/common/mlx5/windows/mlx5_glue.h
index 5ba324ebc4..f53142e3d4 100644
--- a/drivers/common/mlx5/windows/mlx5_glue.h
+++ b/drivers/common/mlx5/windows/mlx5_glue.h
@@ -16,7 +16,7 @@
#endif
#ifndef HAVE_MLX5DV_DR
-enum mlx5dv_dr_domain_type { unused, };
+enum mlx5dv_dr_domain_type { MLX5_UNUSED_DOMAIN_TYPE };
struct mlx5dv_dr_domain;
struct mlx5dv_dr_action;
#endif
--
2.52.0