From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BF78AA0564; Fri, 12 Mar 2021 00:30:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9FC00160800; Fri, 12 Mar 2021 00:30:39 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id EA4461607FD for ; Fri, 12 Mar 2021 00:30:37 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id d23so7806504plq.2 for ; Thu, 11 Mar 2021 15:30:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=EAflmsBDCslNvdOCyDrgyuPqqD7FFhiHBwRBDITQ2v0=; b=ByO+P/pvNC6zxPRIQILGfwQgn32xfUBFpHEbQQTEKeF9nWc0uSXXQqlj4eDRq1M+UC cYwhjvp7ubhtfuhoblQkj+PekmKmqbGtSvw2qjAG59tnNe9qGGOemLRX+JRaRHiUAj84 KO725/8M3h7qCKn7EBrTTjJdVJtGrHFjt3l2Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=EAflmsBDCslNvdOCyDrgyuPqqD7FFhiHBwRBDITQ2v0=; b=eqQONe3Z1Qwi9rYgJHZQJBJ0Jlws318NtxLvGntO2FhA2dWb2v/cWuhVn+17KluSQu ldb7TqTq32PA5ViM3j2eZ5lqbTcme38iU5F5J75mvE+f9xIKwy3+LQ2U9ILQ9R9be7YY 1RugKwIWXFVaTEVedvPH10G8n8ZiYHZZWBpLNMpC/IW3iKWg1xomon289798mQzHpkwh Oz+DFfssW1yjnbPEtLrk0Jwp+mT0oaFTavInw+AoLlJa+F7xn28H7rZFm08744rx2bqF dQ3nUoIYFne/nHu1JTm7g+V4i6ojOrcuB9gwLWFXLY1Lwu/98ABqCLfHykJf5kDV3l2t XuPw== X-Gm-Message-State: AOAM533CyVAJ8+9bNG5EEP0M2XFTcQWFOZPsaa5zbneAvQi7FN0wtOaQ 2To00c1YMYxCL9UY/GYx89Z+i66M4D+tSLskmzDK0/Lmzv8L/+CHM4H85lHsw9/uBaj6F9lB6hn xTHM8aDSSJun8rctqFne+5Eig7Vhpt7AoOUa5PaNWJ3AMXzvr0ARWb0QM7sTcSj8sAw== X-Google-Smtp-Source: ABdhPJyPRkGKfLUvfEXYahgzntAXT4JAMvpdur4KL2cL78dNGPqnVUgBA3ILez5xvRx2B51PF7dQMA== X-Received: by 2002:a17:90b:438a:: with SMTP id in10mr11095189pjb.165.1615505436758; Thu, 11 Mar 2021 15:30:36 -0800 (PST) Received: from localhost.localdomain ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id w84sm3435176pfc.142.2021.03.11.15.30.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Mar 2021 15:30:36 -0800 (PST) From: Ajit Khaparde To: dev@dpdk.org Cc: Piotr Kubaj Date: Thu, 11 Mar 2021 15:30:33 -0800 Message-Id: <20210311233033.67152-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000b6c0f605bd4b2b58" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-dev] [PATCH] net/bnxt: rename a member to avoid conflict X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" --000000000000b6c0f605bd4b2b58 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_irq.c | 2 +- drivers/net/bnxt/bnxt_irq.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bnxt/bnxt_irq.c b/drivers/net/bnxt/bnxt_irq.c index a29ac28590..8abbadb3d1 100644 --- a/drivers/net/bnxt/bnxt_irq.c +++ b/drivers/net/bnxt/bnxt_irq.c @@ -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; diff --git a/drivers/net/bnxt/bnxt_irq.h b/drivers/net/bnxt/bnxt_irq.h index 7b02f30973..53d9198858 100644 --- a/drivers/net/bnxt/bnxt_irq.h +++ b/drivers/net/bnxt/bnxt_irq.h @@ -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]; }; -- 2.21.1 (Apple Git-122.3) --000000000000b6c0f605bd4b2b58--