All of lore.kernel.org
 help / color / mirror / Atom feed
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.4-rc 37/154] drivers/net/ethernet/mediatek/mtk_eth_soc.c:5536 mtk_sgmii_init() warn: inconsistent indenting
Date: Sun, 08 Nov 2026 02:31:46 +0100	[thread overview]
Message-ID: <202611080214.dRIobVGk-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-11-08  1:32 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=202611080214.dRIobVGk-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.