From: kernel test robot <lkp@intel.com>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Fri, 15 May 2026 05:14:46 +0800 [thread overview]
Message-ID: <202605150545.i950eo4c-lkp@intel.com> (raw)
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
reply other threads:[~2026-05-14 21:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202605150545.i950eo4c-lkp@intel.com \
--to=lkp@intel.com \
--cc=frank-w@public-files.de \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.