[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202508141404.DrfpnTy0-lkp@intel.com>
Date: Thu, 14 Aug 2025 14:47:16 +0800
From: kernel test robot <lkp@...el.com>
To: Bhargava Marreddy <bhargava.marreddy@...adcom.com>, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
andrew+netdev@...n.ch, horms@...nel.org
Cc: oe-kbuild-all@...ts.linux.dev, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, michael.chan@...adcom.com,
pavan.chebbi@...adcom.com, vsrama-krishna.nemani@...adcom.com,
Bhargava Marreddy <bhargava.marreddy@...adcom.com>,
Vikas Gupta <vikas.gupta@...adcom.com>,
Rajashekar Hudumula <rajashekar.hudumula@...adcom.com>
Subject: Re: [net-next 7/9] bng_en: Register rings with the firmware
Hi Bhargava,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Bhargava-Marreddy/bng_en-Add-initial-support-for-RX-and-TX-rings/20250814-004339
base: net-next/main
patch link: https://lore.kernel.org/r/20250813215603.76526-8-bhargava.marreddy%40broadcom.com
patch subject: [net-next 7/9] bng_en: Register rings with the firmware
config: loongarch-randconfig-r073-20250814 (https://download.01.org/0day-ci/archive/20250814/202508141404.DrfpnTy0-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 3769ce013be2879bf0b329c14a16f5cb766f26ce)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250814/202508141404.DrfpnTy0-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508141404.DrfpnTy0-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c:768:32: warning: variable 'resp' set but not used [-Wunused-but-set-variable]
768 | struct hwrm_ring_free_output *resp;
| ^
1 warning generated.
vim +/resp +768 drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c
763
764 int hwrm_ring_free_send_msg(struct bnge_net *bn,
765 struct bnge_ring_struct *ring,
766 u32 ring_type, int cmpl_ring_id)
767 {
> 768 struct hwrm_ring_free_output *resp;
769 struct hwrm_ring_free_input *req;
770 struct bnge_dev *bd = bn->bd;
771 int rc;
772
773 rc = bnge_hwrm_req_init(bd, req, HWRM_RING_FREE);
774 if (rc)
775 goto exit;
776
777 req->cmpl_ring = cpu_to_le16(cmpl_ring_id);
778 req->ring_type = ring_type;
779 req->ring_id = cpu_to_le16(ring->fw_ring_id);
780
781 resp = bnge_hwrm_req_hold(bd, req);
782 rc = bnge_hwrm_req_send(bd, req);
783 bnge_hwrm_req_drop(bd, req);
784 exit:
785 if (rc) {
786 netdev_err(bd->netdev, "hwrm_ring_free type %d failed. rc:%d\n", ring_type, rc);
787 return -EIO;
788 }
789 return 0;
790 }
791
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists