All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 11035/13093] drivers/soc/fsl/qe/gpio.c:176: undefined reference to `of_irq_parse_raw'
@ 2026-08-06  1:27 kernel test robot
  2026-08-07  4:57 ` Christophe Leroy (CS GROUP)
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-08-06  1:27 UTC (permalink / raw)
  To: Paul Louvel; +Cc: oe-kbuild-all, Christophe Leroy (CS GROUP)

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/202608060954.ymFeQSY6-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260806/202608060954.ymFeQSY6-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/202608060954.ymFeQSY6-lkp@intel.com/

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

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

* Re: [linux-next:master 11035/13093] drivers/soc/fsl/qe/gpio.c:176: undefined reference to `of_irq_parse_raw'
  2026-08-06  1:27 [linux-next:master 11035/13093] drivers/soc/fsl/qe/gpio.c:176: undefined reference to `of_irq_parse_raw' kernel test robot
@ 2026-08-07  4:57 ` Christophe Leroy (CS GROUP)
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Leroy (CS GROUP) @ 2026-08-07  4:57 UTC (permalink / raw)
  To: kernel test robot, Paul Louvel; +Cc: oe-kbuild-all



Le 06/08/2026 à 03:27, kernel test robot a écrit :
> 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/202608060954.ymFeQSY6-lkp@intel.com/config)
> compiler: sparc64-linux-gcc (GCC) 8.5.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260806/202608060954.ymFeQSY6-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/202608060954.ymFeQSY6-lkp@intel.com/
> 
> 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'

The patch is missing a dependency on CONFIG_OF_IRQ.

config OF_IRQ
	def_bool y
	depends on !SPARC && IRQ_DOMAIN

But adding dependency on OF_IRQ leads to

error: recursive dependency detected!
	symbol GPIOLIB is selected by QE_GPIO
	symbol QE_GPIO depends on OF_IRQ
	symbol OF_IRQ depends on IRQ_DOMAIN
	symbol IRQ_DOMAIN is selected by GENERIC_IRQ_CHIP
	symbol GENERIC_IRQ_CHIP is selected by GPIO_MVEBU
	symbol GPIO_MVEBU depends on GPIOLIB

As QE_GPIO selects GENERIC_IRQ_CHIP, IRQ_DOMAIN is automatically 
selected so the dependency is only on !SPARC

I will fixup the commit.

Thanks
Christophe


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

end of thread, other threads:[~2026-08-07  4:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-06  1:27 [linux-next:master 11035/13093] drivers/soc/fsl/qe/gpio.c:176: undefined reference to `of_irq_parse_raw' kernel test robot
2026-08-07  4:57 ` Christophe Leroy (CS GROUP)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.