From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757258AbcB1Ke6 (ORCPT ); Sun, 28 Feb 2016 05:34:58 -0500 Received: from www.linutronix.de ([62.245.132.108]:37201 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756977AbcB1Ke4 (ORCPT ); Sun, 28 Feb 2016 05:34:56 -0500 Date: Sun, 28 Feb 2016 11:33:32 +0100 (CET) From: Thomas Gleixner To: Geert Uytterhoeven cc: kbuild test robot , "kbuild-all@01.org" , LKML , Ingo Molnar Subject: Re: kernel/irq/irqdesc.c:206:2: error: array index in initializer exceeds array bounds In-Reply-To: Message-ID: References: <201602280748.3c8QXcpJ%fengguang.wu@intel.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 28 Feb 2016, Geert Uytterhoeven wrote: > On Sun, Feb 28, 2016 at 10:32 AM, Thomas Gleixner wrote: > > On Sun, 28 Feb 2016, 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: 691429e13dfaf5b0994b07cc166db41bd608ee3d > >> 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 > > > > Again. This commit is just moving code into seperate files without changing > > the code. So it's not a new wreckage. > > > >> 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 > >> ^ > > > > NR_IRQS = 0 and CONFIG_SPARSE_IRQ=n is bogus. That alldefconfig of m68k is > > broken. Cc'ed m68 folks > > No idea where this "alldefconfig" is coming from (it contains "2.6.36-rc5"). > Is this an MMU=y allnoconfig? # make alldefconfig That's one of the targets for 68k. And yes, it has MMU=y > It doesn't enable any platforms, which is not supported, and thus it isn't > known how many interrupts are needed. > > BTW, I have a local fix to change NR_IRQS to 1 in that case, but that's > far from sufficient to build an MMU=y allnoconfig kernel. Yeah. NR_IRQS=1 is lame. Thanks, tglx