* [frank-w-bpi-r2-4.14:7.4-rc 37/154] drivers/net/ethernet/mediatek/mtk_eth_soc.c:5536 mtk_sgmii_init() warn: inconsistent indenting
@ 2026-11-08 1:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-08 1:31 UTC (permalink / raw)
To: Frank Wunderlich; +Cc: oe-kbuild-all
tree: https://github.com/frank-w/BPI-R2-4.14 7.4-rc
head: 674a64f97be4d25967f31216ffe7eaefdabf827f
commit: 51267acf54375bc00d77b438e7557a1fc0f0017e [37/154] net: pcs: mtk-lynxi: add phya tx rx clock path
config: arm-randconfig-2200-20261107 (https://download.01.org/0day-ci/archive/20261108/202611080214.dRIobVGk-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 0fa861dbbf46e5a75f621406fd91cb015d8754bf)
smatch: v0.5.0-9187-g5189e3fb
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/202611080214.dRIobVGk-lkp@intel.com/
New smatch warnings:
drivers/net/ethernet/mediatek/mtk_eth_soc.c:5536 mtk_sgmii_init() warn: inconsistent indenting
Old smatch warnings:
drivers/net/ethernet/mediatek/mtk_eth_soc.c:5815 mtk_probe() error: buffer overflow 'eth->irq_pdma' 4 <= 4
vim +5536 drivers/net/ethernet/mediatek/mtk_eth_soc.c
5519
5520 static int mtk_sgmii_init(struct mtk_eth *eth)
5521 {
5522 struct device_node *np;
5523 struct regmap *regmap;
5524 u32 flags = 0;
5525 int i;
5526
5527 for (i = 0; i < MTK_MAX_DEVS; i++) {
5528 np = of_parse_phandle(eth->dev->of_node, "mediatek,sgmiisys", i);
5529 if (!np)
5530 break;
5531
5532 regmap = syscon_node_to_regmap(np);
5533 if (IS_ERR(regmap)) {
5534 of_node_put(np);
5535
> 5536 if (of_property_read_bool(np->parent, "mediatek,phya_trx_ck"))
5537 flags |= MTK_SGMII_FLAG_PHYA_TRX_CK;
5538
5539 of_node_put(np);
5540
5541 if (IS_ERR(regmap))
5542 return PTR_ERR(regmap);
5543 }
5544
5545 eth->sgmii_pcs[i] = mtk_pcs_lynxi_create(eth->dev,
5546 of_fwnode_handle(np),
5547 regmap,
5548 eth->soc->ana_rgc3);
5549 of_node_put(np);
5550 }
5551
5552 return 0;
5553 }
5554
--
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-11-08 1:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-08 1:31 [frank-w-bpi-r2-4.14:7.4-rc 37/154] drivers/net/ethernet/mediatek/mtk_eth_soc.c:5536 mtk_sgmii_init() warn: inconsistent indenting 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.