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 2881EA0564; Fri, 12 Mar 2021 00:59:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1103B4067E; Fri, 12 Mar 2021 00:59:48 +0100 (CET) Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by mails.dpdk.org (Postfix) with ESMTP id B363C4014D for ; Fri, 12 Mar 2021 00:59:46 +0100 (CET) Received: by mail-qv1-f53.google.com with SMTP id 30so3456107qva.9 for ; Thu, 11 Mar 2021 15:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yzyU7C7T1wq0Ns6HnkkR53XnjwWhmKhCkT9BnbqzWMM=; b=L70QwGoupA9A4gMzZqjLgXoOSvBth2l+6WkefUxtCXcXo6IonAg7eUjzkBGxkqXIA6 W5K5pXYGpsu4L5yKaEmop56kadBdbJ1M6UFhgiIjlZCkByFbdejxJD6Gg4/a2CaBrlnz iE/mTM1cIMQqS60zf6BIo8Sbwf6TIP8vyVlwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yzyU7C7T1wq0Ns6HnkkR53XnjwWhmKhCkT9BnbqzWMM=; b=dYfhNK8x9quzni6u/sStgqr2bUyDAdTC6BCH4VQCacTUd6i1j36wjE4zkuwtkgBJ5o NLplzfyh5QuCsDpn+qw1co0OLWZ+7mENTCALfPqozPuheClzv/wx0Emii58mOICdc64J Fn7KS+/gRefzx4m8TGvY1wk/kvlKEZ6ZiMQSvo02G6PkmXFhcfJy73nWs2Wq+qx8EIop FY6RjiU9OCsTaDM/FtABA1oFo4Pux0NPfA0rztqA2JG2YVMr+fkX4qzuPUy6y/rB6bm6 N+oH7C2SIUBACP4I4al0WMT0nffMSy28JwJAAQXgMISaJhTQB5KBlAHDuM/G5W9WMQuk TdHA== X-Gm-Message-State: AOAM53170BX6hvgX429XPq2PcSUN4vzANRb+erbMKaaTMlLOeiRRJJHi IUMHLeamb15XkThJ3FSXEezu24GaoTUXVm3BIge6jegTwF4pxU2x X-Google-Smtp-Source: ABdhPJzgUn9zr4xPIHr5mD71ZFmSI9wNGrVIBMCNOMmmLnXxh/Ly/P7sY2FsVwtI3TW06ZPCXwuBbM7zqNQ9ZzkHBWM= X-Received: by 2002:ad4:4c4c:: with SMTP id cs12mr9751020qvb.35.1615507185820; Thu, 11 Mar 2021 15:59:45 -0800 (PST) MIME-Version: 1.0 References: <20210311233033.67152-1-ajit.khaparde@broadcom.com> In-Reply-To: <20210311233033.67152-1-ajit.khaparde@broadcom.com> From: Ajit Khaparde Date: Thu, 11 Mar 2021 15:59:29 -0800 Message-ID: To: dpdk-dev Cc: Piotr Kubaj Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000f595ae05bd4b93ce" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [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" --000000000000f595ae05bd4b93ce Content-Type: text/plain; charset="UTF-8" On Thu, Mar 11, 2021 at 3:30 PM Ajit Khaparde wrote: > > 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 Patch applied to dpdk-next-net-brcm. Thanks > --- > 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) > --000000000000f595ae05bd4b93ce--