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 0A1BAA0C44 for ; Wed, 12 May 2021 15:04:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EBDD2410E3; Wed, 12 May 2021 15:04:38 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id E817A4003E; Wed, 12 May 2021 15:04:35 +0200 (CEST) IronPort-SDR: weFhO+zf6AaOM6konGCaS51xJybSGgS7Nk6+vbgBoRTI5OrZ21KBnWmMUGF1H94ZHVVDB9NjFm mOPGHIsFd7Zw== X-IronPort-AV: E=McAfee;i="6200,9189,9981"; a="187123604" X-IronPort-AV: E=Sophos;i="5.82,293,1613462400"; d="scan'208";a="187123604" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2021 06:04:32 -0700 IronPort-SDR: s3XiqJ+4SWLpzI1CE1uhEAquRRfd0ATAnyZzoTmCo3u7MThu1x8J6Z2OfaQ4Zp3JGuPo5FXSN3 nl76Gm/Mo0eA== X-IronPort-AV: E=Sophos;i="5.82,293,1613462400"; d="scan'208";a="609922122" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.210.216]) ([10.213.210.216]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2021 06:04:30 -0700 To: Rasesh Mody , Shahed Shaikh Cc: dev@dpdk.org, stable@dpdk.org, Kevin Traynor , Ajit Khaparde References: <20210510150319.1496105-1-ferruh.yigit@intel.com> <20210511131435.1226820-1-ferruh.yigit@intel.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <8b1e39a8-3aaa-fb89-cf7a-3cc452140f6b@intel.com> Date: Wed, 12 May 2021 14:04:26 +0100 MIME-Version: 1.0 In-Reply-To: <20210511131435.1226820-1-ferruh.yigit@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-stable] [PATCH v3 1/4] net/bnx2x: fix build with gcc11 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On 5/11/2021 2:14 PM, Ferruh Yigit wrote: > Reproduced with '--buildtype=debugoptimized' config, > compiler version: gcc (GCC) 12.0.0 20210509 (experimental) > > Build error: > In file included from ../drivers/net/bnx2x/bnx2x_rxtx.c:8: > ../drivers/net/bnx2x/bnx2x_rxtx.c: In function ‘bnx2x_upd_rx_prod_fast’: > ../drivers/net/bnx2x/bnx2x.h:1528:35: > warning: ‘rx_prods’ is used uninitialized [-Wuninitialized] > #define REG_WR32(sc, offset, val) bnx2x_reg_write32(sc, (offset), val) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../drivers/net/bnx2x/bnx2x.h:1531:33: > note: in expansion of macro ‘REG_WR32’ > 1531 | #define REG_WR(sc, offset, val) REG_WR32(sc, offset, val) > | ^~~~~~~~ > ../drivers/net/bnx2x/bnx2x_rxtx.c:331:9: > note: in expansion of macro ‘REG_WR’ > 331 | REG_WR(sc, fp->ustorm_rx_prods_offset, val[0]); > | ^~~~~~ > ../drivers/net/bnx2x/bnx2x_rxtx.c:324:40: note: ‘rx_prods’ declared here > 324 | struct ustorm_eth_rx_producers rx_prods = { 0 }; > | ^~~~~~~~ > > REG_WR32 requires 'uint32_t', use union instead of cast to 'uint32_t'. > > Bugzilla ID: 692 > Fixes: 38dff79ba736 ("net/bnx2x: update HSI") > Cc: stable@dpdk.org > > Signed-off-by: Ferruh Yigit > Acked-by: Kevin Traynor Series applied to dpdk-next-net/main, thanks.