Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1352785

Re: kernel/irq/irqdesc.c:206:2: error: array index in initializer exceeds array bounds

From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: kernel/irq/irqdesc.c:206:2: error: array index in initializer exceeds array bounds
Date 2016-03-08 10:30 +0100
Message-ID <ram7L-7oJ-9@gated-at.bofh.it> (permalink)
References <ralv3-6V9-1@gated-at.bofh.it> <ralv5-6V9-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Geert Uytterhoeven <geert@linux-m68k.org> wrote:

> On Tue, Mar 8, 2016 at 9:38 AM, kbuild test robot
> <fengguang.wu@intel.com> wrote:
> > FYI, the error/warning still remains.
> >
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head:   e2857b8f11a289ed2b61d18d0665e05c1053c446
> > commit: 3795de236d67a05994a1a12759db9d4dd9ffc42c genirq: Distangle kernel/irq/handle.c
> > date:   5 years ago
> > config: m68k-alldefconfig (attached as .config)
> > 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 3795de236d67a05994a1a12759db9d4dd9ffc42c
> >         # save the attached .config to linux build tree
> >         make.cross ARCH=m68k
> >
> > All errors (new ones prefixed by >>):
> >
> >    In file included from include/linux/irqnr.h:10:0,
> >                     from include/linux/irq.h:22,
> >                     from kernel/irq/irqdesc.c:10:
> >    arch/m68k/include/asm/irq.h:25:17: error: expected identifier or '(' before numeric constant
> >     #define NR_IRQS 0
> >                     ^
> >    include/linux/irqnr.h:15:19: note: in expansion of macro 'NR_IRQS'
> >     #define nr_irqs   NR_IRQS
> >                       ^
> >    kernel/irq/irqdesc.c:36:5: note: in expansion of macro 'nr_irqs'
> >     int nr_irqs = NR_IRQS;
> >         ^
> >>> kernel/irq/irqdesc.c:206:2: error: array index in initializer exceeds array bounds
> >      [0 ... NR_IRQS-1] = {
> >      ^
> 
> Same comment as before: thou shall not compile kernels for m68k without
> selecting any platform support.

That should be enforced at the Kconfig level.

Thanks,

	Ingo

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

kernel/irq/irqdesc.c:206:2: error: array index in initializer  exceeds array bounds kbuild test robot <fengguang.wu@intel.com> - 2016-03-08 09:50 +0100
  Re: kernel/irq/irqdesc.c:206:2: error: array index in initializer  exceeds array bounds Geert Uytterhoeven <geert@linux-m68k.org> - 2016-03-08 09:50 +0100
    Re: kernel/irq/irqdesc.c:206:2: error: array index in initializer  exceeds array bounds Ingo Molnar <mingo@kernel.org> - 2016-03-08 10:30 +0100
      Re: kernel/irq/irqdesc.c:206:2: error: array index in initializer  exceeds array bounds Geert Uytterhoeven <geert@linux-m68k.org> - 2016-03-08 11:20 +0100
  Re: kernel/irq/irqdesc.c:206:2: error: array index in initializer  exceeds array bounds Thomas Gleixner <tglx@linutronix.de> - 2016-03-08 10:20 +0100

csiph-web