From bc77ad80e619637d5e4f9cdfda9fca8d7dc1bef9 Mon Sep 17 00:00:00 2001 From: Naresh Kumar PBS Date: Sat, 8 Jun 2019 23:22:08 +0400 Subject: [PATCH] net/bnxt: fix icc build Address build errors reported by intel compiler while compiling on Windows. Instead of typeof() using the actual type in ALLOW_FUNC Cc: stable@dpdk.org Signed-off-by: Naresh Kumar PBS Signed-off-by: Ajit Khaparde Reviewed-by: Lance Richardson --- drivers/net/bnxt/bnxt_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 12fb0a76e0..5f9c096a7d 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -3639,7 +3639,7 @@ int bnxt_alloc_ctx_mem(struct bnxt *bp) #define ALLOW_FUNC(x) \ { \ - typeof(x) arg = (x); \ + uint32_t arg = (x); \ bp->pf.vf_req_fwd[((arg) >> 5)] &= \ ~rte_cpu_to_le_32(1 << ((arg) & 0x1f)); \ } -- 2.20.1