drivers/hwmon/honor-fmi.c:26:9: sparse: sparse: Initializer entry defined twice

From: kernel test robot

Date: Thu Dec 03 2026 - 02:54:00 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: 9d5443e2cdaaff3df7c4c383b8656bc7fc9f4144 hwmon: Add fan monitoring support for HONOR FMI-XX
date: 7 weeks ago
config: x86_64-randconfig-2300-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203084333.HcWdHxfL-lkp@xxxxxxxxx/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203084333.HcWdHxfL-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: 9d5443e2cdaa ("hwmon: Add fan monitoring support for HONOR FMI-XX")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203084333.HcWdHxfL-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/hwmon/honor-fmi.c:26:9: sparse: sparse: Initializer entry defined twice
drivers/hwmon/honor-fmi.c:32:9: sparse: also defined here

vim +26 drivers/hwmon/honor-fmi.c

24
25 static const struct dmi_system_id honor_fmi_dmi_table[] = {
> 26 {
27 .matches = {
28 DMI_MATCH(DMI_SYS_VENDOR, "HONOR"),
29 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "FMI-XX"),
30 },
31 },
32 {}
33 };
34 MODULE_DEVICE_TABLE(dmi, honor_fmi_dmi_table);
35

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