From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932637AbcCHJWH (ORCPT ); Tue, 8 Mar 2016 04:22:07 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33388 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932357AbcCHJV5 (ORCPT ); Tue, 8 Mar 2016 04:21:57 -0500 Date: Tue, 8 Mar 2016 10:21:52 +0100 From: Ingo Molnar To: Geert Uytterhoeven Cc: kbuild test robot , Thomas Gleixner , "kbuild-all@01.org" , "linux-kernel@vger.kernel.org" , Ingo Molnar Subject: Re: kernel/irq/irqdesc.c:206:2: error: array index in initializer exceeds array bounds Message-ID: <20160308092152.GE12413@gmail.com> References: <201603081643.6mAzMxzS%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Geert Uytterhoeven wrote: > On Tue, Mar 8, 2016 at 9:38 AM, kbuild test robot > 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