mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/regulator/mt6363-regulator.c:877:11: error: implicit declaration of function 'irq_find_host'; did you mean 'ida_find_first'?
@ 2026-01-20  3:58 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-01-20  3:58 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno; +Cc: oe-kbuild-all, linux-kernel, Mark Brown

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
commit: 3c36965df80801344850388592e95033eceea05b regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators
date:   3 months ago
config: s390-randconfig-r113-20260120 (https://download.01.org/0day-ci/archive/20260120/202601201117.SkLEZ6Dg-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260120/202601201117.SkLEZ6Dg-lkp@intel.com/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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601201117.SkLEZ6Dg-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   drivers/regulator/mt6363-regulator.c: In function 'mt6363_regulator_probe':
>> drivers/regulator/mt6363-regulator.c:877:11: error: implicit declaration of function 'irq_find_host'; did you mean 'ida_find_first'? [-Werror=implicit-function-declaration]
     domain = irq_find_host(interrupt_parent);
              ^~~~~~~~~~~~~
              ida_find_first
>> drivers/regulator/mt6363-regulator.c:877:9: warning: assignment to 'struct irq_domain *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     domain = irq_find_host(interrupt_parent);
            ^
>> drivers/regulator/mt6363-regulator.c:889:16: error: implicit declaration of function 'irq_create_fwspec_mapping'; did you mean 'irq_create_of_mapping'? [-Werror=implicit-function-declaration]
      info->virq = irq_create_fwspec_mapping(&fwspec);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
                   irq_create_of_mapping
   cc1: some warnings being treated as errors


vim +877 drivers/regulator/mt6363-regulator.c

   853	
   854	static int mt6363_regulator_probe(struct platform_device *pdev)
   855	{
   856		struct device_node *interrupt_parent;
   857		struct regulator_config config = {};
   858		struct mt6363_regulator_info *info;
   859		struct device *dev = &pdev->dev;
   860		struct regulator_dev *rdev;
   861		struct irq_domain *domain;
   862		struct irq_fwspec fwspec;
   863		struct spmi_device *sdev;
   864		int i, ret;
   865	
   866		config.regmap = mt6363_spmi_register_regmap(dev);
   867		if (IS_ERR(config.regmap))
   868			return dev_err_probe(dev, PTR_ERR(config.regmap),
   869					     "Cannot get regmap\n");
   870		config.dev = dev;
   871		sdev = to_spmi_device(dev->parent);
   872	
   873		interrupt_parent = of_irq_find_parent(dev->of_node);
   874		if (!interrupt_parent)
   875			return dev_err_probe(dev, -EINVAL, "Cannot find IRQ parent\n");
   876	
 > 877		domain = irq_find_host(interrupt_parent);
   878		of_node_put(interrupt_parent);
   879		fwspec.fwnode = domain->fwnode;
   880	
   881		fwspec.param_count = 3;
   882		fwspec.param[0] = sdev->usid;
   883		fwspec.param[2] = IRQ_TYPE_LEVEL_HIGH;
   884	
   885		for (i = 0; i < ARRAY_SIZE(mt6363_regulators); i++) {
   886			info = &mt6363_regulators[i];
   887	
   888			fwspec.param[1] = info->hwirq;
 > 889			info->virq = irq_create_fwspec_mapping(&fwspec);
   890			if (!info->virq)
   891				return dev_err_probe(dev, -EINVAL,
   892						     "Failed to map IRQ%d\n", info->hwirq);
   893	
   894			ret = devm_add_action_or_reset(dev, mt6363_irq_remove, &info->virq);
   895			if (ret) {
   896				irq_dispose_mapping(info->hwirq);
   897				return ret;
   898			}
   899	
   900			config.driver_data = info;
   901			INIT_DELAYED_WORK(&info->oc_work, mt6363_oc_irq_enable_work);
   902	
   903			rdev = devm_regulator_register(dev, &info->desc, &config);
   904			if (IS_ERR(rdev))
   905				return dev_err_probe(dev, PTR_ERR(rdev),
   906						     "failed to register %s\n", info->desc.name);
   907	
   908			if (info->lp_imax_uA) {
   909				ret = mt6363_backup_op_setting(config.regmap, info);
   910				if (ret) {
   911					dev_warn(dev, "Failed to backup op_setting for %s\n",
   912						 info->desc.name);
   913					info->lp_imax_uA = 0;
   914				}
   915			}
   916		}
   917	
   918		return 0;
   919	}
   920	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/regulator/mt6363-regulator.c:877:11: error: implicit declaration of function 'irq_find_host'; did you mean 'ida_find_first'?
@ 2026-03-17 23:46 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-17 23:46 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno; +Cc: oe-kbuild-all, linux-kernel, Mark Brown

Hi AngeloGioacchino,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f0caa1d49cc07b30a7e2f104d3853ec6dc1c3cad
commit: 3c36965df80801344850388592e95033eceea05b regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators
date:   4 months ago
config: s390-randconfig-r112-20260318 (https://download.01.org/0day-ci/archive/20260318/202603180705.ANjjwz5m-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260318/202603180705.ANjjwz5m-lkp@intel.com/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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603180705.ANjjwz5m-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   drivers/regulator/mt6363-regulator.c: In function 'mt6363_regulator_probe':
>> drivers/regulator/mt6363-regulator.c:877:11: error: implicit declaration of function 'irq_find_host'; did you mean 'ida_find_first'? [-Werror=implicit-function-declaration]
     domain = irq_find_host(interrupt_parent);
              ^~~~~~~~~~~~~
              ida_find_first
>> drivers/regulator/mt6363-regulator.c:877:9: warning: assignment to 'struct irq_domain *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     domain = irq_find_host(interrupt_parent);
            ^
>> drivers/regulator/mt6363-regulator.c:889:16: error: implicit declaration of function 'irq_create_fwspec_mapping'; did you mean 'irq_create_of_mapping'? [-Werror=implicit-function-declaration]
      info->virq = irq_create_fwspec_mapping(&fwspec);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
                   irq_create_of_mapping
   cc1: some warnings being treated as errors


vim +877 drivers/regulator/mt6363-regulator.c

   853	
   854	static int mt6363_regulator_probe(struct platform_device *pdev)
   855	{
   856		struct device_node *interrupt_parent;
   857		struct regulator_config config = {};
   858		struct mt6363_regulator_info *info;
   859		struct device *dev = &pdev->dev;
   860		struct regulator_dev *rdev;
   861		struct irq_domain *domain;
   862		struct irq_fwspec fwspec;
   863		struct spmi_device *sdev;
   864		int i, ret;
   865	
   866		config.regmap = mt6363_spmi_register_regmap(dev);
   867		if (IS_ERR(config.regmap))
   868			return dev_err_probe(dev, PTR_ERR(config.regmap),
   869					     "Cannot get regmap\n");
   870		config.dev = dev;
   871		sdev = to_spmi_device(dev->parent);
   872	
   873		interrupt_parent = of_irq_find_parent(dev->of_node);
   874		if (!interrupt_parent)
   875			return dev_err_probe(dev, -EINVAL, "Cannot find IRQ parent\n");
   876	
 > 877		domain = irq_find_host(interrupt_parent);
   878		of_node_put(interrupt_parent);
   879		fwspec.fwnode = domain->fwnode;
   880	
   881		fwspec.param_count = 3;
   882		fwspec.param[0] = sdev->usid;
   883		fwspec.param[2] = IRQ_TYPE_LEVEL_HIGH;
   884	
   885		for (i = 0; i < ARRAY_SIZE(mt6363_regulators); i++) {
   886			info = &mt6363_regulators[i];
   887	
   888			fwspec.param[1] = info->hwirq;
 > 889			info->virq = irq_create_fwspec_mapping(&fwspec);
   890			if (!info->virq)
   891				return dev_err_probe(dev, -EINVAL,
   892						     "Failed to map IRQ%d\n", info->hwirq);
   893	
   894			ret = devm_add_action_or_reset(dev, mt6363_irq_remove, &info->virq);
   895			if (ret) {
   896				irq_dispose_mapping(info->hwirq);
   897				return ret;
   898			}
   899	
   900			config.driver_data = info;
   901			INIT_DELAYED_WORK(&info->oc_work, mt6363_oc_irq_enable_work);
   902	
   903			rdev = devm_regulator_register(dev, &info->desc, &config);
   904			if (IS_ERR(rdev))
   905				return dev_err_probe(dev, PTR_ERR(rdev),
   906						     "failed to register %s\n", info->desc.name);
   907	
   908			if (info->lp_imax_uA) {
   909				ret = mt6363_backup_op_setting(config.regmap, info);
   910				if (ret) {
   911					dev_warn(dev, "Failed to backup op_setting for %s\n",
   912						 info->desc.name);
   913					info->lp_imax_uA = 0;
   914				}
   915			}
   916		}
   917	
   918		return 0;
   919	}
   920	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-17 23:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-20  3:58 drivers/regulator/mt6363-regulator.c:877:11: error: implicit declaration of function 'irq_find_host'; did you mean 'ida_find_first'? kernel test robot
2026-03-17 23:46 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®