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

"Christophe Leroy (CS GROUP)" <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>

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/[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'

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.