All of lore.kernel.org
 help / color / mirror / Atom feed
* [frank-w-bpi-r2-4.14:7.1-rc 78/154] drivers/net/ethernet/mediatek/mtk_eth_soc.c:5638:6: warning: variable 'flags' set but not used
@ 2026-05-14 21:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-14 21:14 UTC (permalink / raw)
  To: Frank Wunderlich; +Cc: oe-kbuild-all

tree:   https://github.com/frank-w/BPI-R2-4.14 7.1-rc
head:   767536110bfe28c94ae2e150c083d29f827655cf
commit: 188fbd9a282fbed6a7a43430ab5d611dacfee1c5 [78/154] net: pcs: mtk-lynxi: add phya tx rx clock path
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20260515/202605150545.i950eo4c-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260515/202605150545.i950eo4c-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/202605150545.i950eo4c-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/mediatek/mtk_eth_soc.c:5638:6: warning: variable 'flags' set but not used [-Wunused-but-set-variable]
    5638 |         u32 flags = 0;
         |             ^
   1 warning generated.


vim +/flags +5638 drivers/net/ethernet/mediatek/mtk_eth_soc.c

  5633	
  5634	static int mtk_sgmii_init(struct mtk_eth *eth)
  5635	{
  5636		struct device_node *np;
  5637		struct regmap *regmap;
> 5638		u32 flags = 0;
  5639		int i;
  5640	
  5641		for (i = 0; i < MTK_MAX_DEVS; i++) {
  5642			np = of_parse_phandle(eth->dev->of_node, "mediatek,sgmiisys", i);
  5643			if (!np)
  5644				break;
  5645	
  5646			regmap = syscon_node_to_regmap(np);
  5647			if (IS_ERR(regmap)) {
  5648				of_node_put(np);
  5649	
  5650			if (of_property_read_bool(np->parent, "mediatek,phya_trx_ck"))
  5651				flags |= MTK_SGMII_FLAG_PHYA_TRX_CK;
  5652	
  5653			of_node_put(np);
  5654	
  5655			if (IS_ERR(regmap))
  5656				return PTR_ERR(regmap);
  5657			}
  5658	
  5659			eth->sgmii_pcs[i] = mtk_pcs_lynxi_create(eth->dev,
  5660								 of_fwnode_handle(np),
  5661								 regmap,
  5662								 eth->soc->ana_rgc3);
  5663			of_node_put(np);
  5664		}
  5665	
  5666		return 0;
  5667	}
  5668	

--
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:[~2026-05-14 21:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-14 21:14 [frank-w-bpi-r2-4.14:7.1-rc 78/154] drivers/net/ethernet/mediatek/mtk_eth_soc.c:5638:6: warning: variable 'flags' 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.