net/bnxt: rename a member to avoid conflict
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 11 Mar 2021 23:30:33 +0000 (15:30 -0800)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 12 Mar 2021 06:13:49 +0000 (07:13 +0100)
Address build issues with Clang and without glibc on ppc64le.
Vector can be a keyword and should not be used in code.
Renaming it to avoid conflict.

Reported-by: Piotr Kubaj <pkubaj@freebsd.org>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_irq.c
drivers/net/bnxt/bnxt_irq.h

index a29ac28..8abbadb 100644 (file)
@@ -151,7 +151,7 @@ int bnxt_setup_int(struct bnxt *bp)
                                 sizeof(struct bnxt_irq), 0);
        if (bp->irq_tbl) {
                for (i = 0; i < total_vecs; i++) {
-                       bp->irq_tbl[i].vector = i;
+                       bp->irq_tbl[i].vector_idx = i;
                        snprintf(bp->irq_tbl[i].name, len,
                                 "%s-%d", bp->eth_dev->device->name, i);
                        bp->irq_tbl[i].handler = bnxt_int_handler;
index 7b02f30..53d9198 100644 (file)
@@ -8,7 +8,7 @@
 
 struct bnxt_irq {
        rte_intr_callback_fn    handler;
-       unsigned int            vector;
+       unsigned int            vector_idx;
        uint8_t                 requested;
        char                    name[RTE_ETH_NAME_MAX_LEN + 2];
 };