Hi Paul,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tip/irq/core]
[also build test WARNING on v4.18 next-20180822]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Paul-Cercueil/irq-ingenic-Drop-dependency-on-MACH_INGENIC/20180822-083429
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=mips
All warnings (new ones prefixed by >>):
In file included from drivers//irqchip/irq-ingenic.c:30:0:
#define NR_IRQS (JZ4740_IRQ_ADC_BASE + 6)arch/mips/include/asm/mach-jz4740/irq.h:63:0: warning: "NR_IRQS" redefined
In file included from arch/mips/include/asm/irq.h:18:0,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from arch/mips/include/asm/hardirq.h:16,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from drivers//irqchip/irq-ingenic.c:19:
arch/mips/include/asm/mach-generic/irq.h:12:0: note: this is the location of the previous definition
#define NR_IRQS 128
vim +/NR_IRQS +63 arch/mips/include/asm/mach-jz4740/irq.h
9869848d Lars-Peter Clausen 2010-07-17 62
9869848d Lars-Peter Clausen 2010-07-17 @63 #define NR_IRQS (JZ4740_IRQ_ADC_BASE + 6)
9869848d Lars-Peter Clausen 2010-07-17 64
:::::: The code at line 63 was first introduced by commit
:::::: 9869848d12601cdddf097a36aebe0b10dc5d177b MIPS: JZ4740: Add IRQ handler code
:::::: TO: Lars-Peter Clausen <lars@xxxxxxxxxx>
:::::: CC: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation