[linux-next:master 11035/13093] drivers/soc/fsl/qe/gpio.c:176: undefined reference to `of_irq_parse_raw'

kernel test robot <[email protected]> Thu, 06 Aug 2026 09:27:41 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   1701fda2f58e345c050f4309971bdc07cd6146ba
commit: e75fcf32f93ef32cd020a63ffc1808303655a43b [11035/13093] soc: fsl: qe: Add support of IRQs in QE GPIO
config: sparc64-randconfig-002-20260806 (https://download.01.org/0day-ci/archive/20260806/[email protected]/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260806/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   sparc64-linux-ld: drivers/soc/fsl/qe/gpio.o: in function `qe_gpio_to_irq':
>> drivers/soc/fsl/qe/gpio.c:176: undefined reference to `of_irq_parse_raw'


vim +176 drivers/soc/fsl/qe/gpio.c

   163	
   164	static int qe_gpio_to_irq(struct gpio_chip *gc, unsigned int gpio)
   165	{
   166		struct qe_gpio_chip *qe_gc = gpiochip_get_data(gc);
   167		struct of_phandle_args oirq;
   168		struct irq_domain *domain;
   169		int ret;
   170	
   171		oirq.np = qe_gc->np;
   172		oirq.args_count = 2;
   173		oirq.args[0] = gpio;
   174		oirq.args[1] = 0;
   175	
 > 176		ret = of_irq_parse_raw(NULL, &oirq);
   177		if (ret)
   178			return ret;
   179	
   180		domain = irq_find_host(oirq.np);
   181		if (!domain)
   182			return -EPROBE_DEFER;
   183	
   184		return irq_create_of_mapping(&oirq);
   185	}
   186	

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