drivers/regulator/mt6316-regulator.c:329:9: sparse: sparse: Initializer entry defined twice

From: kernel test robot

Date: Thu Dec 03 2026 - 07:11:30 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: a87a7b3530728fb7477a74c27fc27e060bf5684f regulator: Add support for MediaTek MT6316 SPMI PMIC Regulators
date: 1 year, 1 month ago
config: m68k-randconfig-r2302-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203130446.zIt70YtP-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 10.5.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203130446.zIt70YtP-lkp@xxxxxxxxx/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
| Fixes: a87a7b353072 ("regulator: Add support for MediaTek MT6316 SPMI PMIC Regulators")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203130446.zIt70YtP-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/regulator/mt6316-regulator.c:329:9: sparse: sparse: Initializer entry defined twice
drivers/regulator/mt6316-regulator.c:330:9: sparse: also defined here

vim +329 drivers/regulator/mt6316-regulator.c

325
326 static const struct of_device_id mt6316_regulator_match[] = {
327 { .compatible = "mediatek,mt6316b-regulator", .data = (void *)MT6316_TYPE_2PHASE },
328 { .compatible = "mediatek,mt6316c-regulator", .data = (void *)MT6316_TYPE_3PHASE },
> 329 { .compatible = "mediatek,mt6316d-regulator", .data = (void *)MT6316_TYPE_4PHASE },
330 { /* sentinel */ }
331 };
332

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