All of lore.kernel.org
 help / color / mirror / Atom feed
* [jmondi:jmondi/rpi5-be-upstream/libcamera 30/131] drivers/pci/controller/pcie-brcmstb.c:473:6: warning: variable 'ret' set but not used
@ 2024-01-28  0:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-28  0:25 UTC (permalink / raw)
  To: Jim Quinlan
  Cc: llvm, oe-kbuild-all, Dave Stevenson, Phil Elwell, Jonathan Bell

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jmondi/linux.git jmondi/rpi5-be-upstream/libcamera
head:   a7bec0179c6915e1140ede4bd0ceae507b80112e
commit: e53645fcc7971ea226e563350bea786852e7b572 [30/131] PCI: brcmstb: Add BCM2712 support
config: i386-buildonly-randconfig-001-20240128 (https://download.01.org/0day-ci/archive/20240128/202401280836.i4C3FyZ1-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240128/202401280836.i4C3FyZ1-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401280836.i4C3FyZ1-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/pci/controller/pcie-brcmstb.c:473:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
     473 |         int ret, i;
         |             ^
   1 warning generated.


vim +/ret +473 drivers/pci/controller/pcie-brcmstb.c

   463	
   464	static void brcm_pcie_munge_pll(struct brcm_pcie *pcie)
   465	{
   466		//print "MDIO block 0x1600 written per Dannys instruction"
   467		//tmp = pcie_mdio_write(phyad, &h16&, &h50b9&)
   468		//tmp = pcie_mdio_write(phyad, &h17&, &hbd1a&)
   469		//tmp = pcie_mdio_write(phyad, &h1b&, &h5030&)
   470		//tmp = pcie_mdio_write(phyad, &h1e&, &h0007&)
   471	
   472		u32 tmp;
 > 473		int ret, i;
   474		u8 regs[] =  { 0x16,   0x17,   0x18,   0x19,   0x1b,   0x1c,   0x1e };
   475		u16 data[] = { 0x50b9, 0xbda1, 0x0094, 0x97b4, 0x5030, 0x5030, 0x0007 };
   476	
   477		ret = brcm_pcie_mdio_write(pcie->base, MDIO_PORT0, SET_ADDR_OFFSET,
   478					0x1600);
   479		for (i = 0; i < ARRAY_SIZE(regs); i++) {
   480			brcm_pcie_mdio_read(pcie->base, MDIO_PORT0, regs[i], &tmp);
   481			dev_dbg(pcie->dev, "PCIE MDIO pre_refclk 0x%02x = 0x%04x\n",
   482				regs[i], tmp);
   483		}
   484		for (i = 0; i < ARRAY_SIZE(regs); i++) {
   485			brcm_pcie_mdio_write(pcie->base, MDIO_PORT0, regs[i], data[i]);
   486			brcm_pcie_mdio_read(pcie->base, MDIO_PORT0, regs[i], &tmp);
   487			dev_dbg(pcie->dev, "PCIE MDIO post_refclk 0x%02x = 0x%04x\n",
   488				regs[i], tmp);
   489		}
   490		usleep_range(100, 200);
   491	}
   492	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-28  0:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-28  0:25 [jmondi:jmondi/rpi5-be-upstream/libcamera 30/131] drivers/pci/controller/pcie-brcmstb.c:473:6: warning: variable 'ret' set but not used kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.