[arm-platforms:irq/domain_cleanup 11/17] include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq'; did you mean
kernel test robot
lkp at intel.com
Thu May 13 07:29:20 PDT 2021
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/domain_cleanup
head: d4796f65d6c7a6e596dbccb03d6e1141a63e49f9
commit: 0280c7950849a75ff5473618af7ddbfe624d2746 [11/17] irqdomain: Introduce irq_resolve_mapping()
config: powerpc-iss476-smp_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=0280c7950849a75ff5473618af7ddbfe624d2746
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/domain_cleanup
git checkout 0280c7950849a75ff5473618af7ddbfe624d2746
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h: In function 'irq_find_mapping':
>> include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq'; did you mean 'irq_get_next_irq'? [-Werror=implicit-function-declaration]
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
| irq_get_next_irq
In file included from include/linux/irq.h:584,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdesc.h: At top level:
include/linux/irqdesc.h:127:28: error: conflicting types for 'irq_desc_get_irq'
127 | static inline unsigned int irq_desc_get_irq(struct irq_desc *desc)
| ^~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h:420:9: note: previous implicit declaration of 'irq_desc_get_irq' was here
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h: In function 'irq_find_mapping':
>> include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq'; did you mean 'irq_get_next_irq'? [-Werror=implicit-function-declaration]
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
| irq_get_next_irq
In file included from include/linux/irq.h:584,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdesc.h: At top level:
include/linux/irqdesc.h:127:28: error: conflicting types for 'irq_desc_get_irq'
127 | static inline unsigned int irq_desc_get_irq(struct irq_desc *desc)
| ^~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h:420:9: note: previous implicit declaration of 'irq_desc_get_irq' was here
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h: In function 'irq_find_mapping':
>> include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq'; did you mean
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
| irq_get_next_irq
In file included from include/linux/irq.h:584,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdesc.h: At top level:
include/linux/irqdesc.h:127:28: error: conflicting types for 'irq_desc_get_irq'
127 | static inline unsigned int irq_desc_get_irq(struct irq_desc
| ^~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/irq.h:9,
from include/linux/irq.h:23,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/irqdomain.h:420:9: note: previous implicit declaration of 'irq_desc_get_irq' was here
420 | return irq_desc_get_irq(desc);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
Target '__build' not remade because of errors.
Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [Makefile:1227: prepare0] Error 2
Target 'prepare' not remade because of errors.
make: Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
vim +/irq_desc_get_irq +420 include/linux/irqdomain.h
403
404 extern struct irq_desc *irq_resolve_mapping(struct irq_domain *domain,
405 irq_hw_number_t hwirq);
406
407 /**
408 * irq_find_mapping() - Find a linux irq from a hw irq number.
409 * @domain: domain owning this hardware interrupt
410 * @hwirq: hardware irq number in that domain space
411 */
412 static inline unsigned int irq_find_mapping(struct irq_domain *domain,
413 irq_hw_number_t hwirq)
414 {
415 struct irq_desc *desc = irq_resolve_mapping(domain, hwirq);
416
417 if (unlikely(!desc))
418 return 0;
419
> 420 return irq_desc_get_irq(desc);
421 }
422
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 11404 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210513/0d2157da/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list