All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-stable-rc:linux-3.14.y 1941/4929] arch/mips/jz4740/irq.c:49:39: error: 'JZ4740_IRQ_BASE' undeclared
@ 2016-08-22 17:37 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-08-22 17:37 UTC (permalink / raw)
  To: Sasha Levin
  Cc: kbuild-all, Greg Kroah-Hartman, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 12481 bytes --]

Hi Sasha,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-3.14.y
head:   bb28cae901ddf2a4c708dbd03e9e304536c966dc
commit: 017ff97daa4a7892181a4dd315c657108419da0c [1941/4929] kernel: add support for gcc 5
config: mips-jz4740 (attached as .config)
compiler: mipsel-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
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 017ff97daa4a7892181a4dd315c657108419da0c
        # 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/hardirq.h:8,
                    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:363:0,
                    from include/asm-generic/hardirq.h:12,
                    from arch/mips/include/asm/hardirq.h:16,
                    from include/linux/hardirq.h:8,
                    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/hardirq.h:8,
                    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/hardirq.h:8,
                    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:68: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f0,272+0($4)'
   arch/mips/kernel/r4k_fpu.S:69: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f2,272+16($4)'
   arch/mips/kernel/r4k_fpu.S:70: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f4,272+32($4)'
   arch/mips/kernel/r4k_fpu.S:71: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f6,272+48($4)'
   arch/mips/kernel/r4k_fpu.S:72: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f8,272+64($4)'
   arch/mips/kernel/r4k_fpu.S:73: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f10,272+80($4)'
   arch/mips/kernel/r4k_fpu.S:74: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f12,272+96($4)'
   arch/mips/kernel/r4k_fpu.S:75: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f14,272+112($4)'
   arch/mips/kernel/r4k_fpu.S:76: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f16,272+128($4)'
   arch/mips/kernel/r4k_fpu.S:77: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f18,272+144($4)'
   arch/mips/kernel/r4k_fpu.S:78: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f20,272+160($4)'
   arch/mips/kernel/r4k_fpu.S:79: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f22,272+176($4)'
   arch/mips/kernel/r4k_fpu.S:80: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f24,272+192($4)'
   arch/mips/kernel/r4k_fpu.S:81: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f26,272+208($4)'
   arch/mips/kernel/r4k_fpu.S:82: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f28,272+224($4)'
   arch/mips/kernel/r4k_fpu.S:83: Error: opcode not supported on this processor: mips3 (mips3) `sdc1 $f30,272+240($4)'
>> arch/mips/kernel/r4k_fpu.S:178: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f0,272+0($4)'
   arch/mips/kernel/r4k_fpu.S:179: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f2,272+16($4)'
   arch/mips/kernel/r4k_fpu.S:180: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f4,272+32($4)'
   arch/mips/kernel/r4k_fpu.S:181: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f6,272+48($4)'
   arch/mips/kernel/r4k_fpu.S:182: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f8,272+64($4)'
   arch/mips/kernel/r4k_fpu.S:183: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f10,272+80($4)'
   arch/mips/kernel/r4k_fpu.S:184: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f12,272+96($4)'
   arch/mips/kernel/r4k_fpu.S:185: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f14,272+112($4)'
   arch/mips/kernel/r4k_fpu.S:186: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f16,272+128($4)'
   arch/mips/kernel/r4k_fpu.S:187: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f18,272+144($4)'
   arch/mips/kernel/r4k_fpu.S:188: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f20,272+160($4)'
   arch/mips/kernel/r4k_fpu.S:189: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f22,272+176($4)'
   arch/mips/kernel/r4k_fpu.S:190: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f24,272+192($4)'
   arch/mips/kernel/r4k_fpu.S:191: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f26,272+208($4)'
   arch/mips/kernel/r4k_fpu.S:192: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f28,272+224($4)'
   arch/mips/kernel/r4k_fpu.S:193: Error: opcode not supported on this processor: mips3 (mips3) `ldc1 $f30,272+240($4)'

vim +/JZ4740_IRQ_BASE +49 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 49 was first introduced by commit
:::::: 83bc769200802c9ce8fd1c7315fd14198d385b12 MIPS: JZ4740: Use generic irq chip

:::::: TO: Lars-Peter Clausen <lars@metafoo.de>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 16170 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-22 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-22 17:37 [linux-stable-rc:linux-3.14.y 1941/4929] arch/mips/jz4740/irq.c:49:39: error: 'JZ4740_IRQ_BASE' undeclared kbuild test robot

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.