drivers/mmc/host/sdhci-cadence-core.c:719:9: sparse: sparse: Initializer entry defined twice

From: kernel test robot

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


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: 882fb340a9568d2c2a976cb2982921a17303569e mmc: sdhci-cadence: add Cadence SD6HC support
date: 3 months ago
config: x86_64-randconfig-r2306-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203125624.9Gzzxzkt-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203125624.9Gzzxzkt-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: 882fb340a956 ("mmc: sdhci-cadence: add Cadence SD6HC support")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203125624.9Gzzxzkt-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/mmc/host/sdhci-cadence-core.c:719:9: sparse: sparse: Initializer entry defined twice
drivers/mmc/host/sdhci-cadence-core.c:723:9: sparse: also defined here

vim +719 drivers/mmc/host/sdhci-cadence-core.c

701
702 static const struct of_device_id sdhci_cdns_match[] = {
703 {
704 .compatible = "socionext,uniphier-sd4hc",
705 .data = &sdhci_cdns_uniphier_drv_data,
706 },
707 {
708 .compatible = "amd,pensando-elba-sd4hc",
709 .data = &sdhci_elba_drv_data,
710 },
711 {
712 .compatible = "mobileye,eyeq-sd4hc",
713 .data = &sdhci_eyeq_drv_data,
714 },
715 {
716 .compatible = "cdns,sd4hc",
717 .data = &sdhci_cdns4_drv_data,
718 },
> 719 {
720 .compatible = "cdns,sd6hc",
721 .data = &sdhci_cdns6_drv_data,
722 },
723 { /* sentinel */ }
724 };
725 MODULE_DEVICE_TABLE(of, sdhci_cdns_match);
726

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