Hi, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux-stable.git stable-3.12-queue head: 948c2b1f570cbf441db7f0fad28f7dcb5b54443d commit: 478a5f81defe61a89083f3b719e142f250427098 [2253/5330] kernel: add support for gcc 5 config: mips-jz4740 (attached as .config) compiler: mipsel-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 478a5f81defe61a89083f3b719e142f250427098 # save the attached .config to linux build tree make.cross ARCH=mips All errors (new ones prefixed by >>): In file included from arch/mips/include/asm/irq.h:18:0, from include/linux/irq.h:24, from include/asm-generic/hardirq.h:12, from arch/mips/include/asm/hardirq.h:16, from include/linux/preempt_mask.h:5, from include/linux/hardirq.h:4, from include/linux/interrupt.h:12, from arch/mips/jz4740/irq.c:19: arch/mips/jz4740/irq.h:20:39: warning: 'struct irq_data' declared inside parameter list extern void jz4740_irq_suspend(struct irq_data *data); ^ arch/mips/jz4740/irq.h:20:39: warning: its scope is only this definition or declaration, which is probably not what you want arch/mips/jz4740/irq.h:21:38: warning: 'struct irq_data' declared inside parameter list extern void jz4740_irq_resume(struct irq_data *data); ^ In file included from include/linux/irq.h:358:0, from include/asm-generic/hardirq.h:12, from arch/mips/include/asm/hardirq.h:16, from include/linux/preempt_mask.h:5, from include/linux/hardirq.h:4, from include/linux/interrupt.h:12, from arch/mips/jz4740/irq.c:19: include/linux/irqdesc.h:80:33: error: 'NR_IRQS' undeclared here (not in a function) extern struct irq_desc irq_desc[NR_IRQS]; ^ arch/mips/jz4740/irq.c: In function 'jz4740_cascade': arch/mips/jz4740/irq.c:49:39: error: 'JZ4740_IRQ_BASE' undeclared (first use in this function) generic_handle_irq(__fls(irq_reg) + JZ4740_IRQ_BASE); ^ arch/mips/jz4740/irq.c:49:39: note: each undeclared identifier is reported only once for each function it appears in arch/mips/jz4740/irq.c: At top level: >> arch/mips/jz4740/irq.c:62:6: error: conflicting types for 'jz4740_irq_suspend' void jz4740_irq_suspend(struct irq_data *data) ^ In file included from arch/mips/include/asm/irq.h:18:0, from include/linux/irq.h:24, from include/asm-generic/hardirq.h:12, from arch/mips/include/asm/hardirq.h:16, from include/linux/preempt_mask.h:5, from include/linux/hardirq.h:4, from include/linux/interrupt.h:12, from arch/mips/jz4740/irq.c:19: arch/mips/jz4740/irq.h:20:13: note: previous declaration of 'jz4740_irq_suspend' was here extern void jz4740_irq_suspend(struct irq_data *data); ^ >> arch/mips/jz4740/irq.c:68:6: error: conflicting types for 'jz4740_irq_resume' void jz4740_irq_resume(struct irq_data *data) ^ In file included from arch/mips/include/asm/irq.h:18:0, from include/linux/irq.h:24, from include/asm-generic/hardirq.h:12, from arch/mips/include/asm/hardirq.h:16, from include/linux/preempt_mask.h:5, from include/linux/hardirq.h:4, from include/linux/interrupt.h:12, from arch/mips/jz4740/irq.c:19: arch/mips/jz4740/irq.h:21:13: note: previous declaration of 'jz4740_irq_resume' was here extern void jz4740_irq_resume(struct irq_data *data); ^ arch/mips/jz4740/irq.c: In function 'arch_init_irq': arch/mips/jz4740/irq.c:91:41: error: 'JZ4740_IRQ_BASE' undeclared (first use in this function) gc = irq_alloc_generic_chip("INTC", 1, JZ4740_IRQ_BASE, jz_intc_base, ^ -- arch/mips/kernel/r4k_fpu.S: Assembler messages: >> arch/mips/kernel/r4k_fpu.S:59: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f0,272+0($4)' arch/mips/kernel/r4k_fpu.S:60: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f2,272+16($4)' arch/mips/kernel/r4k_fpu.S:61: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f4,272+32($4)' arch/mips/kernel/r4k_fpu.S:62: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f6,272+48($4)' arch/mips/kernel/r4k_fpu.S:63: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f8,272+64($4)' arch/mips/kernel/r4k_fpu.S:64: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f10,272+80($4)' arch/mips/kernel/r4k_fpu.S:65: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f12,272+96($4)' arch/mips/kernel/r4k_fpu.S:66: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f14,272+112($4)' arch/mips/kernel/r4k_fpu.S:67: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f16,272+128($4)' arch/mips/kernel/r4k_fpu.S:68: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f18,272+144($4)' arch/mips/kernel/r4k_fpu.S:69: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f20,272+160($4)' arch/mips/kernel/r4k_fpu.S:70: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f22,272+176($4)' arch/mips/kernel/r4k_fpu.S:71: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f24,272+192($4)' arch/mips/kernel/r4k_fpu.S:72: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f26,272+208($4)' arch/mips/kernel/r4k_fpu.S:73: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f28,272+224($4)' arch/mips/kernel/r4k_fpu.S:74: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f30,272+240($4)' >> arch/mips/kernel/r4k_fpu.S:135: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f0,272+0($4)' arch/mips/kernel/r4k_fpu.S:136: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f2,272+16($4)' arch/mips/kernel/r4k_fpu.S:137: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f4,272+32($4)' arch/mips/kernel/r4k_fpu.S:138: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f6,272+48($4)' arch/mips/kernel/r4k_fpu.S:139: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f8,272+64($4)' arch/mips/kernel/r4k_fpu.S:140: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f10,272+80($4)' arch/mips/kernel/r4k_fpu.S:141: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f12,272+96($4)' arch/mips/kernel/r4k_fpu.S:142: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f14,272+112($4)' arch/mips/kernel/r4k_fpu.S:143: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f16,272+128($4)' arch/mips/kernel/r4k_fpu.S:144: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f18,272+144($4)' arch/mips/kernel/r4k_fpu.S:145: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f20,272+160($4)' arch/mips/kernel/r4k_fpu.S:146: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f22,272+176($4)' arch/mips/kernel/r4k_fpu.S:147: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f24,272+192($4)' arch/mips/kernel/r4k_fpu.S:148: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f26,272+208($4)' arch/mips/kernel/r4k_fpu.S:149: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f28,272+224($4)' arch/mips/kernel/r4k_fpu.S:150: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f30,272+240($4)' -- arch/mips/kernel/r4k_switch.S: Assembler messages: >> arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f0,800($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f2,816($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f4,832($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f6,848($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f8,864($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f10,880($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f12,896($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f14,912($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f16,928($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f18,944($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f20,960($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f22,976($4)' arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f24,992($4)' >> arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f26,1008($4)' >> arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f28,1024($4)' >> arch/mips/kernel/r4k_switch.S:67: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f30,1040($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f0,800($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f2,816($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f4,832($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f6,848($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f8,864($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f10,880($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f12,896($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f14,912($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f16,928($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f18,944($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f20,960($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f22,976($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f24,992($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f26,1008($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f28,1024($4)' arch/mips/kernel/r4k_switch.S:129: Error: opcode not supported on this processor: mips32 (mips32) `sdc1 $f30,1040($4)' >> arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f0,800($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f2,816($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f4,832($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f6,848($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f8,864($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f10,880($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f12,896($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f14,912($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f16,928($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f18,944($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f20,960($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f22,976($4)' arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f24,992($4)' >> arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f26,1008($4)' >> arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f28,1024($4)' >> arch/mips/kernel/r4k_switch.S:140: Error: opcode not supported on this processor: mips32 (mips32) `ldc1 $f30,1040($4)' >> arch/mips/kernel/r4k_switch.S:199: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f0' >> arch/mips/kernel/r4k_switch.S:200: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f1' >> arch/mips/kernel/r4k_switch.S:201: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f2' >> arch/mips/kernel/r4k_switch.S:202: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f3' >> arch/mips/kernel/r4k_switch.S:203: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f4' >> arch/mips/kernel/r4k_switch.S:204: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f5' >> arch/mips/kernel/r4k_switch.S:205: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f6' >> arch/mips/kernel/r4k_switch.S:206: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f7' >> arch/mips/kernel/r4k_switch.S:207: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f8' >> arch/mips/kernel/r4k_switch.S:208: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f9' >> arch/mips/kernel/r4k_switch.S:209: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f10' >> arch/mips/kernel/r4k_switch.S:210: Error: opcode not supported on this processor: mips32 (mips32) `mtc1 $9,$f11' vim +/jz4740_irq_suspend +62 arch/mips/jz4740/irq.c 9869848d Lars-Peter Clausen 2010-07-17 13 * 9869848d Lars-Peter Clausen 2010-07-17 14 */ 9869848d Lars-Peter Clausen 2010-07-17 15 9869848d Lars-Peter Clausen 2010-07-17 16 #include <linux/errno.h> 9869848d Lars-Peter Clausen 2010-07-17 17 #include <linux/init.h> 9869848d Lars-Peter Clausen 2010-07-17 18 #include <linux/types.h> 9869848d Lars-Peter Clausen 2010-07-17 @19 #include <linux/interrupt.h> 9869848d Lars-Peter Clausen 2010-07-17 20 #include <linux/ioport.h> 9869848d Lars-Peter Clausen 2010-07-17 21 #include <linux/timex.h> 9869848d Lars-Peter Clausen 2010-07-17 22 #include <linux/slab.h> 9869848d Lars-Peter Clausen 2010-07-17 23 #include <linux/delay.h> 9869848d Lars-Peter Clausen 2010-07-17 24 9869848d Lars-Peter Clausen 2010-07-17 25 #include <linux/debugfs.h> 9869848d Lars-Peter Clausen 2010-07-17 26 #include <linux/seq_file.h> 9869848d Lars-Peter Clausen 2010-07-17 27 9869848d Lars-Peter Clausen 2010-07-17 28 #include <asm/io.h> 9869848d Lars-Peter Clausen 2010-07-17 29 #include <asm/mipsregs.h> 9869848d Lars-Peter Clausen 2010-07-17 30 #include <asm/irq_cpu.h> 9869848d Lars-Peter Clausen 2010-07-17 31 9869848d Lars-Peter Clausen 2010-07-17 32 #include <asm/mach-jz4740/base.h> 9869848d Lars-Peter Clausen 2010-07-17 33 9869848d Lars-Peter Clausen 2010-07-17 34 static void __iomem *jz_intc_base; 9869848d Lars-Peter Clausen 2010-07-17 35 9869848d Lars-Peter Clausen 2010-07-17 36 #define JZ_REG_INTC_STATUS 0x00 9869848d Lars-Peter Clausen 2010-07-17 37 #define JZ_REG_INTC_MASK 0x04 9869848d Lars-Peter Clausen 2010-07-17 38 #define JZ_REG_INTC_SET_MASK 0x08 9869848d Lars-Peter Clausen 2010-07-17 39 #define JZ_REG_INTC_CLEAR_MASK 0x0c 9869848d Lars-Peter Clausen 2010-07-17 40 #define JZ_REG_INTC_PENDING 0x10 9869848d Lars-Peter Clausen 2010-07-17 41 83bc7692 Lars-Peter Clausen 2011-09-24 42 static irqreturn_t jz4740_cascade(int irq, void *data) 9869848d Lars-Peter Clausen 2010-07-17 43 { 83bc7692 Lars-Peter Clausen 2011-09-24 44 uint32_t irq_reg; 9869848d Lars-Peter Clausen 2010-07-17 45 83bc7692 Lars-Peter Clausen 2011-09-24 46 irq_reg = readl(jz_intc_base + JZ_REG_INTC_PENDING); 9869848d Lars-Peter Clausen 2010-07-17 47 83bc7692 Lars-Peter Clausen 2011-09-24 48 if (irq_reg) 83bc7692 Lars-Peter Clausen 2011-09-24 @49 generic_handle_irq(__fls(irq_reg) + JZ4740_IRQ_BASE); 83bc7692 Lars-Peter Clausen 2011-09-24 50 83bc7692 Lars-Peter Clausen 2011-09-24 51 return IRQ_HANDLED; 42b64f38 Thomas Gleixner 2011-03-23 52 } 42b64f38 Thomas Gleixner 2011-03-23 53 83bc7692 Lars-Peter Clausen 2011-09-24 54 static void jz4740_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) 9869848d Lars-Peter Clausen 2010-07-17 55 { 83bc7692 Lars-Peter Clausen 2011-09-24 56 struct irq_chip_regs *regs = &gc->chip_types->regs; 9869848d Lars-Peter Clausen 2010-07-17 57 83bc7692 Lars-Peter Clausen 2011-09-24 58 writel(mask, gc->reg_base + regs->enable); 83bc7692 Lars-Peter Clausen 2011-09-24 59 writel(~mask, gc->reg_base + regs->disable); 9869848d Lars-Peter Clausen 2010-07-17 60 } 9869848d Lars-Peter Clausen 2010-07-17 61 83bc7692 Lars-Peter Clausen 2011-09-24 @62 void jz4740_irq_suspend(struct irq_data *data) 9869848d Lars-Peter Clausen 2010-07-17 63 { 83bc7692 Lars-Peter Clausen 2011-09-24 64 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); 83bc7692 Lars-Peter Clausen 2011-09-24 65 jz4740_irq_set_mask(gc, gc->wake_active); 83bc7692 Lars-Peter Clausen 2011-09-24 66 } 9869848d Lars-Peter Clausen 2010-07-17 67 83bc7692 Lars-Peter Clausen 2011-09-24 @68 void jz4740_irq_resume(struct irq_data *data) 83bc7692 Lars-Peter Clausen 2011-09-24 69 { 83bc7692 Lars-Peter Clausen 2011-09-24 70 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); 83bc7692 Lars-Peter Clausen 2011-09-24 71 jz4740_irq_set_mask(gc, gc->mask_cache); :::::: The code at line 62 was first introduced by commit :::::: 83bc769200802c9ce8fd1c7315fd14198d385b12 MIPS: JZ4740: Use generic irq chip :::::: 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
Attachment:
.config.gz
Description: Binary data